应该是可以的需要 stunnel+E-MailRelay,当初就是为了给搬瓦工的 wekan 找一个无需 smtp 用户认证的实现。
stunnel conf
[gmail-smtp]
;sslVersionMin = TLSv1.2
client = yes
accept = 127.0.0.1:10025
connect = smtp.qq.com:465
verifyChain = yes
CAfile = ca-certs.pem
checkHost = smtp.qq.com
OCSPaia = yes
emailrelay.bat
start "emailrelay" "d:\Program Files (x86)\E-MailRelay\emailrelay.exe" --client-auth "d:\Program Files (x86)\E-MailRelay\conf\emailrelay.auth" --close-stderr --forward-to 127.0.0.1:10025 --immediate --log --log-address --log-file "d:\Program Files (x86)\E-MailRelay\Run-time\emailrelay-log-%%d.txt" --log-time --pid-file "d:\Program Files (x86)\E-MailRelay\Run-time\emailrelay.pid" --remote-clients --spool-dir "d:\Program Files (x86)\E-MailRelay\spool" --verbose |