How to disable notification emails?
Hello
Currently our APIM instance is integrated in a VNET, internal mode. We added a NSG rule to block SMTP traffic originating from the APIM subnet, with destination ports 25, 465, 587. However, notification emails are still being send to users. Is it possible to disable the notification emails that are send to users?
Azure API Management
-
Loknathsatyasaivarma Mahali • 1,465 Reputation points • Microsoft External Staff
2025-03-13T16:38:29.3966667+00:00 Hello Nathan Hofstee,
To disable notification emails in Azure API Management (APIM), you can configure the notification settings directly in the APIM instance through the Azure portal. In the Notifications section, you can manage email notifications for specific events.
However, if you have already blocked SMTP traffic from the APIM subnet and are still receiving notification emails, it may be necessary to review the specific notification settings or check for other configurations that could be overriding the block.
Unfortunately, there is no direct option mentioned to completely disable all notification emails, so you may need to explore the notification settings in more detail to adjust or remove specific email triggers.
For your better understanding please follow this document.
-
Loknathsatyasaivarma Mahali • 1,465 Reputation points • Microsoft External Staff
2025-03-17T17:32:20.93+00:00 Hello Nathan Hofstee,
Just checking in to see if the information above was helpful. If you have any further updates on this issue, please feel free to post them here.
-
Nathan Hofstee • 105 Reputation points
2025-03-18T14:21:01.19+00:00 Thank you @Loknathsatyasaivarma Mahali the Microsoft documentation does explain a lot about the notification templates. But we are really looking for the option to not send the templates at all. We assumed blocking SMTP traffic would work, but unfortunately is does not.
-
Loknathsatyasaivarma Mahali • 1,465 Reputation points • Microsoft External Staff
2025-03-18T21:48:32.5866667+00:00 Hello Nathan Hofstee,
Could you please try the workaround below and let us know if it resolves your issue? In the meantime, we will also connect with our internal team on this issue.
Please use the following ports to disable the email notification: 25, 587, 25028. Refer to the screenshot and the document below for guidance.
-
Loknathsatyasaivarma Mahali • 1,465 Reputation points • Microsoft External Staff
2025-03-19T22:43:27.04+00:00 Hello Nathan Hofstee,
Just checking in to see if the information above was helpful. If you have any further updates on this issue, please feel free to post them here.
-
Nathan Hofstee • 105 Reputation points
2025-03-20T14:23:23.26+00:00 @Loknathsatyasaivarma Mahali I did try the workaround, however notification emails are still being send. I tried with the following two NSG rules:
{ name: 'BlockSMTPFromApiManagement' properties: { protocol: 'Tcp' sourcePortRange: '*' destinationPortRange: '' sourceAddressPrefix: subNets.apim.prefix destinationAddressPrefix: '*' access: 'Deny' priority: 443 direction: 'Outbound' sourcePortRanges: [] destinationPortRanges: [ '25' '465' '587' '25028' ] sourceAddressPrefixes: [] destinationAddressPrefixes: [] } }
{ name: 'BlockSMTPFromApiManagement' properties: { protocol: 'Tcp' sourcePortRange: '*' destinationPortRange: '' sourceAddressPrefix: 'ApiManagement' destinationAddressPrefix: '*' access: 'Deny' priority: 443 direction: 'Outbound' sourcePortRanges: [] destinationPortRanges: [ '25' '465' '587' '25028' ] sourceAddressPrefixes: [] destinationAddressPrefixes: [] } }
I do not want to block all SMTP traffic from the VNET, but only originating from APIM.
Any ideas are welcome
-
RithwikBojja • 1,680 Reputation points • Microsoft External Staff
2025-03-21T10:13:09.8266667+00:00 One way is to just remove the recipients as below:
Like this, you can remove the recipients from notifications.
-
Nathan Hofstee • 105 Reputation points
2025-03-21T14:32:25.5666667+00:00 Users (such as developers using APIM through the developer portal) will still receive the notifications defined within the Notification templates overview.
-
RithwikBojja • 1,680 Reputation points • Microsoft External Staff
2025-03-21T15:44:37.3466667+00:00 You need to also remove them from there
-
AlejandroBenitez-0092 • 10 Reputation points
2025-04-23T19:08:55.3033333+00:00 End users are never listed there. That screen only lists users who will receive a copy of the notifications sent to the end user. Adding or deleting users there does not prevent notifications from being sent to end users.
I can't figure out neither if there is a solution to prevent users receiving these emails when they subscribe using the developer portal.
Sign in to comment