0

所以我正在尝试在 Debian Lenny 中设置 PHP Mail。

我遵循了本教程:http ://www.thewireframecommunity.com/node/39并且我已经安装了 ssmtp 和aptitude install 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

其中 example.com 是我的域名。我收到此错误:

# ssmtp: Cannot open smtp.europe.secureserver.net:25

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

我做错了什么?

4

2 回答 2

1

我不知道你是不是把它打错了这个论坛,但你的 mailhub 应该是 smtp.europe.secureserver.net,而不是 smpt.europe.secureserver.net。

于 2012-08-12T00:15:13.953 回答
0

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

于 2012-04-27T13:08:25.280 回答