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.
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
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?