[Pkg-exim4-users] (no subject)

Jon Seddon j.seddon at noc.ac.uk
Tue Jan 10 17:22:51 UTC 2012


Hi,

We have a mail system using exim4 on our ship. We currently send all emails to
our ISP's mail server using the following lines in update-exim4.conf.conf:

dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces=''
dc_readhost='ourdomain.co.uk'
dc_relay_domains=''
dc_minimaldns='true'
dc_relay_nets='192.168.0.0/16'
dc_smarthost='smtp.isp.com'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'


We have a mixture of people onboard sending emails. Some work for our company
and others work for other companies. Onshore our IT department operate the
corporate email system. Some of our emails are being marked as spam and so we
need to send emails that are coming from corporate addresses using the
corporate mail server (which is now set up to relay emails from the vessel's IP
address) but all other emails through the ISP's mail server.

I believe that the following exim4 configuration would achieve this:

smarthost_alpha:
   condition = ${if eq {${lc:$sender_address_domain}} {ourdomain.co.uk} {true}
fail }
   driver = domainlist
   transport = remote_smtp
   route_list = "* smtp.ourdomain.co.uk bydns_a"


smarthost:
   driver = domainlist
   transport = remote_smtp
   route_list = "* smtp.isp.com bydns_a"

However, I am struggling to see how to implement this using the Debian
configuration syntax in update-exim4.conf.conf. Any tips or pointers would be
greatly appreciated!


Thanks,


Jon





More information about the Pkg-exim4-users mailing list