Lähettäjä: Renaud Allard Päiväys: Vastaanottaja: Gregory Machin Kopio: exim-users Aihe: Re: [exim] gray list blocking local users
Gregory Machin wrote: > Hi
> I have configured a very basic grey list on my server, but it's also
> applying it to the users on the lan , how can I exclude them from the
> gray list and other stuff using acls ..
> ie if it comes from the local lan or from a particular domain it will
> allow that senders mail to skip the grey list and the antispam ...
> ~SNIP~ >
> In the ACL controlling the response to the RCPT command, put this line
> near the top, since it has no action but to set a variable.
>
> warn set acl_m2 = ${lookup mysql{GREYLIST_TEST}{$value}{0}}
>
> And after rules for all mail that you always accept, like postmaster
> addresses or mail from trusted relays, add the following.
>
> defer message = Greylisted - please try again a little later.
> condition = ${if eq{$acl_m2}{0}{1}}
> condition = ${lookup mysql{GREYLIST_ADD}{yes}{no}}
> defer message = Greylisted - please try again shortly.
> condition = ${if eq{$acl_m2}{1}{1}}
>