在Debian Lenny中设置PHP邮件

在Debian Lenny中设置PHP邮件,debian,php,ssmtp,Debian,Php,Ssmtp,所以我尝试在Debian Lenny中设置PHP邮件 我遵循了本教程:我已经使用aptitude install ssmtp安装了ssmtp 我的电子邮件提供商是godaddy,因此我的MX记录是: 这是我的ssmtp.conf文件: # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root

所以我尝试在Debian Lenny中设置PHP邮件

我遵循了本教程:我已经使用
aptitude install ssmtp
安装了ssmtp

我的电子邮件提供商是godaddy,因此我的MX记录是:

这是我的ssmtp.conf文件:

# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=contact@example.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=smpt.europe.secureserver.net

# Where will the mail seem to come from?
rewriteDomain=example.com

# The full hostname
hostname=smtp.europe.secureserver.net

# 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=NO


AuthUser=contact@example.com
AuthPass=PASSWORD
UseSTARTTLS=yes
UseTLS=yes
#sSMTP sendmail的配置文件
#
#获取用户ID<1000的所有邮件的人
#将此设置为空以禁用重写。
根=contact@example.com
#寄邮件的地方。实际的机器名是必需的,不需要
#查阅MX记录。通常邮件主机名为mail.domain.com
mailhub=smpt.europe.secureserver.net
#邮件似乎来自哪里?
rewriteDomain=example.com
#完整主机名
主机名=smtp.europe.secureserver.net
#是否允许用户设置自己的发件人:地址?
#是-允许用户指定自己的发件人:地址
#否-使用从生成的系统:地址
FromLineOverride=否
作者=contact@example.com
AuthPass=密码
UseSTARTTLS=是
UseTLS=是
其中example.com是我的域名。 我得到这个错误:

#ssmtp:无法打开smtp.europe.secureserver.net:25

使用电子邮件客户端时,我总是使用smtpout.europe.secureserver.net而不是smtp。。。但当我试图更改配置文件时,仍然会出现相同的错误


我做错了什么?

可能是您的ISP阻止了到端口25的出站连接。通常587端口是一个备用端口。

我不知道您是否只是在这个论坛中输入了错误,但您的邮件中心应该是smtp.europe.secureserver.net,而不是smpt.europe.secureserver.net。

我不知道GoDaddy是否具体,但您的smtp服务器是否使用SSL/TLS(不是用于身份验证,而是用于实际邮件),然后,您应该以某种方式在PHP中定义它。现在您正在为SMTP使用非SSL端口25。感谢您的建议。GoDaddy不需要SSL身份验证进行传出,只需要传入。