[Rspamd-Users] symbol "MIME_BAD_ATTACHMENT" firing on PDF/A attachments?

Gerald Galster list+rspamd at gcore.biz
Wed Feb 4 21:29:48 UTC 2026


> Daniel Lysfjord via Users <users at lists.rspamd.com>:
> 
> I just created a PDF/A-4 (PDF 2.0 base), sendt it to myself from outside my network. I did not get a trigger on MIME_BAD_ATTACHMENT (I have the score on that one set to 5).


Then your MUA probably set "application/pdf" as Content-Type, not "application/pdfa".

See https://en.wikipedia.org/wiki/MIME#Multipart_messages and have a look at your email source.

  Content-Type: application/pdf
  Content-Transfer-Encoding: base64
  Content-Disposition: attachment;
	filename=invoice-123.pdf

Best regards,
Gerald


More information about the Users mailing list