Does MailScnner safe sites conf take prededence over bad sites?

General eFa discussion
Post Reply
baldman
Posts: 12
Joined: 16 Nov 2016 14:21

Does MailScnner safe sites conf take prededence over bad sites?

Post by baldman »

Hey all,

I'm having an issue with the safe and bad sites conf files (phishing.safe.sites.conf custom etc.). Maybe there's a better way of doing this or I'm doing it wrong. I've added dropbox to the safe list, but because it's in the bad list it doesn't work. If I remove it from the bad list, then the phishing flags stop. Removing dropbox (and others) from the bad list isn't permanent, so this isn't a solution.

I would've thought adding to the custom safe list would take precedence over the bad list. Is that correct?... Otherwise, is there another way to do this?

Thanks in advance for any help :D
User avatar
shawniverson
Posts: 3754
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Does MailScnner safe sites conf take prededence over bad sites?

Post by shawniverson »

After you add to the custom safe sites list, did you run

Code: Select all

ms-update-phishing
?
baldman
Posts: 12
Joined: 16 Nov 2016 14:21

Re: Does MailScnner safe sites conf take prededence over bad sites?

Post by baldman »

Hello,.

I tried running ms-update-phishing but I got permission denied and update failed errors.
I also tried running as root with same errors. I've pasted the output below.
Thanks for your help :D

[admin@efauser ~]$ ms-update-phishing
Updating using curl failed, trying wget.
Trying wget....
phishing.bad.sites.conf.master.gz: Permission denied
rm: cannot remove ‘/etc/MailScanner/phishing.bad.sites.conf.master’: Permission denied
The curl/wget download of the bad phishing site master file failed. Removing whatever was downloaded.
/usr/sbin/ms-update-phishing: line 204: phishing.bad.sites.conf.new: Permission denied
rm: cannot remove ‘phishing.bad.sites.conf’: Permission denied
mv: cannot stat ‘phishing.bad.sites.conf.new’: No such file or directory
chmod: changing permissions of ‘phishing.bad.sites.conf’: Operation not permitted
Trying wget....
phishing.safe.sites.conf.master.gz: Permission denied
The curl/wget download of the safe phishing site master file failed. Removing whatever was downloaded.
The phishing safe sites master file does not exist or is not readable. Update failed!
User avatar
Aryfir
Posts: 32
Joined: 04 Sep 2020 13:52

Re: Does MailScnner safe sites conf take prededence over bad sites?

Post by Aryfir »

Hi..

ms-update-phishing works for me to update phishing sites

Could you please check file permission on that /etc/MailScanner directory

Code: Select all

-rw-r--r--. 1 root root   1523182 Aug 18 19:55 phishing.bad.sites.conf
-rw-r--r--. 1 root root   1522982 Aug 18 19:55 phishing.bad.sites.conf.master
-rw-r--r--. 1 root root   1522982 Aug 18 19:55 phishing.bad.sites.conf.master.backup
-rw-r--r--. 1 root root       200 Jun 12 17:47 phishing.bad.sites.custom
-rw-r--r--. 1 root root     21570 Aug 18 19:55 phishing.safe.sites.conf
-rw-r--r--. 1 root root     21367 Aug 18 19:55 phishing.safe.sites.conf.master
-rw-r--r--. 1 root root     21367 Aug 18 19:55 phishing.safe.sites.conf.master.backup
-rw-r--r--. 1 root root       203 Jun 12 17:47 phishing.safe.sites.custom
You may delete that phishing.bad.sites.conf.master.gz file and run ms-update-phishing again

Rgds
baldman
Posts: 12
Joined: 16 Nov 2016 14:21

Re: Does MailScnner safe sites conf take prededence over bad sites?

Post by baldman »

The file permissions were all fine. And after deleting the phishing.bad.sites.conf.master.gz file and running the update again, it worked.
Thanks for your help :D
Post Reply