Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to ignore the undeliverable emails in Service Now

kirankumarboyin
Mega Contributor

Hi Team,

                        We have Custom Notification code , which will send email to particular recipient.

For this we are trying to find out the solution as below

1. We already mentioned the property to ignore emails which is having undeliverable: as a subject , but it still receiving the undeliverable emails.

2. Even custom notification code I added the condition subject does not contains undeliverable (Even If I put this condition I am not sure whether will it stop receiving undeliverable emails).

Please check the attachment to know how we configured the notification, system properties and logs which we are receiving undeliverable emails.

Can any body suggest how can I stop/ ignore receiving     undeliverable emails.

Regards,

Kiran

1 ACCEPTED SOLUTION

Hi Kiran,



A business rule is required here instead of a notification.


Try adding a condition for subject containing "Undeliverable" and enforce setting the email type to received ignored.


If doesn't work then you can delete the record through script in BR




find_real_file.png


find_real_file.png


View solution in original post

20 REPLIES 20

corina
ServiceNow Employee
ServiceNow Employee

Hello Kiran.




When you say "it still receiving the undeliverableemails." in which state do you see them in the mailbox?


corina
ServiceNow Employee
ServiceNow Employee

Hello Again Kiran.



You may want to enable email filters


https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/notification/concept/c...



and see if you have the same behaviour.


Gaurav Bajaj
Mega Sage

Hi Kiran,



Even if the emails are coming back as undelivered, it will still be adding in emails logs.


Ignoring the email in service now means that no inbound action will run on it and its status will be changed to received-ignored.



If you still want to remove these emails, you can write an insert BR on sys_email table and delete such emails.



find_real_file.png



Thanks


Gaurav


Hi Gaurav,



Thanks for the response, Here we are getting the emails as undeliverable those are receiving not received- ignored status.


As a result there is infinite loop forming between service now instance and receipt.


It causes damaging the snow instance email infrastructure. See my attachment .



I want to break that infinite loop in case of undeliverable emails received in the instance.Ignore UndeliraleEmailIssue1.png



Regards,


Kiran