我有一个Raspberry Pi与拉斯宾安装在上面,我正经历困难,发送电子邮件。
我已经安装了SSMTP,通常在脚本中发送电子邮件,以便在工作完成时通知我:
echo "$(date) Job completed" | mail -s "My subject" email@example.com直到几个月前,当我停止接收电子邮件时,一切都很顺利。我试图手动启动脚本,并收到以下错误:
send-mail: 550 Your authenticating ID must match your sending address.我怀疑我的SSMTP配置有问题,一开始我的电子邮件提供商没有检查,现在它不起作用了。在这里您可以找到我的ssmtp.conf文件:
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mail
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=raspberrypi
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
AuthUser=myUser
AuthPass=myPassword
mailhub=mysite.smtp.com:587
UseSTARTTLS=YES我想出了点问题,但我不是一个系统管理员,我对邮件服务没有太多的经验,有什么建议吗?
发布于 2014-09-24 10:11:57
authenticating ID must match your sending address.
服务器mysite.smtp.com:(或者更确切地说,它正在运行的MTA )拒绝您的邮件,因为您作为一个用户(myUser)进行身份验证,但以另一个用户的身份发送邮件。
https://unix.stackexchange.com/questions/157189
复制相似问题