1

I am running number of web servers on google cloud platform. Google cloud bans port 25 to prevent spam, so to receive mails I use different server which forwards all mail to a google server on a different port, using router

redir:
  driver = manualroute
  domains = *
  transport = remote_smtp
  route_list = * myhost.com::2567

Now if I want to use multiple interfaces and redirect each interface to a different server, do I have to run multiple instances of exim or is there a way to just configure single exim (or any other server) in a way that would use different routes for different interfaces?

Something like

redir:
  driver = manualroute
  domains = *
  interface = 1.1.1.1
  transport = remote_smtp
  route_list = * myhost1.com::2567

redir:
  driver = manualroute
  domains = *
  interface = 1.1.1.2
  transport = remote_smtp
  route_list = * myhost2.com::2567
  • You probably want virtual domains. No need to use multiple addresses/interfaces. At least postfix supports the functionality; I think exim too, but I am not so sure about that. – Rui F Ribeiro Aug 14 '17 at 10:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.