Mail Server on virtual IP interface

My main IP server ends in .226. I have a virtual server set up on ip that ends in .228. If I ping the ip comes back correctly ending in .228, however when an email is sent via it is actually transmitted via my main server on .226. This is causing some email problems as the domain name associated with .228 mismatches what the associated domain name on .226 is. Shouldn’t the .228 domain be sending its email through ip ending on .228 instead of the main ip .226?



Email will go out via the primary interface on the server – whatever the default route points to.

Mail server’s shouldn’t give you a hard time about that, in theory, so long as each IP address in that chain looks okay and has some sort of reverse DNS setup.

What problem are you seeing exactly?