microsoft azure smtp email relay setup

19,920

Solution 1

This is more like corollary to what @mcollier has stated. Given that you are already on Azure and you get 25,000 free emails (there are higher plans as well) with your subscription as well.

You can configure a Virtual SMTP server which relays to the sendgrid services. For the development perspective you will have the view of using your own SMTP server / service. Setting up a sendgrid based service is explained in this link.

I have used sendgrid earlier and my experience with this was amazing. As @mcollier has pointed out, using services like Sendgrid will give good chance of staying away from spam problem, if you try to setup and use the SMTP service of your own because of the reverse lookup etc.

PS: The above Virtual SMTP Server can be replaced with Amazon SES, which is equivalently a good service. Check out more info here.

Solution 2

First, assuming you're using a Windows Azure IaaS VM. Correct? If so, I think you need to enable that role/feature in Windows Server.

Second, why the need to send emails from that specific server? Would a service like SendGrid work? One problem people sometimes have with email servers in Windows Azure is the domain of your service (something.cloudapp.net) does not match your vanity domain when a reverse DNS lookup is performed. This could cause the email to be flagged as spam (since you don't technically own the sending domain, something.cloudapp.net).

Share:
19,920
user2859240
Author by

user2859240

Updated on June 04, 2022

Comments

  • user2859240
    user2859240 almost 2 years

    We are migrating from a dedicated server with a local virtual SMTP server to Windows Azure. As far as I can tell Windows Azure does not allow a local SMTP server to be setup in IIS. The SMTP Server option in the management console is missing. How would I setup an email relay so that I can have a .net web application send emails from a Windows Server 2012 virtual machine in Azure?

  • user2859240
    user2859240 over 10 years
    Yes we are using a Windows Azure VM. The Management Console in the Azure virtual machine does not have the option to enable an SMTP Server. Since our previous setup was a local SMTP server we are not familiar with setting up a relay which is what seems to be required for Azure. Is there any good sources/tutorials for setting up a relay through SendGrid, Amazon Simple Email, or some other service?
  • mcollier
    mcollier over 10 years
    I just did a quick Bing search for installing SMTP on Windows 2012 - have a look at blog.powerbiz.net.au/exchange/….
  • mcollier
    mcollier over 10 years
    Also, have a look at windowsazure.com/en-us/store/service/… for info on setting up SendGrid. There is a free plan available for Windows Azure customers. Personally, I'd go with a service like SendGrid (if it meets your requirements) - less to manage is a win. :)
  • techmike2kx
    techmike2kx over 10 years
    If you deployed a Windows Server 2012 or 2012 R2 then this is logical, SMTP and related tools are deprecated in that windows version , although the functionality is still available. check this Technet article technet.microsoft.com/en-us/library/hh831568.aspx
  • grebett
    grebett over 7 years
    Just to be fair, Sendgrid is nice, but some alternatives exist. You should look at Mailjet for Azure for instance. (Disclaimer, I work for them).