Re: [Exim] New AOL Mailer for forgery filter (for Exim 4.x)

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nico Erfurth
Fecha:  
A: Kevin P. Fleming
Cc: Exim users list
Asunto: Re: [Exim] New AOL Mailer for forgery filter (for Exim 4.x)
Kevin P. Fleming wrote:
> For anyone that is using the previously-mentioned (on the list) ACL
> entry for
> catching AOL forgeries, which was as follows:
>
>   deny    sender_domains = aol.com
>           message        = X-Forgery: NOT AOL MAILER
>           condition      = ${if match {$h_X-Mailer:} {.*[Aa][Oo][Ll].*}
> {no}{yes}}

>
> AOL now has (apparently) a Webmail solution, using the Atlas Mailer 2.0.
> Because
> of this, the ACL entry needs to be changed to:
>
>   deny    sender_domains = aol.com
>           message        = X-Forgery: NOT AOL MAILER
>           condition      = ${if or {{match {$h_X-Mailer:}
> {.*[Aa][Oo][Ll].*}
> {no}{yes}} {match {$h_X-Mailer:} {.*[Aa][Tt][Ll][Aa][Ss].*} {no}{yes}}}}


nicer versions of this condition would be

condition = ${if match {${lc:$h_X-Mailer:}} {(?:aol|atlas)} {no}{yes}}
or
condition = ${if match {${lc:$h_X-Mailer:}} {a(?:ol|tlas)} {no}{yes}}

you don't need the .* in your case, and a single match should be better
than two separated ones.

ciao