Answers.Body: <p>I created CRM-20982 to fix this</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-10T02:40:08.173Z
Answers.LastActivityDate: 2017-08-10T02:40:08.173Z
Answers.UserDisplayName: Ken West
Body: <p>CiviCRM should say ...</p>
  
  <pre><code>EHLO example.com
  </code></pre>
  
  <p>... in the SMTP dialogue as it sends email. And it does when the email is being sent via a browser.</p>
  
  <p>But when the email is being send via a CLI batch job, CiviCRM says ...</p>
  
  <pre><code>EHLO localhost
  </code></pre>
  
  <p>... which some email hosts interpret as a SPAM source.</p>
  
  <p>Any thoughts?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-28T06:33:59.080Z
Comments.Text: The cause is at https://github.com/civicrm/civicrm-core/blob/master/CRM/Utils/Mail.php#L72
Comments.UserDisplayName: Ken West
Tags: <civimail>
Title: CiviCRM identifies itself over SMTP as 'localhost' while sending CiviMail via CLI
ThreadText: # CiviCRM identifies itself over SMTP as 'localhost' while sending CiviMail via CLI
  
  (Asked by: username_0 on 2017-06-25)
  
  CiviCRM should say ...
  EHLO example.com
  
  ... in the SMTP dialogue as it sends email. And it does when the email is being sent via a browser.
  But when the email is being send via a CLI batch job, CiviCRM says ...
  EHLO localhost
  
  ... which some email hosts interpret as a SPAM source.
  Any thoughts?
  
  **Tags:** civimail
  
  > **Comments:**
  > **username_0**: The cause is at https://github.com/civicrm/civicrm-core/blob/master/CRM/Utils/Mail.php#L72  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-08-10. Score: 1
  
  I created CRM-20982 to fix this
  
  
  ---
  
  