Sender based routing (smarthost)

Users tips and ideas

Moderators: FlorianB, Pascal, bourgeois, mentor

Posts: 497
Joined: Mon Mar 11, 2013 7:42 am
How did you hear about Mailcleaner: google
Location: Germany

Sender based routing (smarthost)

Postby del » Sun Apr 07, 2013 9:55 am

/usr/mailcleaner/etc/exim/exim_stage1.conf_template add these lines after filter_forward to your routers configuration

Code: Select all

   condition = ${extract{smart_host}{${lookup{$sender_address_domain}lsearch{/var/mailcleaner/spool/smarthost.list}{$value}fail}}}
   driver = manualroute
   domains = ! +local_domains
   route_list = "* ${extract{smart_host}{${lookup{$sender_address_domain}lsearch{/var/mailcleaner/spool/smarthost.list}{$value}fail}}} byname"
   transport = remote_smtp

modify /var/mailcleaner/spool/smarthost.list (example)

Code: Select all

domain1:        smart_host=ip_of_the_destination_server
domain2:        smart_host=ip_of_the_destination_server

Return to “Tips”

Who is online

Users browsing this forum: No registered users and 1 guest