I noticed that the spam quarantined settings have no effect. None of the spam mails I receive have any spamassassin headers added, the SPAM subject tags are not added, and the quarantine levels apparently do not work. The configuration is from the Perfect Server Installation. Is there something not configured?
Till /etc/amavis does not exist [root@fire server]# ls -la /etc/amavisd.conf -rw-r--r-- 1 root root 34131 Apr 28 11:11 /etc/amavisd.conf
Yes, /etc/amavisd/ exists and contains amavisd.conf /etc/amavisd.conf also exists The two files are different.
The correct file is the one that contains these lines. Code: $sql_select_policy = 'SELECT *,spamfilter_users.id'. ' FROM spamfilter_users LEFT JOIN spamfilter_policy ON spamfilter_users.policy_id=spamfilter_policy.id'. ' WHERE spamfilter_users.email IN (%k) ORDER BY spamfilter_users.priority DESC'; $sql_select_white_black_list = 'SELECT wb FROM spamfilter_wblist'. ' WHERE (spamfilter_wblist.rid=?) AND (spamfilter_wblist.email IN (%k))' . ' ORDER BY spamfilter_wblist.priority DESC'; Delete the other file and replace it with a symlink to the file that contains these lines. Then restart amavisd.
Yes, the desired file on my system is /etc/amavisd.conf, NOT /etc/amavisd/amavisd.conf. I get a lot of spam, so it wont take long to see if that works, which I believe will Thanks for your help..... love your howtos
This seems to have caused another problem. My systemd journal shows continual error messages like: ... amavis[23474]: (23474-06) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.sock (All attempts (1) failed connecting to /var/run/clamav/clamd.sock) at (eval 98) line 608.\n ... amavis[24064]: (24064-06) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory There is a /var/run/clamd.amavisd/clamd.sock In the /etc/amavisd.conf file there is: ['ClamAV-clamd', \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"], qr/\bOK$/, qr/\bFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], Should I change /var/run/clamav/clamd.sock to /var/run/clamd.amavisd/clamd.sock?
Hello Till, Since I cannot find how to create a new thread even when am a registered user, am going to post here too: I have exactly the same problem also after using the Perfect Server Guide but for Debian 7 box. ¿Could you shed some light about how to fix it? I know the files and locations you pointed at does not exist on Debian 7. Thanks in advance.
Click on the "Post new thread button in a forum, e,g, here: https://www.howtoforge.com/community/forums/installation-configuration.27/ This problem is centos specific, it does not exist on debian as debian does not change the locations of the amavis file for each version. Please check that you selected a spamfilter policy for the email domain or email addressin ispconfig. A good start is to use the normal policy.