Forward mail to mailbox server with Exim

https://github.com/Exim/exim/wiki/Q0309

 

domainlist fw2_domains = dsearch;/etc/exim4/fw2domains/
######################################################################
#                      ROUTERS CONFIGURATION                         #
#               Specifies how addresses are handled                  #
######################################################################
begin routers

#smarthost:
#  driver = manualroute
#  domains = ! +local_domains
#  transport = remote_smtp
#  route_list = * smartrelay.vestacp.com
#  no_more
#  no_verify

dnslookup:
  driver = dnslookup
  domains = !+local_domains
  transport = remote_smtp
  self = pass
  no_more

internal:
  driver = manualroute
  domains = +fw2_domains
  transport = remote_smtp
  route_list = * 10.0.0.4