I have several domains hosted in my web server, most of them have mail working with Google Apps, however, since Google Apps has no free accounts any more I am now using Windows Live services with my new domains.
Lets state domiain1.com works with Google Apps and domain2.com works with Windows Live.
My original config used the MAIL_HUB and LOCAL_RELAY like this:
define(`MAIL_HUB', `domain1.com.')dnl
define(`LOCAL_RELAY', `domain1.com.')dnl
I tried adding the domain2.com but it didn't work. Then I found that i could try and find the mx records with some code:
LOCAL_CONFIG
Kbestmx bestmx -T.TMP
LOCAL_RULE_0
R $* < @ domain1.com. > $* $#esmtp $@ [$(bestmx domain1.com. $)] $: $1 < @ domain1.com. > $2
It seems that this code states that the domain1.com MX records are the ones for Google, if I add the domain2.com it tries to reach Google instead of Windows.
How can I state that domain1.com MX records are from Google and domain2.com MX records are from Windows Live?
I am runnin Debian 6, my local-host-names file just has localhost stated in it.