We have three domains hosted on a single dedicated server, each with its own dedicated IP address.
Domain A - contains the primary server IP (default server IP)
Domain B - has its own IP address
Domain C - has its own IP address
If the message is sent from domain B, then it uses the IP address of domain A in the outgoing, and it makes emails from domain B using PHP, directly to the Gmail spam box, etc.
Is there a way to change the source IP address depending on where the email is sent to in PHP? What must we change to fix this?
source
share