[Rspamd-Users] Block emails with .doc, .xls attachments with Rspamd

Andreas rspamd at linuxmaker.com
Mon Apr 15 12:24:59 UTC 2024


Hello,

I have a question about blocking emails with file attachments. I saw that there 
is mime_types.conf in /etc/rspamd/local.d which already contains file 
extensions like exe, jar.

I would like to have Rspamd block emails that contain the file extensions doc, 
docx, xls, xlsx in the attachment.

Whether this makes sense should not be a criterion here. We don't use 
Microsoft here and therefore don't need any external MS files, especially since 
this content could also be sent as a PDF.

So how can I specifically block emails containing Word and Excel files?
I had in the mime_types.conf
     ppt = 3;
     doc = 3;
     xls = 3;
     pptx = 3;
     docx = 3;
     xlsx = 3;
added, but that doesn't work. Emails with such file attachments still go 
through unhindered.

Best regards
Andreas




More information about the Users mailing list