• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Can I send emails from two different IP addresses?

S

SBCTEC

Guest
Here's the dilemma. I have a client who needs ssl hosting. I have a secure certificate, and I set up an additional IP address for their domain. When someone goes to their web page, they resolve to 111.111.111.111 and not 222.222.222.222. But when they send emails out, it looks like it's coming from 222.222.222.222, just like all the other clients I have on the shared hosting.

How do I configure it so users from the exclusive domain send emails out of one IP, and the rest of the users on the shared side send out another IP? I'm using Plesk 8.6 (until 9.0) in RHEL.
 
Hi,

IP address you specify on Domains > domain_name > Setup page (or during hosting creation) only affects apache settings - virtual host is placed on this address.

The IP address domain resolves to depends on what 'A' record it has in DNS.

As for what IP address is shown in mail headers - qmail puts whatever address the OS chooses for all outbound connections. Check the following article for details:
http://kb.odin.com/en/1190

also article below might be useful:
http://kb.odin.com/en/1189

By default qmail does not provide possibility to set 'from' IP address displayed in mail headers on per domain basis.
But there are patches for qmail that add this functionality, for example:
http://www.memoryhole.net/qmail/#outgoingip

If you decide to apply this patch on qmail then refer to the following article for instructions on how to patch compile Qmail on Plesk server with custom patches:
http://kb.odin.com/en/1161
 
Amazing

Without even following the links, I just have to say that your response was thorough, concise and to the point. I am thoroughly impressed, and I'm sure after following these links and reading the response, I'll find exactly what I need. Thank you.
 
Back
Top