Skip to content
Howard van Rooijen By Howard van Rooijen Co-Founder
Configuring TeamCity and YouTrack to use Office 365 for Email Notifications

If you host ALM infrastructure in Microsoft Azure Infrastructure as a Service, configuring email notifications can be a bit of a problem as you need a SMTP relay and there isn't one available in the Microsoft Azure Fabric (to combat spammers), however, if you also use Office 365, you can use their public SMTP relay.

First set up an email account you want to use to send the notifications. You'll have to follow the normal procedures and log in with the auto-generated password and set a new one, you will also have to remember to log-in and update the password on this email account as per the password expiration policy (unless you set them to never expire).

Full details of Office 365 POP and IMAP settings are available here.

TeamCity

To configure TeamCity, log-in as a user with Admin privileges and navigate to Administration > Email Notifier and enter the details as follows (substituting the email account details you created): :

YouTrack

To configure YouTrack, log-in as a user with Admin privileges and navigate to Settings and scroll to the bottom of the page enter the details as follows (substituting the email account details you created):

youtrack-email-settings

Remember: work smarter, not harder!

FAQs

Why can't I use a standard SMTP server for email notifications from Azure VMs? Azure Infrastructure as a Service does not provide an SMTP relay within the Azure Fabric to combat spammers. If you host ALM infrastructure like TeamCity or YouTrack in Azure, you need to use an external SMTP relay. Office 365 provides a public SMTP relay that you can use if you have a subscription.
What should I remember about the Office 365 email account used for notifications? You need to create a dedicated email account, log in with the auto-generated password to set a new one, and remember to update the password according to your password expiration policy. If you do not want to deal with password rotation for service accounts, set the account to never expire.

Howard van Rooijen

Co-Founder

Howard van Rooijen

Howard spent 10 years as a technology consultant helping some of the UK's best known organisations work smarter, before founding endjin in 2010. He's a Microsoft ScaleUp Mentor, and a Microsoft MVP for Azure and Developer Technologies, and helps small teams achieve big things using data, AI and Microsoft Azure.