• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Send outgoing mail through main server IP, not dedicated IP

MarkJH

New Pleskian
Hey all,

I know this has been mentioned many times (I've searched and seen lots of references - usually going the other way though - trying to do the opposite...) but I've got one site with a dedicated IP address and outgoing mail gets sent via that IP address. All other domains on the server get sent using the master IP address and by and large have no problem.

I know this is a feature and supposed to prevent blacklisting, etc - but all domains are controlled by me and are 'safe' (or, at least, I take responsibility for!). Does anyone know how to turn off this feature so all domains e-mail is sent from the main server IP?

Thanks in advance :)
Mark
 
You can turn that feature off manually by editing /etc/postfix/master.cf and at the bottom of the file you'll see the line binding mail from each IP to that IP. Remove those lines and restart postfix.
 
Hi,

Thanks for the reply,

Checking in there I can't see anything looking specific to my setup - digging deeper makes me think that the server is actually using qmail rather than postfix. I don't know if there's preference over either (or, if in this case, there would be an advantage to switching to make this change)?

Kind regards and many thanks for the help,
Mark
 
Looking at the differences and other discussions it would seem that most people have already jumped ship to Postfix. So I'll follow suit and see if the master.cf file sheds some light on to the outgoing mail server problems afterwards! ...

Kind regards
 
If you're on qmail, it doesn't support the ip mapping feature so all your outbound mail should already be going from the first IP on the server. If it's postix, you will have that problem and in master.cf you'll have lines like this:

1.2.3.4- unix - n n - - smtp -o smtp_bind_address=1.2.3.4 -o smtp_bind_address6= -o smtp_address_preference=ipv4
 
Right, MTA changed; I've just commented out the other two IP addresses on the server.

Do you know if those settings are likely to change 'randomly' (i.e., server upgrade, etc) as it's not something that we'll likely notice - just some e-mails become blocked.

Either way - many thanks for your help. Seems to have done the trick nicely!

Kind regards
Mark
 
The file should change any time a new site is added on an exclusive IP, but I'm not sure if Plesk will go back through and check for entries that should have been there to put back if they go missing. You could test it by adding a new test domain on an exclusive IP, check, delete it and check again.
 
Strange...

The problem was noticed when e-mailing an AOL account. I know it's AOL being a pain - but the IP had a low reputation and no reverse-DNS. Checking two domains on the same server, mails both originated from different IP's. But definitely q-mail!

So, not entirely sure what caused that, in that case... But either way, they're coming from the right place now!

Kind regards
Mark
 
Back
Top