Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Issues with acl_check_recpt:

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


rjette at mestek

Nov 20, 2009, 7:26 AM

Post #1 of 3 (455 views)
Permalink
Issues with acl_check_recpt:

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,

Ray



--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


peter at bowyer

Nov 20, 2009, 10:13 AM

Post #2 of 3 (423 views)
Permalink
Re: Issues with acl_check_recpt: [In reply to]

2009/11/20 Raymond Jette <rjette [at] mestek>:
> 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 [at] bowyer
Follow me on Twitter: twitter.com/peeebeee

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


rjette at mestek

Nov 20, 2009, 10:29 AM

Post #3 of 3 (412 views)
Permalink
Re: Issues with acl_check_recpt: [In reply to]

On 11/20/2009 10:26 AM, Raymond Jette wrote:
> 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,
>
> Ray
>
>
>
>
I was able to get this to work. I set 'relay_from_hosts' now everything
is working. All of my mail server that use this system as a smart host
are covered by the relay_from_hosts.

Thanks for the help,
Ray



--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.