title: Setting up PHP mail in Debian Lenny
body: <p>So I am trying to setup PHP Mail in Debian Lenny.</p>
  
  <p>I followed this tutorial: <a href="http://www.thewireframecommunity.com/node/39" rel="nofollow noreferrer">http://www.thewireframecommunity.com/node/39</a> and I've installed ssmtp with <code>aptitude install ssmtp</code>.</p>
  
  <p>My email provider is godaddy so my MX records are: <img src="https://i.stack.imgur.com/5XhYD.jpg" alt="enter image description here"></p>
  
  <p>And this is my ssmtp.conf file:</p>
  
  <pre><code># Config file for sSMTP sendmail
  #
  # The person who gets all mail for userids &lt; 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
  </code></pre>
  
  <p>where example.com is my domain name.
  I get this error: </p>
  
  <p><code># ssmtp: Cannot open smtp.europe.secureserver.net:25</code></p>
  
  <p>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.</p>
  
  <p><strong>What I'm I doing wrong?</strong></p>