title: Configuring Mutt on a local SMTP client that doesn't work
body: <p>I'm trying to write a shell script that send a mail to my collegue using Mutt and a local smtp server . I mentioned smtp configuration in /home/${USER}/.muttrc like (i don't need to configure POP or IMAP since i just wan't to send mails):</p>
  <pre><code>#Comme éditeur
  set editor = &quot;vim -c 'set tw=72' -c 'set wrap'&quot;
  
  ### CONFIGURATION POP3
  #set pop_user = &quot;myName@rte-france.com&quot;
  #set pop_pass = &quot;myPassword&quot;
  #set pop_delete = yes
  #set pop_host = &quot;pop://karlito.applispfref.sipfref.local:995&quot;
  #
  #
  #### CONFIGURATION SMTP
  set smtp_pass = &quot;Password&quot;
  set smtp_url = &quot;smtp://myName@rte-france.com@karlito.applispfref.sipfref.local:25&quot;
  set ssl_force_tls = yes
  set ssl_starttls = yes
  set from = &quot;myName@rte-france.com&quot;
  set use_envelope_from=yes # Pour que postfix ou sendmail ne change pas votre from
  # 
  # 
  # locales FR pour les nom des jours et mois
    set locale=&quot;fr_FR&quot;
  #  #
   # Format de date
  set date_format=&quot;%A %d %b %Y à %H:%M:%S (%Z)&quot;
  </code></pre>
  <p>and when i test to send a mail :</p>
  <pre><code>echo -e &quot;Test&quot; | mutt -s &quot;Sujet de teste &quot;  test@testDomain.com
  </code></pre>
  <p>i get the following error :
  <strong>La session SMTP a échoué : 501 5.0.0 Invalid domain name
  Impossible d'envoyer le message.</strong>
  and when testing using Telnet</p>
  <pre><code>telnet karlito.applispfref.sipfref.local 25
  helo client.domaine.com
  mail from:&lt;myName@rte-france.com&gt;
  </code></pre>
  <p>i get the following error:
  <strong>550 5.0.0 Relayage interdit depuis cette machine</strong></p>
  <p>Any help plz.</p>