How many emails can be sent using SNOW mail servers and message size limit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2019 08:28 AM
We are trying to find out how many emails can be sent using SNOW mail servers and message size limit. We are currently using O365 however we are hitting the 30 messages per minute limit.
Anyone have a document you can point me to? 🙂
- Labels:
-
Best Practices
-
Notifications

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2019 08:38 AM
hi,
There are two properties you can use to control this:
glide.smtp.one.chunk.per.send (default is false)
glide.smtp.max.per.job (default is 1000)
The system works like this (as far as my recollection goes, I haven't looked at the SMTP code in a while):
A sys_trigger job runs periodically, and checks the sys_email table for outbound email. If outbound mail is found, it marks those emails as "claimed"- the system is going to try sending them out.
It then processes the outbound mail in batches (chunks). It will send out 100 emails at a time with brief pauses between chunks, (to close and recreate the SMTP connection) up to a maximum defined in the glide.smtp. max.per.job property. Once that max is reached, any emails that were claimed but are not sent get "unclaimed" and set back to send-ready.
The SMTP job then sleeps until the next time it's activated by the sy_trigger record.
You can reduce the total number of emails it will send per job by either forcing it to send only one chunk (in this case, 100 emails) and then shutting down for 1 minute (the default period between runs), or you can change the max per job setting to a lower number (in this case, 1000). In either case, you are reducing the flow of outbound emails from your instance, which can cause other problems.
Some instances have multiple SMTP jobs. I have two on my test instance, which means on average, every minute I could be sending out up to 2,000 emails. If you have multiple jobs, you need to take that into account when setting the values in those properties.
There are other things you could do to help with problems like this. For instance, a job that periodically checks the size of the sys_email table, and if there are a large number of send-ready messages, it could send a REST message to an outside notification service (you wouldn't want to drop an e-mail into the queue to tell you that the queue is big, obviously).
Or you could have a scheduled cron job on an outside system that polls xmlstats.do for your instance (it must provide admin credentials via basic auth) and check the iostats for the sys_email tables (or sys_email_log) for a large number of inserts. If you want to go that route, I suggest limiting the output of xmlstats.do to just the iostats:
/xmlstats.do?include=iostats
I am sure that some other customers have clever methods for email monitoring. Hopefully some of them respond with how they look for large, unexpected increases in email volume, and how they determine whether it's legitimate traffic or not.
https://community.servicenow.com/community?id=community_question&sys_id=5a5a0fa9db5cdbc01dcaf3231f9619a5
https://community.servicenow.com/community?id=community_question&sys_id=c79d4f2ddb9cdbc01dcaf3231f9619a1
NOTE: Mark correct or helpful if it helps you.
Warm Regards,
Raj patel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2019 08:11 AM
We are using O365 for outbound email and as I understand it the 30 messages per minute is not a hard limit, its a "soft" one. Meaning that the messages will still go out O365 will just tar pit the account for 1 minute to slow things down, but it will still except all of the messages eventually.
The issue we ran into quickly is that O365 also has a 24 hour recipient limit of 10k and that is a hard limit, meaning that once you hit it the system will start denying messages and you will see send-failed in the sys_email table. We are currently looking at ways to manage this limit.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2021 10:23 AM
Hi Drew,
Did you guys find a solution to increase the number of emails
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2021 02:18 AM
We are running towards this limit as well.
Any experience shared on this would be very much appreciated.