Re: [Exim] Where to put 'acl_smtp_data' section?

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Nico Erfurth
Data:  
Para: Erik Enge
CC: exim-users
Asunto: Re: [Exim] Where to put 'acl_smtp_data' section?
Erik Enge wrote:
> Nico Erfurth <masta@???> writes:
>
>
>>Add
>>acl_smtp_data = my_data_acl
>>to the global section
>>
>>and
>>my_data_acl:
>> Your ACL rules here
>>
>>in the acl-section.
>
>
> I did that, and now it looks like this:
>
> acl_check_data:
>
>   # Only spammers put 8-bit junk in "Subject" and "From".
>   # This should keep the Asian spammers out, at least until
>   # they figure out about RFC 2047.
>   deny    condition = ${if match {$h_subject:}{\N[\x80-\xFF]{3,}\N} {yes}{no}}
>           message   = 8-bit characters not allowed in subject\n\
>                       (see RFC 2822, sections 3.6.5, 2.2.1)
>   deny    condition = ${if match {$h_from:}   {\N[\x80-\xFF]{3,}\N} {yes}{no}}
>           message   = 8-bit characters not allowed in header addresses\n\
>                       (see RFC 2822, sections 3.4, 3.2.4, 3.2.5)
>   # Stop the spam from .kr domains
>   require message = no .kr spam allowed - contact postmaster@???
>           !sender_domains = *.kr
>           condition = ${if match {\N\.kr$\N}{$h_reply_to} {0} {1}}


exim -d -bh is your friend.