Re: [exim] rejecting emails based on recipent domain

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: Tim Jackson
CC: exim-users
Betreff: Re: [exim] rejecting emails based on recipent domain
On Mon, 6 Dec 2004, Tim Jackson wrote:
> On 6 Dec 2004, Subhi S Hashwa wrote:
>
> > deny    message       = "Domain no longer in use."
> > deny    domains       = xxx.com

>
> That's two separate rules, the first of which rejects everything. You
> want:
>
> deny message = "Domain no longer in use"
>      domain  = example.com


I've recently adjusted my ACL layout style, partly to avoid marching off
the right of the page, but I think it also improves the general
readability. I've kept the lined-up equals signs (with enough space for
the sender_domains condition) - in fact I line them up in other parts of
the configuration file too.


acl_rcpt_submit:

# Make it easy to get help.

  accept
    domains        = +our_domains
    local_parts    = +postmasterish


# The sender must be either allowed to relay or authenticated.

  deny
    message        = No SMTP service for unauthorized users
  ! hosts          = +relay_hosts
  ! authenticated  = *


# Set up submission mode, in case we accept the message.

  require
    control        = submission/domain=${extract {domain}{PARAM} \
                                                 {$value} {$qualify_domain} }


# Require valid recipient addresses on bounce messages.

  accept
    senders        = :
  endpass
    verify         = recipient/callout=CALLTIME


# Do return address verification compatible with the mx service.

  require
    verify         = sender
    acl            = aux_verify_sender


accept


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}