Recently I updated the MX records on a domain1.com to point to domain2.com. Domain two is currently running exim4 and I would like it to relay mail for domain1. The problem is every time I send an email from say email@example.com to firstname.lastname@example.org I receive the following message:
Note: I am not using split config files
2015-01-12 14:49:42 H=mail-ig0-f178.google.com [126.96.36.199] F=<email@example.com> rejected RCPT <firstname.lastname@example.org>: Unrouteable address
I've tried following several online guides from people who had the same issue to no avail. Could someone point me in the right direction? I've been working on this for a while now and have made no progress.
Edit: I'm still fairly new to exim4 so I'm not quite sure what you mean by adding an IP address router on Domain2 to connect to Domain1. However I did manage to add domain1 to dc_relay_domains as wells in dc_relay_nets. My current /etc/exim4/update-exim4.conf.conf is as follows:
dc_eximconfig_configtype='internet' dc_other_hostnames='domain1.com;localhost' dc_local_interfaces='IP of eth0;IP of eth1' dc_readhost='domain1.com' dc_relay_domains='domain1.com;' dc_minimaldns='false' dc_relay_nets='IP of domain1/24' dc_smarthost='domain1.com:25' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='true' dc_mailname_in_oh='true' dc_localdelivery='maildir_home''