When I installed virtualmin I had initially named the server vps.site-a.com, however now I’m using a different website on the same installation (site-b.com).
Some of the people I’ve been emailing will have my emails placed in their Junk folders. Upon some investigation I noticed that the path the email takes is through vps.site-a.com and not through smtp.site-b.com
How can I setup virtualmin so that emails that are generated from site-b.com show as being sent from the site-b.com server?
Once that’s done I can look at reverse dns entries and ptr records, but for now this is the logical first step.
Email, by default, will indeed go out via the default IP address on the server.
That shouldn’t be a problem at all, and is a common setup.
If email is going into a spam folder, that’s not likely the cause.
However, if you have Postfix 2.7 or newer, Virtualmin does support per-IP address outgoing email delivery.
You can see if that’s supported on your server by going into System Settings -> Re-Check Config.
If that’s supported, you’ll see something like this:
Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module.
Okay so it is not supported:
[b]Your Postfix version does not support per-domain outgoing IP addresses[b]
Is it as simple as upgrading the Postfix?
Thanks for the quick reply!
Well, there isn’t a supported way of upgrading Postfix.
You’re using the Postfix version available to your distro – the only way to upgrade that would be to use a version from a third party repository, which isn’t something we’d recommend.
Since I don’t think that’s the cause of the problem you’re seeing, it might be better to try and find another way to resolve that issue.
However, there are some who use third party repositories and the Postfix version from them – and while we recommend against this, you could always try it and see what happens. If you choose to try that, I’d highly recommend testing that on a test server before using third party packages on your live server
There’s likely a different explanation as to why these emails are ending up in a spam folder though.
Using shared hosting, and having all email go out via one IP address, is very common.
Okay so I’ll stop searching then
Is there no way that I can rename the vps to the outgoing server name I would like it to be?
Do I just create reverse dns records and ptr records for the original server name even though they are different?