Jonathan Amiez a écrit : > Hello everyone. > > I'm trying to set up a specific mail server configuration on 3 sites. > The first one is hosting a mailhub (with spam filter, etc.) and the > 2 others are agencies. > The 2 agencies use the same domain (eg. edatis.com) for mailing. > I'm currently working on the first agency's server. > Accounts are stored in MySQL db replicated on the 2 sites from the hub. > > So, my problem is : if I don't care about "transport" statements, all mail is > delivered on the local agency server, and if I do, mail is directly sent to > the other agency, without passing by the mailhub. > I need all outgoing email (remote agency or internet) to pass by the hub. > > I found very few inaccurate info about this setup (seems kind of unusual) so > I'm asking for help. The objective is also supporting an undefined number of > agency with this principle. > > Here are my conf files : > [snip]
by default, mail goes to the MX of the domain. you can override that with local transport maps, but these maps only apply to you infrastructure. if you want mail to go to joe.example.com, you need to configure an MX record in DNS: example.com. MX 10 joe.example.com. (Warning: the leading dots aren't just for decoration). an excellent DNS resource is: http://www.zytrax.com/books/dns/