[exim] Blocking external emails.

Top Page
Delete this message
Reply to this message
Author: John Clement
Date:  
To: exim-users
Subject: [exim] Blocking external emails.
What's wrong with this picture... The current config reads:

if $header_to matches
"all@readingroom\.com|london@readingroom\.com|manchester@readingroom\.co
m|sydney@readingroom\.co
m" and not
$header_from matches "\@r(eading)?room\.(co\.uk|com|net)"
then
fail "You must be within the ReadingRoom network to send email to our
mailing lists\n"
Endif

Which lets messages cced/bcced to these addresses through. So I changed
the config to

if ($header_to:,$header_cc:,$header_bcc) matches
"all@readingroom\.com|london@readingroom\.com|manchester@readingroom\.co
m|sydney@readingroom\.co
m" and not
$header_from matches "\@r(eading)?room\.(co\.uk|com|net)"
then
fail "You must be within the ReadingRoom network to send email to our
mailing lists\n"
Endif

And end up with this in the panic log:

2006-05-16 11:24:55 1FfwjW-00089S-Vi Error in system filter:
unrecognized condition word "" near line 105 of filter file

Which, then stops exim processing any email. Please help!!

Thanks, john