- Print
- DarkLight
- PDF
SMTP Authenticated Emailing for Microsoft and Gmail
Microsoft Server email relay platform has begun rolling out blocking outbound SMTP connections on TCP port 25. Microsoft claims this is to ensure better security for Microsoft partners and customers, protect Microsoft’s Azure platform, and conform to industry security standards.
What this means is that in order to prepare for email out of the Campus Cafe system in the near future when Microsoft completely cuts off the use of port 25, each user that will be using the email functions from their address will need to input their password into their email record on their account, and unauthenticated email aliasing from a domain will no longer be acceptable.
In order to prepare for this change we have added new "User Specific" SMTP Authentication configuration.
Web App Configuration for SMTP Authentication
Set up Web App Configuration
- Menu > Admin > System Setup > Web App
- Search for SMTP_AUTH
- SMTP_AUTH_HOST - Input the domain IP or Host (smtp.office365.com is the default for Microsoft 365, smtp.gmail.com is the default for gmail)
- SMTP_AUTH_PORT - Port number for authenticated emailing - Port 587 is the default port for Microsoft and Gmail.
- SMTP_AUTH_TLS - Enabling TLS SMTP encryption for emails - Y is default to enable basic email encryption
- SMTP_AUTH_SSL - Optional: If required for your emailing relay set Y to enable SSL encryption - Default is Blank
- SMTP_AUTH_SSL_TRUST - Optional: If required specify the SSL trusted domain or IP for the host
- Example Picture
- Enter IMAP into the search bar
- IMAP_HOST - Input the domain IP or Host (outlook.office365.com for Microsoft or imap.gmail.com for Gmail)
- IMAP_PORT - 993 for both Outlook or Gmail
- IMAP_TLS -set this value to Y
- Example Image:
- Individual User Configuration to be able to email
- Menu > My Info > Email Address (Staff/Faculty member must have permission 943 to edit their own email)
- Click Pencil Edit link on the primary email address record
- Input password into password field that is encrypted in the database
- Press "Test" to confirm the password and authenticated connection is successful by sending a test email to the address listed.
- Press "Save and Back"
- Example Picture:
- Test email using the logged in account to ensure emails are sending correctly
535 5.7.139 Authentication unsuccessful, SmtpClientAuthenticationis disabled for the Tenant.
Please Follow the Following Steps to enable SMTP Authentication for your Organization:
As the error message indicates, the root cause of the error is due to the SMTP Protocol being disabled in Exchange Online. To resolve the error, You must enable the SMTP protocol in Microsoft 365 Exchange Online Admin Center. Here is how:
- Login to Exchange Online Admin Center at: https://admin.exchange.microsoft.com
- Click on Settings >> Mail flow
- In the Mail flow settings, under security: Uncheckthe “Turn off SMTP AUTH protocol for your organization” check box and click the “Save” button.
Alternatively if that does not work please try this configuration:
1. Next login to or navigate to the Microsoft 365 Admin Center https://admin.microsoft.com/
2. Select Settings > Org Settings
3. Under Services, select Modern Authentication
4. Ensure Authentication SMTP is checked