Re: [exim] Issues with acl_check_recpt:

Pàgina inicial
Delete this message
Reply to this message
Autor: Peter Bowyer
Data:  
A: exim users
Assumpte: Re: [exim] Issues with acl_check_recpt:
2009/11/20 Raymond Jette <rjette@???>:
> Good morning,
> I have been moving my MTA from Postfix to EXIM over the last week. I
> have it almost setup but i'm have some issues. The Exim system excepts
> all inbound mail from the internet. It compares the recipient to a
> database and if the recipient does not exist it is rejected.
>
> This system also handles outbound mail from my Exchange server.
>
> I have the following:
>
> acl_check_rcpt:
>
>   accept hosts = ;
>
>   deny
>   log_message = Recipient Verification Failed.
>   message = local error
>   condition =
> ${lookup{$local_part@$domain}dbm{/etc/exim/db/validEmailAddresses.db}{no}{yes}}
>
> The following rejects all mail that is not on the list.  Can I set this
> up in such as way that only mail being relayed to Exchange get checked
> against this list?  I realy only want the check above to be used if the
> router 'exchangeRoute:' is used:
>
> exchangeRoute:
>   driver = manualroute
>   transport = remote_smtp
>   route_data = ${lookup{$domain}dbm{/etc/exim/db/localdomains.db}}
>
> Thanks for the help,


Since you already have a router with the logic built in, you can
simplify your ACL to:

acl_check_rcpt:

deny !verify = recipient
message = Invalid recipient

(probably with some stuff round it).

Exim will then try the router chain in the same way that it does for
deliveries. You can include and exclude routers from the verification
chain with the 'verify' router option.

As always, check current docs to make sure I'm not hallucinating.

Peter


--
Peter Bowyer
Email: peter@???
Follow me on Twitter: twitter.com/peeebeee