Re: [exim] selective greylisting

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Lena
Date:  
À: exim-users
Sujet: Re: [exim] selective greylisting
> From: Nathan Huesken

> I am greylisting every mail, which has to
> high spam score.


Here (above the defer) insert:

  accept dnslists = list.dnswl.org
         logwrite = $sender_host_address whitelisted in \
                    $dnslist_domain=$dnslist_value


>   defer
>     message     = $sender_host_address is not yet authorized to deliver mail \
>                   from <$sender_address> to <$local_part@$domain>. \
>                   Please try later.
>     log_message = greylisted (<$sender_address> -> <$local_part@$domain>)
>     condition   = ${if >{$spam_score_int}{${eval:60-$acl_m_spamvalue}}{true}{false}}
>     add_header  = X-Spam-Extra: Doing greylisting
>     set acl_m9  = $sender_host_address $sender_address $local_part@$domain
>     set acl_m9  = ${readsocket{/var/run/greylistd/socket}{$acl_m9}{5s}{}{}}
>     condition   = ${if eq {$acl_m9}{grey}{true}{false}}

>
> I notice the following problems:
> 1. $local_part and $domain do not seem to be set. Is this normal for
> acl_smtp_data lists? How can I get them?


Replace $local_part@$domain with $recipients

> 2. some senders (like googlemail) always change there $sender_host_address


Besides DNSWL above (which takes care of few extra large senders
such as gmail which outstep /24 ranges), replace $sender_host_address with
${sg{$sender_host_address}{\N\.\d+$\N}{}}

> Can the sender_helo_name change for every atemp?


Yes.