Re: [exim] Relay incoming email

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Marc Haber
日付:  
To: exim-users
題目: Re: [exim] Relay incoming email
On Fri, 8 Apr 2011 18:03:12 -0400, luda posch <ludaludaluda@???>
wrote:
>I have an exim 4.69 server and I want to set up an ACL that will check
>certain conditions and if one is met, then the email will be sent off to a
>different server (another exim server, that one running 4.74)
>
>How can I selectively relay incoming email to other servers?


Use a router that accepts an address if your conditions are met.

For example:
|hubbed_hosts:
|  debug_print = "R: hubbed_hosts for $domain"
|  driver = manualroute
|  domains = "${if exists{CONFDIR/hubbed_hosts}\
|                   {partial-lsearch;CONFDIR/hubbed_hosts}\
|              fail}"
|  same_domain_copy_routing = yes
|  route_data = ${lookup{$domain}partial-lsearch{CONFDIR/hubbed_hosts}}
|  transport = remote_smtp


will read a config file in the form of
domain.example.com: server.example.com
and relay all messages for @domain.example.com to server.example.com.

Greetings
Marc
-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834