Bad Content for *.p7s

Bugs in eFa 4
Post Reply
kit400
Posts: 11
Joined: 09 Nov 2020 07:22
Location: Kiev, Ukraine

Bad Content for *.p7s

Post 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.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Bad Content for *.p7s

Post 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     -       -
Post Reply