Re: [Exim] ACL's RULE!

Top Page
Delete this message
Reply to this message
Author: Juha Saarinen
Date:  
To: Dave C.
CC: exim-users@exim.org
Subject: Re: [Exim] ACL's RULE!
On Mon, 10 Jun 2002, Dave C. wrote:

>  # All hotmail.com mail should have this header
>    deny          sender_domains  = hotmail.com
>                  message         = X-Forgery: NOT HOTMAIL
>                  condition       = ${if def:header_X-Originating-IP:{no}{yes}}

>
>  # All aol.com mail should have this header
>    deny          sender_domains  = aol.com
>                  message         = X-Forgery: NOT AOL MAILER
>                  condition       = ${if match {$h_X-Mailer:}{.*[Aa][Oo][Ll].*} {no}{yes}}

>
>  # All aol.com mail should have a matching received header
>    deny          sender_domains  = aol.com
>                  message         = X-Forgery: NOT AOL SERVER
>                  condition       = ${if match {$h_Received:}{.*by.*[Aa][Oo][Ll]\.[Cc][Oo][Mm].*}{no}{yes}}

>
> # All yahoo.com mail will have either
> # "...yahoo.com via HTTP "
> # *OR*
> # "...yahoo.com with NNFMP"
>
>    deny          sender_domains  = yahoo.com
>                  message         = X-Forgery: NOT YAHOO SERVER
>                  condition       = ${if match {$h_Received:}{yahoo.com.via.HTTP}{no}{yes}}
>                  condition       = ${if match {$h_Received:}{yahoo.com.with.NNFMP}{no}{yes}}


Dave, I've not quite figured out how Exim processes ACLs, so would you
mind posting the full acl_smtp_data acl that you use? What I'm not sure
about is how to set up the "accept" conditions.

--
Juha Saarinen