ok that works cool how would i get it to add the domain to a white
list table if say mail was suscessfuly delivered .. ei so mail in the
white list would only be virus scanned thus skipping the greylisting
and the anti spam .. (this list would be flushed if say once a month
just incase someone tried to get wise).. hopefuly reduce overhead on
delivery and reduce time taken ..
Many thanks
On 8/2/07, Renaud Allard <renaud@???> wrote:
>
>
> 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}}
> >
>
> Just modify your ACL like this:
>
> defer message = Greylisted - please try again a little later.
> !hosts = yourlanrange1 : lan2
> !sender_domains = domainsyoudontwanttogeylist1 : domain2
> 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}}
>
>
--
Gregory Machin
gregory.machin@???
www.linuxpro.co.za