所以我正在尝试在 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 ...但是当我尝试更改配置文件时仍然遇到相同的错误。
我做错了什么?