Skip to content

Instantly share code, notes, and snippets.

@kanru
Created August 16, 2012 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanru/3368424 to your computer and use it in GitHub Desktop.
Save kanru/3368424 to your computer and use it in GitHub Desktop.
Debian exim4 multiple smart host config
smarthost:
debug_print = "R: smarthost for $local_part@$domain"
driver = manualroute
domains = ! +local_domains
transport = remote_smtp_smarthost
route_data = ${if exists{CONFDIR/smarthosts}\
{${lookup{${domain:$h_from:}}lsearch{CONFDIR/smarthosts}\
{$value}{DCsmarthost}}}\
{DCsmarthost}}
host_find_failed = defer
same_domain_copy_routing = yes
no_more
@osamuaoki
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment