我使用 来设置最简单的外发电子邮件服务器ssmtp
。它给了我错误ssmtp: 550 Sender address is not allowed
。这是我的配置,没有注释:
#/etc/ssmtp/ssmtp.conf
[email protected]
mailhub=mail.gmx.com:587
rewriteDomain=gmx.com
hostname=gmx.com
FromLineOverride=YES
[email protected]
AuthPass=password
UseSTARTTLS=YES
运行输出:
~# echo "E-Mail testing SSMTP" | ssmtp -vv [email protected]
[<-] 220 gmx.net (mrgmx004) Nemesis ESMTP Service ready
[->] EHLO gmx.com
[<-] 250 STARTTLS
[->] STARTTLS
[<-] 220 OK
[->] EHLO gmx.com
[<-] 250 SIZE 69920427
[->] AUTH LOGIN
[<-] 334 VXNlcm5hbWU6
[->] aG1pZGFuaWFiZGVsaWxhaEBnbXguY29t
[<-] 334 UGFzc3dvcmQ6
[<-] 235 Authentication succeeded
[->] MAIL FROM:<[email protected]>
[<-] 550 Sender address is not allowed.
> ssmtp: 550 Sender address is not allowed.