[Exim] Blocking sender on backup MX

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Darren Casey
Dátum:  
Címzett: exim-users
Tárgy: [Exim] Blocking sender on backup MX
Sorry I have tried the list and various solutions yet none seem to work

I need to drop any mail that comes from one particular domain/sender

I have a file /etc/block that has the sender in but no matter what solutions
I try it failes

I tried
"Set up a file (or database) containing the messages, keyed by the
combination, for example:
sender1@sdomain1=>recipient1@rdomain1: blocked because...
sender2@sdomain2=>recipient2@rdomain2: blocked because...If you have lots
of recipients for the same sender, it might be easier to generate this file
from more convenient data. In your ACL that is run for each RCPT command,
you can then put:

   deny message   = ${lookup{$sender_address=>$local_part@$domain}\
                    lsearch{/that/file}}
        condition = ${lookup{$sender_address=>$local_part@$domain}\
                    lsearch{/that/file}}{yes}{no}}The condition is tested
first. If the lookup succeeds, the condition succeeds so access is denied.
The message is then expanded, but the lookup won't be repeated, because Exim
will have cached the previous result. "




Yet this gave lots of errors :-

May 28 14:18:11 vserver016 exim[14379]: 2003-05-28 14:18:11 H=(Sme.net.cn)
[61.131.66.155] F=<cs1@???> temporarily rejected RCPT
<office@???>: invalid "condition" value "{yes}{no}}"

If someone has any ideas or examples it would be great thanks



Darren