Page 1 of 1

Bad Content for *.p7s

Posted: 16 Apr 2021 12:51
by kit400
Hello,

I get "Bad Content" in messages with attachment encrypted with digital signatures:

Scanner: Attempt to hide real filename extension (File_21095480420110681722.pdf.p7s)
A P7S file is an email message that includes a digital signature. It can be used for sending secure emails that can only be viewed by the intended recipient.
How can I allow it in EFA?
Thanx.

Re: Bad Content for *.p7s

Posted: 18 Mar 2022 05:35
by pdwalker
Edit /etc/MailScanner/filename.rules.conf

search for "Deny all other double file extensions"

add a # to the front of the next deny line, like so:

Code: Select all

# Deny all other double file extensions. This catches any hidden filenames.
#deny   \.[a-z][a-z0-9]{2,3}\s*\.[a-z0-9]{3}$   Found possible filename hiding                          Attempt to hide real filename extension
problem resolved, but this could cause trouble later as it's a way for trojans to slip into your email. Maybe you could allow this double extension in the following section:

Code: Select all

# allow pdfs created by word with the double extensions
allow   \.doc\.pdf      -       -
allow   \.docx\.pdf     -       -
allow   \.docx\.p7s     -       -