I have a situation where I have multiple domains on the main gateway server for our network, and I need a second server only mail server inside on the local network for a different domain.
I have setup proxypass and that works well to get web pages etc. I can send mail out from the internal server to the outside world, but when I send email in, they get redirected at the primary server to the primary domain name.
IE, local network mail server is mail.localnet.net.au, gateway domain is mail.gateway.net.au. Mail coming in for info@localnet.net.au does not get past the mail.gateway.net.au.
/var/log/qmail/current shows mail comes in and starts delivery to local alias-localdelivery-info@localnet.net.au, then a couple of lines further shows starting delivery to local info@mail.gateway.net.au
I had a look at httpd.conf and it shows virtual domain 0.0.0.0:443 as being correct to redirect to the internal IP.
I have very little hair left now as most of it has been pulled out. I have been googling and hunting through forums for too many hours.
Please help if you have done this before, or even if you can point me in the correct direction.
Thank you.