title: Linux - 550 Access denied - Invalid HELO name(See RFC2821 4.1.1.1)
body: <p>I am trying to send an email via Linux server but i never receive it. I'm currently using putty and I use </p>
  
  <pre><code># php -r 'mail("*****@gmail.com","Test subject", "Test Message","From: *****@gmail.com");'
  </code></pre>
  
  <p>Then i go check my message with</p>
  
  <pre><code>cat /var/spool/mail/
  </code></pre>
  
  <p>and i got this</p>
  
  <pre><code> ----- The following addresses had permanent fatal errors -----
     &lt;****@gmail.com&gt;
     **(reason: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1))**
  
  ----- Transcript of session follows -----
    ... while talking to domain.ca.:
    &gt;&gt;&gt; MAIL From:&lt;*****@****&gt; SIZE=568
    &lt;&lt;&lt; **550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)**
    554 5.0.0 Service unavailable
  </code></pre>
  
  <p>I searched on the web and i can't find an answer 
  some people say its an authentification problem but they are talking mainly about outlook.
  I don't know if it help, but when I do telnet and ehlo i got this</p>
  
  <pre><code># telnet localhost 25
     Trying ::1...
     telnet: connect to address ::1: Connection refused
     Trying 127.0.0.1...
     Connected to localhost.
     Escape character is '^]'.
     220 *** ESMTP Sendmail 8.14.4/8.14.4; Fri, 27 Sep 2013 14:47:10 -0400
  
  # ehlo localhost
     250-****Hello localhost [127.0.0.1], pleased to meet you
     250-ENHANCEDSTATUSCODES
     250-PIPELINING   
     250-8BITMIME
     250-SIZE
     250-DSN
     250-ETRN
     250-DELIVERBY
     250 HELP
  </code></pre>
  
  <p>I think it's missing</p>
  
  <pre><code>   250-AUTH LOGIN PLAIN
     250-AUTH=LOGIN PLAIN
  </code></pre>
  
  <p>I don't know if it's because of that i have my error and that i can't send an email? If yes, I don't know what to do to make this apear.</p>
  
  <p>Can someone help me please? I'm new with linux and php mail</p>