Whitelisted but Bad Content

Questions and answers about how to do stuff
Post Reply
hossmann
Posts: 8
Joined: 21 Jun 2017 14:32

Whitelisted but Bad Content

Post by hossmann »

Hi,

ive whitelisted some Domains with @domain.com and default.
But sometimes ther are .zip files or other files where been blocked as Bad content allthought the domain is on whitelist.
Is there a way to whitelist everything from domains?
markov
Posts: 7
Joined: 12 Apr 2018 08:35

Re: Whitelisted but Bad Content

Post by markov »

I have the same question.
I have some store that send orders in .xlsb files. I like to make exception just for that email address. I put this email address to whitelist default but when send this mail with .xlsb file mail is marked whitelisted but is also marked bad contend and is contained in quarantine and not delivered.

Please, how to make exception for that mail. thanks.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Whitelisted but Bad Content

Post by shawniverson »

You either need to:

1) Allow the affected files in the filename/filetype rules
2) Configure for quarantine/release of bad content

Choose your adventure! :lol:

(btw,I don't like the way mailscanner handles this, I would also expect whitelisting to just whitelist, period, but alas...)
MrBob
Posts: 7
Joined: 19 Apr 2018 18:54

Re: Whitelisted but Bad Content

Post by MrBob »

Hi Shawniverson,

So what file do i need to modify to allow bad content email even thought it is already whitelisted?

Thank you,
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Whitelisted but Bad Content

Post by pdwalker »

go into /etc/MailScanner then search for the bad content rule in question.

Once you find the *.conf file that contains that rule, comment it out with a # character at the start of the line and that rule will be disabled.

In case you are having problems finding a particular rule, there are numerous threads in the forums where people have answered this question more explicitly. Use google to search this site (add "site:forum.efa-project.org" to your google search query)
daemon2k
Posts: 2
Joined: 22 Nov 2018 12:55

Re: Whitelisted but Bad Content

Post by daemon2k »

Hello.
There is more effective solution for *.xlsb files and similar.
Problem is that in EFA use file tool version 5-04 which is have problems with determine correct type of files.


You just need update your file tool on EFA. Unfortunately, i didn't find new rpm, so you should make it from sources.
Here is manual how to do it.
1. Download latest file tool sources and compile it.
Logon to shell EFA with root rights

cd /root
wget http://download.openpkg.org/components/ ... .35.tar.gz
gzip -d file-5.35.tar.gz
tar xvf file-5.35.tar
cd file-5.35
./configure
make
make install

2. New file tool was installed to /usr/local/bin
Fix path in Maiscanner.conf and restart mailscanner
nano /etc/MailScanner/MailScanner.conf

find this section
# To disable Filetype checking, set this value to blank.
File Command = /usr/bin/file

and correct it to
# To disable Filetype checking, set this value to blank.
File Command = /usr/local/bin/file

3. Restart mailscanner service.
/etc/init.d/mailscanner restart

4. Enjoy!
Post Reply