anovaes
asked on
SMTP Relay through Office365
Hello guys,
I have an ASP application that sends e-mails through my on-premise Exchange Server 2007 without authentication. Now, I´m migrating to Office365 and I don´t know how to configure my application to send e-mails using an authenticated user. I have some Oracle procedures/functions that sends e-mails too. What should I do? I´m using Dundas Mailer with ASP.
Thank you very much,
Alexsandro Novaes
I have an ASP application that sends e-mails through my on-premise Exchange Server 2007 without authentication. Now, I´m migrating to Office365 and I don´t know how to configure my application to send e-mails using an authenticated user. I have some Oracle procedures/functions that sends e-mails too. What should I do? I´m using Dundas Mailer with ASP.
Thank you very much,
Alexsandro Novaes
There is a simpler solution I have discovered.
- if you are sending from a whitelisted IP address in the O365 console set the smtp server to your MX record for the domain if the IP is allow to send this will work over 25 with no issues
- Be sure to set this IP address in your SPF record to help limit bounce backs
- if you are sending from a whitelisted IP address in the O365 console set the smtp server to your MX record for the domain if the IP is allow to send this will work over 25 with no issues
- Be sure to set this IP address in your SPF record to help limit bounce backs
ASKER
I don´t think my app supports sending email via TLS and port 587. May I use on premise SMTP relay to send e-mail through Office365? How can I do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes you can it is usually the most simple solution, and we have been installing local IIS SMTP servers with every O36 deployment we are doing any more.
ASKER
I tried to follow those instructions http://technet.microsoft.com/en-us/library/dn592151(v=exchg.150).aspx but it´s still not working.
ASKER
I´m not using my own domain but onmicrosoft.com. Is it work or should I use my own domain?
Check this article out, it is one I have successfully used in the past as well
http://technet.microsoft.com/en-us/library/dn554323(v=exchg.150).aspx
Look at the SMTP relay section if you are sending from a static IP address you add that through the console as outlined in the article. In the application you would use port 25 and the sending server would be your domains MX record for 0365.
Obtain the public IP address you’re using. A dynamic IP address isn’t supported or allowed. You can share the IP with other devices and users, but you shouldn’t be sharing the IP with anyone outside of your company. Make note of this IP address for later.
Log on to the Office 365 Portal.
Select Domains. Highlight one of your domains and use the wizard to obtain your MX record. The MX record will look similar to contoso.com.mail.protectio n.outlook. com. Make a note of the MX record for later.
In the upper right, select Admin and then select Exchange from the drop down. If you have Small Business, then see the instructions here.
In the Exchange Admin Center, select Mail Flow > Connectors.
If no inbound connector exists, create one.
Give the connector a name.
Select On-Premises for the Connector Type.
Under Domains, add a single asterisk (*). This will allow sending to any domain. Other values in this field will limit the domains that you can send mail to.
In the IP Addresses section, add the IP address from Step 1.
Leave all the other fields with their default values and select Save.
In the DNS for your domain, we suggest that you modify your SPF record to include the IP address from Step 1. The finished string should look similar to this: v=spf1 ip4:10.1.2.3 include:spf.protection.out look.com ~all where 10.1.2.3 is your public IP address. Skipping this step could cause email to be sent to recipients’ junk mail folders.
In the device’s settings, specify a Smart Host value equal to the MX record value you recorded in Step 3.
http://technet.microsoft.com/en-us/library/dn554323(v=exchg.150).aspx
Look at the SMTP relay section if you are sending from a static IP address you add that through the console as outlined in the article. In the application you would use port 25 and the sending server would be your domains MX record for 0365.
Obtain the public IP address you’re using. A dynamic IP address isn’t supported or allowed. You can share the IP with other devices and users, but you shouldn’t be sharing the IP with anyone outside of your company. Make note of this IP address for later.
Log on to the Office 365 Portal.
Select Domains. Highlight one of your domains and use the wizard to obtain your MX record. The MX record will look similar to contoso.com.mail.protectio
In the upper right, select Admin and then select Exchange from the drop down. If you have Small Business, then see the instructions here.
In the Exchange Admin Center, select Mail Flow > Connectors.
If no inbound connector exists, create one.
Give the connector a name.
Select On-Premises for the Connector Type.
Under Domains, add a single asterisk (*). This will allow sending to any domain. Other values in this field will limit the domains that you can send mail to.
In the IP Addresses section, add the IP address from Step 1.
Leave all the other fields with their default values and select Save.
In the DNS for your domain, we suggest that you modify your SPF record to include the IP address from Step 1. The finished string should look similar to this: v=spf1 ip4:10.1.2.3 include:spf.protection.out
In the device’s settings, specify a Smart Host value equal to the MX record value you recorded in Step 3.
Secondly, Office 365 requires that your app support sending email via TLS and port 587. If it does not, you will need to use an on premise SMTP relay (such as IIS).