Answers.Body: <p>In general: you should NOT use a from address of a domain you do not control.</p>
  
  <p>the smtp protocol does not care and you can send an email pretending to be whomever sender you want, but given how it has been abused by spamers, other protection layers were put in place (DKIM, SPF).</p>
  
  <p>These basically white-list which servers are allowed to send emails on the behalf of a specific sender (domain). Each other server in the world can then look at these lists, and decide to accept or reject your email based on that.</p>
  
  <p>So it's not a hard rule, and depending on what from email you put and to whom you send it and how the various email servers are setup, it will work... or won't.</p>
  
  <p>And no matter what, it's likely that more and more domains will white-list what are the servers allowed to send on their behalf, and more and more mail servers will look at these list and reject "unauthorised" senders.</p>
  
  <p>So consider an anomaly that you can still send as @me.com for instance, and that it will soon fail.</p>
  
  <p>Use your own domain(s) for the from and do set up the needed dns records to white-list your civicrm server (and the other servers you use to send emails).</p>
  
  <p>And yes, it's a bit of a pain to set up, I'd suggest you to use an external provider (sendgrid, mailjet...) to deal with that. they all have clear instructions on how to set it up.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-07T14:40:32.130Z
Answers.LastActivityDate: 2017-03-07T22:04:50.430Z
Answers.LastEditDate: 2017-03-07T22:04:50.430Z
Answers.UserDisplayName: Xavier
Body: <p>I'm having some strange problems with sending out emails.</p>
  
  <p>I've run a number of tests using different From addresses, and some of them work fine, but others are rejected by the recipient mail server. Here are the results of 9 different From addresses:</p>
  
  <p>Fail:</p>
  
  <p>xxx_xxxxxxx@hotmail.co.uk</p>
  
  <p>xxx_xx@hotmail.com</p>
  
  <p>xxxx_xxxxx@yahoo.co.uk</p>
  
  <p>xxxxxxxxxxxxx@yahoo.co.uk</p>
  
  <p>Succeeds:</p>
  
  <p>xxxxxxxxxxxxxxxx@gmail.com</p>
  
  <p>xxx.xxxxxx.xxxxxx@me.com</p>
  
  <p>xxxxx.xxxxxxxxx@talk21.com</p>
  
  <p>xxxxx@xxxxxx.org.uk (same domain as site)</p>
  
  <p>xxxxxxxxxxxx@xxxxxx.org.uk (same domain as site)</p>
  
  <p>xxxxxxxxxxxx@djinter.net</p>
  
  <p>They don't fail for all recipients - there are clear patterns about which succeed and which get rejected. Most of the main webmail services: gmail, yahoo, hotmail, etc are rejecting them. Lesser know mail servers (presumably with less stringent criteria) are accepting them. </p>
  
  <p>Outbound Mail is set to mail(). </p>
  
  <p>Any one else had problems like this, or able to offer advice?</p>
  
Tags: <drupal><civimail>
Title: Why do some From addresses work and others get rejected
ThreadText: # Why do some From addresses work and others get rejected
  
  (Asked by: username_0 on 2017-03-07)
  
  I'm having some strange problems with sending out emails.
  
  I've run a number of tests using different From addresses, and some of them work fine, but others are rejected by the recipient mail server. Here are the results of 9 different From addresses:
  
  Fail:
  
  xxx\_xxxxxxx@hotmail.co.uk
  
  xxx\_xx@hotmail.com
  
  xxxx\_xxxxx@yahoo.co.uk
  
  xxxxxxxxxxxxx@yahoo.co.uk
  
  Succeeds:
  
  xxxxxxxxxxxxxxxx@gmail.com
  
  xxx.xxxxxx.xxxxxx@me.com
  
  xxxxx.xxxxxxxxx@talk21.com
  
  xxxxx@xxxxxx.org.uk (same domain as site)
  
  xxxxxxxxxxxx@xxxxxx.org.uk (same domain as site)
  
  xxxxxxxxxxxx@djinter.net
  
  They don't fail for all recipients - there are clear patterns about which succeed and which get rejected. Most of the main webmail services: gmail, yahoo, hotmail, etc are rejecting them. Lesser know mail servers (presumably with less stringent criteria) are accepting them.
  
  Outbound Mail is set to mail().
  
  Any one else had problems like this, or able to offer advice?
  
  **Tags:** drupal, civimail
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-03-07. Score: 8
  
  In general: you should NOT use a from address of a domain you do not control.
  
  the smtp protocol does not care and you can send an email pretending to be whomever sender you want, but given how it has been abused by spamers, other protection layers were put in place (DKIM, SPF).
  
  These basically white-list which servers are allowed to send emails on the behalf of a specific sender (domain). Each other server in the world can then look at these lists, and decide to accept or reject your email based on that.
  
  So it's not a hard rule, and depending on what from email you put and to whom you send it and how the various email servers are setup, it will work... or won't.
  
  And no matter what, it's likely that more and more domains will white-list what are the servers allowed to send on their behalf, and more and more mail servers will look at these list and reject "unauthorised" senders.
  
  So consider an anomaly that you can still send as @me.com for instance, and that it will soon fail.
  
  Use your own domain(s) for the from and do set up the needed dns records to white-list your civicrm server (and the other servers you use to send emails).
  
  And yes, it's a bit of a pain to set up, I'd suggest you to use an external provider (sendgrid, mailjet...) to deal with that. they all have clear instructions on how to set it up.
  
  
  ---
  
  