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

Top Page
Delete this message
Reply to this message
Author: Erik Enge
Date:  
To: Nico Erfurth
CC: exim-users
Subject: Re: [Exim] Where to put 'acl_smtp_data' section?
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}}


If I run Exim with this configuration it now denies all mail. Did I
manage to mistype something?

Thanks,

Erik.