Reputation: 14490
So I am trying to setup PHP Mail in Debian Lenny.
I followed this tutorial: http://www.thewireframecommunity.com/node/39 and I've installed ssmtp with aptitude install ssmtp
.
My email provider is godaddy so my MX records are:
And this is my ssmtp.conf file:
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
[email protected]
# 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
[email protected]
AuthPass=PASSWORD
UseSTARTTLS=yes
UseTLS=yes
where example.com is my domain name. I get this error:
# ssmtp: Cannot open smtp.europe.secureserver.net:25
When using an email client I always use smtpout.europe.secureserver.net instead of smtp... but I still get the same error when I try to change the config file.
What I'm I doing wrong?
Upvotes: 0
Views: 1121
Reputation: 11
I don't know if you just mistyped it into this forum, but your mailhub should be smtp.europe.secureserver.net, not smpt.europe.secureserver.net.
Upvotes: 1
Reputation: 4078
It is possible that your ISP is blocking outbound connections to port 25. Usually port 587 is an alternate.
Upvotes: 0