我有一个非常奇怪的问题。我有一台Ubuntu Server 12.04,安装了LAMP,安装了ssmtp,并正确配置了它。现在我可以从我的系统(P.C)发送邮件,但当我将我的项目上传到网络主机(DigitalOcean)时,我的gmail会发送通知给我,告诉我“检测到可疑登录并已被阻止,请更改密码”。
这是我的ssmtp.conf
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=xyz@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=xyz@gmail.com
# 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
AuthUser=xyz@gmail.com
AuthPass=xyzDigitalOcean服务器位于中国上海,我在印度。我该怎么做?
发布于 2014-01-21 15:44:28
你应该考虑使用ssh或DigitalOcean ip登录gmail帐户-如果你有ssh或telnet,你可以很容易地通过隧道传输流量。
在允许smtp连接之前,Gmail将询问您有关帐户的一些信息。只需回答这些问题,在您最终登录后,smtp应该可以正常工作。
https://stackoverflow.com/questions/21251713
复制相似问题