使用SwiftMailer和SMTP时,隐藏从电子邮件中收到的信息

发布于 2025-01-22 09:27:03 字数 341 浏览 5 评论 0原文

我有一个VPS托管,我正在使用SwiftMailer使用另一个托管的SMTP发送电子邮件。 当我向用户发送电子邮件时,源邮件包含我的VPS IP地址和标题中的域,如下所示:

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

我能够使用setLocalDomain向SwiftMailer隐藏该域,但无法即使在SwiftMailer上使用setSourceip时,更改IP地址。

提示:我无法访问SMTP托管,我只有我的VPS和SMTP凭据。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文