Hide Received information from Email when using SwiftMailer and SMTP

64 Views Asked by At

I have a VPS hosting and I am using SwiftMailer to send emails using an smtp from another hosting. When I send an email to the user the source mail contains my VPS ip address and domain in headers, like the following below:

Received: from [ip.ip.ip.ip] (port=•port• helo=mydomain.name) by ....

I was able to hide the domain from swiftmailer using setLocalDomain, but wasn't able to change the IP address even when using setSourceIp on SwiftMailer.

Hint: I don't have access to smtp hosting, I have just my VPS and smtp credentials.

0

There are 0 best solutions below