7

中转Gmail的SMTP数据

 3 years ago
source link: https://www.taterli.com/7465/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

下面这个解决方案是解决3个问题,所以不会使用常规的端口转发工具来进行,因为这样解决不了问题.

先分析其中遇到的难题:

  • VPS的25端口被禁止,因此不能监听这个端口,也不能从25端口发送信息.
  • 如果使用端口转发工具,转发目标是TLS/SSL/STARTTLS端口,将会出现握手失败,证书错误,因此也不能直接转发这些端口.
  • 虽然有很多第三方Relay可以解决问题,但是不知道Relay是否会记录密码.

因为我设计一个程序,从SMTP(无加密/有加密)端口,接收数据,然后解释出content,然后再由正规的SMTP服务器发出去,问题解决.

具体代码参考:https://github.com/nickfox-taterli/smtp-relay

测试IP:23.94.26.137 端口:2525 加密:None

feEBbeb.png!mobile

其他配置参考:https://support.google.com/a/answer/176600

测试可以发送的.

aYrqU3F.png!mobile

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK