Answers.Body: <p>I have a similar setup, but I have solved this outside CiviCRM. In CiviCRM, I configured the <em>mail()</em> send option. The effect is that the mail is routed by the local Mail Transport Agent. On my system, I use <em>postfix</em> for this task.</p>
  
  <p>Postfix can be configured to relay an email to an email service dependent on the email address. Use to do this the <strong>sender_dependent_relayhost_maps</strong> parameter. An example can be found in <a href="https://unix.stackexchange.com/questions/214125/php-mail-using-postfix-send-out-to-gmail-marked-as-spam">this answer on the Unix site</a>.</p>
  
  <p>It is a good practice to send bulk mail with Amazon SES to prevent the email to be marked as spam.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-26T18:18:05.110Z
Answers.LastActivityDate: 2016-11-17T18:17:04.823Z
Answers.LastEditDate: 2017-04-13T12:37:21.050Z
Answers.UserDisplayName: Kainuk - CiviCooP
Answers.Body: <p>While Kainuk's answer is better, a partial (but simpler to implement) solution is to prevent those emails altogether with the <a href="https://civicrm.org/extensions/outbound-domain-enforcement" rel="nofollow">Outbound Domain Enforcement</a> extension.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-29T01:12:23.157Z
Answers.LastActivityDate: 2016-10-29T01:12:23.157Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I have a site running SES for outgoing mail. It works just fine to send out mass email from the domain, but it fails every time I try to share a PCP from a non verified email. </p>
  
  <p>For example if I create a PCP from the main account on civicrm, and I use the SES verified email address, the PCP sharing works just fine. </p>
  
  <p>On the other hand if I create a PCP from my personal email address and try to share the PCP, then the send fails (Amazon SES does not accept unverified email senders). </p>
  
  <p>Is there a way to use mail() instead of AWS SES for this? or a way to allow for the domain to be validated? </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-09-12T10:30:10.520Z
Comments.Text: Thanks for your post Brian.  It would help other users if you could explain what the acronyms mean (SES, PCP, AWS).
Comments.UserDisplayName: William Mortada
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-27T21:56:51.633Z
Comments.Text: Amazon SES is an service offered by Amazon to sent bulk mail. (SES is short for Simple Email Service). Amazon SES is part from a range of services that go by the name AWS (Amazon Web Services).
Comments.UserDisplayName: Kainuk - CiviCooP
Tags: <pcp><smtp><amazon><amazon-ses>
Title: How to use Amazon Simple Email Service for only verified email sender addresses
ThreadText: # How to use Amazon Simple Email Service for only verified email sender addresses
  
  (Asked by: username_0 on 2016-09-11)
  
  I have a site running SES for outgoing mail. It works just fine to send out mass email from the domain, but it fails every time I try to share a PCP from a non verified email.
  
  For example if I create a PCP from the main account on civicrm, and I use the SES verified email address, the PCP sharing works just fine.
  
  On the other hand if I create a PCP from my personal email address and try to share the PCP, then the send fails (Amazon SES does not accept unverified email senders).
  
  Is there a way to use mail() instead of AWS SES for this? or a way to allow for the domain to be validated?
  
  **Tags:** pcp, smtp, amazon, amazon-ses
  
  > **Comments:**
  > **username_1**: Thanks for your post username_0.  It would help other users if you could explain what the acronyms mean (SES, PCP, AWS).  
  > **username_2**: Amazon SES is an service offered by Amazon to sent bulk mail. (SES is short for Simple Email Service). Amazon SES is part from a range of services that go by the name AWS (Amazon Web Services).  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-10-26. Score: 1
  
  I have a similar setup, but I have solved this outside CiviCRM. In CiviCRM, I configured the *mail()* send option. The effect is that the mail is routed by the local Mail Transport Agent. On my system, I use *postfix* for this task.
  
  Postfix can be configured to relay an email to an email service dependent on the email address. Use to do this the **sender\_dependent\_relayhost\_maps** parameter. An example can be found in [this answer on the Unix site](https://unix.stackexchange.com/questions/214125/php-mail-using-postfix-send-out-to-gmail-marked-as-spam).
  
  It is a good practice to send bulk mail with Amazon SES to prevent the email to be marked as spam.
  
  
  ---
  
  ### Answer by username_3 on 2016-10-29. Score: 0
  
  While username_2's answer is better, a partial (but simpler to implement) solution is to prevent those emails altogether with the [Outbound Domain Enforcement](https://civicrm.org/extensions/outbound-domain-enforcement) extension.
  
  
  ---
  
  