Sending Domain

Development Status
Stable
Active Installs
Maintainers
Downloaden

Last updated: 2024-04-17

Works with CiviCRM 5.71 or higher.

This allows you to set the From email address that matches the "Sending Domain" for all emails being sent from CiviCRM, while still allowing users to select the Reply-To email addresses.

This is typically used in combination with setting up an SMTP service, which relies on an official sending domain. The sending domain might be different from the domain of the site itself and different from the domain of the personal email addresses (for example, mail.amce.org, where the site is on acme.org). Read up on Sender Policy Framework of the most used email authentication methods to avoid forged email addresses in SMTP.

The From field in the email header will be set to use the original "From name" combined with the sending domain address. The original From email address is then moved to the Reply-To email header field.

For example, if the From was originally "ACME News" <news@acme.org>, and the sending domain address is set to <info@mail.acme.org>, then it will be updated to "ACME News" <info@mail.acme.org>.

If the From address is left blank, it will use mail@default_domain where the default_domain will be the email domain address of your default mailing account also used for bounce handling, as set on the Mail Accounts admin page ( Administer > CiviMail > Mail Accounts or civicrm/admin/mailSettings?reset=1). Whether it's used for the sending domain or not, if you are using CiviMail, make sure to set the correct domain for bounce handling on the Mail Accounts page.

Note: the Mail Accounts admin page is not visible if CiviMail is not enabled, but still accessible. You may find that "Save & Test" might not work, but you can still save the Mail Account and it will still work fine.

The original From email address will be moved to the Reply-To email header field to allow users to set an email for human replies, or allow a noreply@ address to be used if set in the From Email Address Options (Administer > Communications > From Email Addresses).

To avoid confusion, the "Enable Custom Reply-To" option in the CiviMail settings (Administer > CiviMail > Mailer Settings) should be disabled. This extension will override whatever is manually set in that Reply-To field.

This is an extension for CiviCRM, licensed under AGPL-3.0.

Getting Started

Visit civicrm/admin/setting/sending_domain?reset=1 to provide a From email address that uses the canonical sending domain set up with the SMTP service.

Support and Maintenance

This extension is supported and maintained, with the help and support of the CiviCRM community, by Freeform Solutions.