Package: exim4-config
Version: 4.50-8
Severity: wishlist

Most Free-E-Mail services want to see their own address in the
envelope sender of submitted messages. The following (untested!)
config snippet reads a table and chooses the smarthost depending on
the envelope sender of a message.

smarthost_list:
  debug_print = "R: smarthost list for [EMAIL PROTECTED]"
  driver = manualroute
  domains = ! +local_domains
  senders = wildlsearch;CONFDIR/sender.smarthost
  transport = remote_smtp_list
  route_list = * ${lookup{$sender_address}wildlsearch{CONFDIR/sender.smarthost}}
  host_find_failed = defer
  same_domain_copy_routing = yes
  no_more

Transport:
remote_smtp_list:
  debug_print = "T: remote_smtp_list for [EMAIL PROTECTED]"
  driver = smtp
  hosts_try_auth = 
${lookup{$sender_address}wildlsearch{CONFDIR/sender.smarthost}}

/etc/exim4/sender.smarthost:
[EMAIL PROTECTED]        mail.gmx.net
[EMAIL PROTECTED]        mail.gmx.net

If anybody using multiple free-mail servers, please test.

Greetings
Marc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to