Suped

How do I set up Outlook SMTP authentication with 2FA and OAuth2 for GlockApps?

Summary

To set up Outlook SMTP authentication with 2FA and OAuth2 for GlockApps, begin by enabling 2FA in your Microsoft account settings. The specific steps depend on whether basic authentication (with app passwords) is permitted by your Microsoft 365 account type; if not, OAuth2 is necessary. If using app passwords, generate one specifically for GlockApps. Ensure SMTP AUTH is enabled in Exchange Online. When configuring GlockApps, use smtp.office365.com on port 587 with TLS encryption, and provide your full Outlook email address and the app password or OAuth2 credentials. For OAuth2, register GlockApps as an application in Azure AD, granting it SMTP.Send permissions. Also, check that legacy authentication isn't disabled in Office 365 and that conditional access policies aren't blocking GlockApps. Ensure your firewall permits connections on port 587 to the Outlook SMTP server. In GlockApps, the 'from address' must match your Outlook email address. Finally, understanding and enabling SMTP authentication are crucial for proper email transmission.

Key findings

  • 2FA and Authentication: Enable 2FA in Microsoft account; decide between app password or OAuth2 based on Microsoft 365 account type.
  • SMTP AUTH: Verify SMTP AUTH is enabled in Exchange Online.
  • GlockApps Configuration: Configure GlockApps with smtp.office365.com, port 587, TLS, and either app password or OAuth2 credentials.
  • OAuth2 Setup: For OAuth2, register GlockApps in Azure AD and grant SMTP.Send permissions.
  • Office 365 Settings: Ensure legacy authentication is enabled, and conditional access policies aren't blocking GlockApps.
  • Email Addresses: From address in GlockApps must match Outlook email address.
  • Core SMTP Settings: Understanding and setting up SMTP correctly is crucial.

Key considerations

  • Microsoft 365 Restrictions: Be aware that Microsoft 365 account settings might restrict basic authentication.
  • Azure AD Setup: Correctly configure GlockApps in Azure AD if using OAuth2, setting the correct redirect URI and permissions.
  • Firewall: Configure the firewall to allow connections between GlockApps and the Outlook SMTP server on port 587.
  • Email Address Consistency: Ensure the 'from' address matches to avoid errors
  • Settings validation: Double check SMTP settings for optimal authentication.

What email marketers say

10 marketer opinions

To set up Outlook SMTP authentication with 2FA and OAuth2 for GlockApps, several factors need to be considered. First, ensure that basic authentication (with app passwords) is enabled at the Microsoft 365 domain level if you're not using OAuth2. Microsoft requires OAuth2 StartTLS, and GlockApps may need browser cookies enabled. If the domain only allows OAuth2, GlockApps must natively support it, which involves registering GlockApps as an application in Azure Active Directory and granting it SMTP.Send permissions. Configure GlockApps with the Outlook SMTP server address (smtp.office365.com), port 587, and TLS encryption, using your full Outlook email address and either an app password or OAuth2 credentials. Also, check that legacy authentication isn't disabled in Office 365 and that conditional access policies aren't blocking GlockApps. Specify the correct 'from address' in GlockApps, matching your Outlook email. Finally, verify that your firewall isn't blocking the connection, allowing SMTP port 587 and GlockApps IP address.

Key opinions

  • Authentication Type: Microsoft 365 account type may restrict basic authentication with app passwords, necessitating OAuth2.
  • OAuth2 Requirement: If OAuth2 is required, GlockApps must have native support and be registered as an application in Azure AD with SMTP.Send permissions.
  • SMTP Settings: GlockApps configuration involves using smtp.office365.com, port 587, TLS encryption, and either an app password or OAuth2 credentials.
  • Legacy Authentication: Disabling legacy authentication in Office 365 can prevent SMTP from working.
  • Conditional Access: Conditional access policies may block GlockApps; ensure they aren't restricting access.

Key considerations

  • App Password vs OAuth2: Decide whether to use an app password (if basic authentication is allowed) or OAuth2 for authentication.
  • Azure AD Configuration: If using OAuth2, correctly register GlockApps in Azure AD and grant necessary permissions.
  • Firewall Settings: Ensure your firewall allows connections between GlockApps and Outlook SMTP server on port 587.
  • From Address: The 'from address' in GlockApps must match the Outlook email address used for authentication.
  • Browser Cookies: Glockapps may require cookies to be enabled if your MUA requires them.

Marketer view

Marketer from Email Geeks explains that depending on the account type on Microsoft365, the ability to use basic authentication (even with app-specific passwords) might be disabled by the domain admin.

30 Nov 2024 - Email Geeks

Marketer view

Email marketer from SuperUser shares to ensure that your firewall isn't blocking the connection between GlockApps and the Outlook SMTP server. You may need to add exceptions for the SMTP port (587) and the GlockApps IP address.

5 Jan 2024 - SuperUser

What the experts say

1 expert opinions

Setting up Outlook SMTP authentication correctly with 2FA and OAuth2 for GlockApps requires understanding and properly enabling SMTP authentication settings to ensure emails are sent correctly.

Key opinions

  • SMTP Authentication: Understanding and enabling SMTP authentication settings is crucial for proper email sending.

Key considerations

  • Configuration: Ensure SMTP authentication settings are correctly configured.

Expert view

Expert from Word to the Wise explains that understanding and enabling SMTP authentication settings is critical to ensuring your emails are sent properly.

25 Nov 2024 - Word to the Wise

What the documentation says

7 technical articles

Setting up Outlook SMTP authentication with 2FA and OAuth2 for GlockApps involves understanding the OAuth 2.0 authorization code flow for API authentication, using app passwords for apps lacking 2FA support, and enabling SMTP AUTH in Exchange Online. Modern Authentication (OAuth 2.0) is typically required for Office 365, making legacy protocols less ideal. Configuration also includes setting up SMTP details within GlockApps. If using OAuth2, register GlockApps in Azure, specifying the application name, account types, and redirect URI. API permissions, particularly SMTP.Send, are crucial in Azure for enabling email functionality.

Key findings

  • OAuth 2.0 Flow: OAuth 2.0 authorization code flow allows applications to exchange an authorization code for an access token.
  • App Passwords: App passwords are used for applications that do not support two-step verification, enabling SMTP access.
  • SMTP AUTH: SMTP AUTH needs to be enabled in Exchange Online for authenticated SMTP submission.
  • Modern Authentication: Modern Authentication (OAuth 2.0) is recommended and often required for connecting to Office 365.
  • Azure App Registration: Registering the application in Azure Active Directory is key for OAuth2 implementations.
  • SMTP.Send Permissions: SMTP.Send API permissions in Azure are required.

Key considerations

  • Authentication Method: Decide between using app passwords or OAuth 2.0 based on application support and security requirements.
  • Azure Configuration: Correctly configure the application in Azure, including setting the correct redirect URI and permissions.
  • Exchange Online Settings: Verify SMTP AUTH is enabled and that other settings align with Microsoft's recommendations for secure email transmission.
  • GlockApps Setup: Configure GlockApps to use the appropriate SMTP settings, either with an app password or OAuth 2.0 credentials.

Technical article

Documentation from Microsoft Learn describes how to enable or disable authenticated SMTP (SMTP AUTH) protocol submission in Exchange Online. It details the steps required to ensure the mailbox is configured correctly, including checking the 'SmtpClientAuthenticationDisabled' property and enabling SMTP AUTH if needed.

8 Jul 2022 - Microsoft Learn

Technical article

Documentation from Glockapps details setting up SMTP settings. It shows where to enter your host, username and password to get going.

5 Nov 2021 - Glockapps

Start improving your email deliverability today

Sign up