[exim] Blocking external emails.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: John Clement
Dátum:  
Címzett: exim-users
Tárgy: [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