[Exim] Re: Blocking sender on backup MX

Top Page
Delete this message
Reply to this message
Author: Bernard Massot
Date:  
To: exim-users
Subject: [Exim] Re: Blocking sender on backup MX
On Wed, May 28, 2003 at 02:13:16PM +0100, Darren Casey (Personal) wrote:
> 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}}"

1) don't screw up the threads !!!
2) read chapters 9 and 11 of the doc
--
Bernard Massot