我想在家里设置我的RAID服务器,使用Gmail的SMTP和我的谷歌应用程序的电子邮件提醒我,如果有任何问题。
我build立了ssmtp,这里是我的configuration:
# Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=email@gmail.com # 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=smtp.gmail.com:587 # Where will the mail seem to come from? #rewriteDomain= # The full hostname #hostname=ALEXANDRIA # 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 UseSTARTTLS=YES UseTLS=YES [email protected] AuthPass=****
但每次我尝试发送我得到这个错误:
ssmtp:授权失败(454 4.7.0由于临时系统问题无法validation,请稍后再试14sm88672bwz.5)
我已经通过networkinglogin到帐户,它没有被locking。
请帮助我,我已经花了太长时间试图弄清楚了。
答案是我的电子邮件地址中有特殊字符。
看起来像Gmail是有问题的,它的TLS身份validation。 我会做消息说,然后再试。 如果问题持续一段时间,那么请考虑调查Gmail支持。 这看起来似乎不像你的结局有什么问题。
这应该是这样简单的旧文章: http : //www.sysadminsjourney.com/2008/09/01/use-gmail-as-an-smtp-relay-using-ssmtp在这里归档: http:// web。 archive.org/web/20090104204332/http://www.sysadminsjourney.com/2008/09/01/use-gmail-as-an-smtp-relay-using-ssmtp
您可能没有正确指定您的电子邮件或密码。 (这似乎我猜对了)
文章基本上这样说:
将GMail用作使用SSMTP的SMTP中继
张贴星期一,09/01/2008 – 21:05由贾斯汀埃里森
在你的家庭工作站上,特别是在笔记本电脑上,build立一个完整的SMTP服务器,比如Postfix,Sendmail或者Exim,可能会过度。 按照跳转学习如何设置轻量级ssmtp通过使用Gmail作为智能主机通过您的GMail帐户转发所有出站邮件。SSMTP旨在成为一个完整的MTA的简单,安全和轻量级的替代品。 就个人而言,我觉得最好的方式就是在笔记本电脑上使用networking,并且需要发送来自cron或其他shell脚本的出站邮件。
通过设置SSMTP,无论你身在何处,发送邮件都会通过encryption的SMTP发送到Google的Gmail服务器。 交付后,Google的服务器将为您完成所有路由。
设置SSMTP非常简单快捷 – 让我们开始吧。 在Ubuntu上运行:
sudo apt-get install ssmtp mailx现在,我们只需要configurationSSMTP。 在您最喜欢的编辑器中打开/etc/ssmtp/ssmtp.conf,并添加或更新以下行:
#The following line redirects mail to root to your gmail account [email protected] mailhub=smtp.gmail.com:587 UseSTARTTLS=yes UseTLS=yes [email protected] AuthPass=mypassword
而已! 现在,我们来试一试:
echo "This is a test message." | mailx -s 'Test Message' [email protected]你现在应该都准备好了,准备好了!
显然,Google有兴趣validation一些帐户,并在login区域中添加capcha。 login到您的谷歌帐户,并转到此页来转换capcha: