Answers.Body: <p>There is an extension called <a href="https://civicrm.org/extensions/outbound-domain-enforcement" rel="nofollow noreferrer">Outbound Domain Enforcement for CiviCRM</a> from JMA Consulting. This extension filters the From Email Address options provided to users as they are about to send an email. Only ones that have the same domain as the System-generated Mail Settings From Email Address are exposed, with the others suppressed.</p>
  <p><strong>Note:</strong> This will work only for the single domain i.e, but spark post allows you to set up multiple domains as subaccounts sharing the same API key. So if your CiviCRM site is called <a href="http://www.abc.com" rel="nofollow noreferrer">www.abc.com</a> and you have two domains registered abc.com and xyz.com at spark post, when sending email from <a href="http://www.abc.com" rel="nofollow noreferrer">www.abc.com</a> it will allow mails to send from @abc.com but not from @xyz.com</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-22T10:33:55.037Z
Answers.LastActivityDate: 2022-06-22T10:33:55.037Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Our site is using SparkPost for email delivery which restricts email sending if the domain is not registered with the account. Sometimes user try to setup mailing or reminders or Email-Activity with incorrect from address (yahoo or gmail) causing mailings to bounce or reminders not sent. Is there any way we can restrict the user to select correct from address?</p>
  
Tags: <civimail>
Title: Restrict from address to the domain
ThreadText: # Restrict from address to the domain
  
  (Asked by: username_0 on 2022-06-22)
  
  Our site is using SparkPost for email delivery which restricts email sending if the domain is not registered with the account. Sometimes user try to setup mailing or reminders or Email-Activity with incorrect from address (yahoo or gmail) causing mailings to bounce or reminders not sent. Is there any way we can restrict the user to select correct from address?
  
  **Tags:** civimail
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-06-22. Score: 0
  
  There is an extension called [Outbound Domain Enforcement for CiviCRM](https://civicrm.org/extensions/outbound-domain-enforcement) from JMA Consulting. This extension filters the From Email Address options provided to users as they are about to send an email. Only ones that have the same domain as the System-generated Mail Settings From Email Address are exposed, with the others suppressed.
  
  **Note:** This will work only for the single domain i.e, but spark post allows you to set up multiple domains as subaccounts sharing the same API key. So if your CiviCRM site is called [www.abc.com](http://www.abc.com) and you have two domains registered abc.com and xyz.com at spark post, when sending email from [www.abc.com](http://www.abc.com) it will allow mails to send from @abc.com but not from @xyz.com
  
  
  ---
  
  