Skip to main content

This version of GitHub Enterprise was discontinued on 2023-07-06. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Restricting email notifications for your organization

To prevent organization information from leaking into personal email accounts, you can restrict the domains where members can receive email notifications about organization activity.

Who can use this feature

Organization owners can restrict email notifications for an organization.

About email restrictions

When restricted email notifications are enabled in an organization, members can only use an email address associated with a verified or approved domain to receive email notifications about organization activity. For more information, see "Verifying or approving a domain for your organization."

Outside collaborators are not subject to restrictions on email notifications for verified or approved domains. For more information about outside collaborators, see "Roles in an organization."

If your organization is owned by an enterprise account, organization members will be able to receive notifications from any domains verified or approved for the enterprise account, in addition to any domains verified or approved for the organization. For more information, see "Verifying or approving a domain for your enterprise."

Restricting email notifications

Before you can restrict email notifications for your organization, you must verify or approve at least one domain for the organization, or an enterprise owner must have verified or approved at least one domain for the enterprise account. For more information about verifying and approving domains for an organization, see "Verifying or approving a domain for your organization."

Users will not be notified when you enable email restrictions. It is your responsibility to inform users that, in the future, they will only receive email notifications related to your organization if they've added an email address belonging to a verified or approved domain to their account settings.

  1. In the top right corner of GitHub Enterprise Server, click your profile photo, then click Your organizations.

    Screenshot of the dropdown menu under @octocat's profile picture. "Your organizations" is outlined in dark orange.

  2. Next to the organization, click Settings.

  3. In the "Security" section of the sidebar, click Verified and approved domains.

  4. Under "Notification preferences", select Restrict email notifications to only approved or verified domains.

  5. Click Save.