Having problem sending email notifications to an SMTP relay with authentication. My email service is Office 365 (Exchange Online) recieving this error Error sending Email": Authentication unsuccessful ("pod51028.outlook.com")
According to guidelines given by the support, there is another way to configure it with Office365.
- Determine Office 365 SMTP Server Settings*
- Login in to the Microsoft Online Services Portal;
- Click on Outlook;
- Click Options (upper right corner)
- Click on About
- There will be a section titled External SMTP setting that looks like:
- Server name: pod51010.outlook.com (your’s may be different)
- Port: 587
- Encryption method: TLS
- Install and Configure Windows Server 2008 SMTP Relay
- Add the SMTP Server feature. (You can install same server on PRTG Core Server) (Start->Administrative Tools->Server Manager->Features->Add Features->SMTP Server). The Add features wizard bring up the Select Role Services for the Web Server (IIS) role. Select the IIS Management Console role service. You’ll need this for step 2. In some older versions of Windows Server the SMTP Server function is included with the Web Server (IIS) role. For that case, make sure to include the IIS Management Console and IIS 6 Management Console features.
- If this server doesn’t have a certificate already installed, you will need to install one. Office 365 requires TLS encryption and for this server to use TLS, it must have a certificate installed. To create the self-signed certificate: (Start->Administrative Tools->Internet Information Services (IIS) Manager->Select Host->Server Certificates->Create Self-Signed Certificate)
- Enable SMTP Server. (Server Manager->Features-> Enable SMTP Server)
- Now it’s time to actually configure the SMTP Relay for Office 365. Start->Administrative Tools->Internet Information Services (IIS) 6.0 Manager.
- Click on the ‘+’ next to your host name.
- Right-click on the [SMTP Virtual Server…] and select Properties. It’s now time to step through each of the tabs to configure the SMTP relay.
- General Tab: The IP address should be set to (All Unassigned).
- Access Tab: Click Authentication… and select the Anonymous access checkbox. This is the authentication used by the applications and devices within your network to access the new SMTP relay. It is being configured to be open to every device on your network.
- Access Tab: Click Connection… Select ‘Only the list below’ and click 'Add'; after insert the IP address of server (more secure); OR ‘All Except the list below’ and leave the list below blank. This allows any device inside your firewall to access this relay (less secure);
- Access Tab: Click Relay… Select ‘All Except the list below’ and leave the list below blank. This allows any device inside your firewall to access this relay. This setting is extemely open and assumes you trust the devices connecting to your network not to abuse this relay.
- Messages Tab: No changes. The default works well.
- Delivery Tab: Click Outbound Security… Select Basic authentication and enter the Office 365 username and password that will gateway will to authenticate with Office 365. The user name must be a fully qualified (ex: user@companyname.com) valid Office 365 user licensed for Exchange. For example if my domain is co365lab.com and the user to authenticate is admin, then the username would be admin@co365lab.com. Note that this same address must be used as the “From:” address for any e-mails sent to the relay from applications and devices. Check TLS encryption.
- Delivery Tab: Click Outbound connections… Set the TCP port to 587.
- Delivery Tab: Click Advanced Delivery and set the Fully-qualified domain name box to the name of the local server that is acting as the relay (ex: myserver1). Set the Smart host the full-qualified name of the Office 365 SMTP Server (ex. pod51010.outlook.com) that you determined if the first section. Make sure the “Attempt direct…” box is unchecked.
- LDAP Routing and Security Tabs: No changes to these areas.
- Make sure the SMTP Server is started. Right-click the SMTP Virtual Server and choose Start. You’re done configuring the SMTP Relay within Windows Server 2008 to work with Office 365.
- Configure device or application to use the new SMTP Relay
- On PRTG Web GUI, click Setup -> System Administration -> Notification Delivery
- Sender E-Mail: Office365 user FDQN (user@domain.com).
- Sender Name: Any sender name;
- HELO Ident: This must be a unique name, preferably the DNS name of the machine running PRTG;
- SMTP Relay Server: IP address of SMTP Relay (i.e.: localhost);
- SMTP Relay SMTP Port: 25
- SMTP Relay Authentication: No authetication;
- SSL Method: Any;
- Security: No encryption (use plain text). The SMTP relay above is setup inside the company’s network, so the security assumes anyone with access to the relay can send e-mail through the gateway. Therefore, the connection requires no authentication (username or password).
Reference: http://www.configureoffice365.com/configure-office-365-smtp-relay/