Bad content

Questions and answers about how to do stuff
Post Reply
BliXem
Posts: 80
Joined: 27 Mar 2017 19:17

Bad content

Post by BliXem »

I sometimes see that some e-mails are rejected because of bad content. In this case the file name isn't the 'real' filename and it's rejecting the mail. Is it possible to turn this off?
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Bad content

Post by pdwalker »

Can you post a line showing the "bad content" message? That'll help me track down the setting.

[edit] it's probably related to one of the files in /etc/MailScanner/
BliXem
Posts: 80
Joined: 27 Mar 2017 19:17

Re: Bad content

Post by BliXem »

These message:

Attempt to hide real filename extension
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Bad content

Post by pdwalker »

Code: Select all

cd /etc/MailScanner
grep -r "Attempt to hide real filename extension" *
archives.filename.rules.conf:#deny	\.[a-z][a-z0-9]{2,3}\s*\.[a-z0-9]{3}$	Found possible filename hiding	Attempt to hide real filename extension
filename.rules.conf:#deny	\.[a-z][a-z0-9]{2,3}\s*\.[a-z0-9]{3}$	Found possible filename hiding		Attempt to hide real filename extension
It looks like I turned those off myself already since they are commented out.
Post Reply