Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to restrict file attachments from email sending

ClayS
Tera Contributor

Hello, community.
I have enabled glide.email.smtp.active and enabled sending emails from the instance.
However, for security reasons, I would like to completely restrict file attachments to the instance and emails.

The two methods I know of are as follows.
I would like to hear your opinions on whether these methods are effective and whether there are any risks involved.
- File extension control: You can allow only file attachments with specific extensions.

 https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1588025
 However, complete restrictions are not possible.
- File size control: In the System Properties > Security screen, set the maximum file size that can be attached to "0".
 I think This one may work.

If you have any other ideas, please let me know.
Thank you for your cooperation.

1 REPLY 1

jonsan09
Tera Sage

You could try creating a 'before' insert buiness rule on the Email (sys_email) table to remove and deleted any attachment before he it saved on the record and processed. You'll want to limit it to the inbox/received mailbox to prevent outgoing emails from having their attachments removed.