I installed iRedMail which would install amavis and spamassassin. When I test sending and receiving email, I have an error in the /var/log/mail.log
, I see this line of error:
postfix/amavis/smtp[14582]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
when I run this line:
$sudo amavisd-new debug
I see at the end of the output:
files are in the config directory.\nAt a minimum, v320.pre loads the Check plugin which is required. Jun 12 11:58:25.764 mail.example.com /usr/sbin/amavisd-new[20040]: sd_notify (no socket): STOPPING=1\nSTATUS=TROUBLE in pre_loop_hook: Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan!\nCheck that the necessary '.pre' files are in the config directory.\nAt a minimum, v320.pre loads the Check plugin which is required. Jun 12 11:58:25.764 mail.example.com /usr/sbin/amavisd-new[20040]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan!\nCheck that the necessary '.pre' files are in the config directory.\nAt a minimum, v320.pre loads the Check plugin which is required. Suicide () TROUBLE in pre_loop_hook: Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan! Check that the necessary '.pre' files are in the config directory. At a minimum, v320.pre loads the Check plugin which is required.
This is also the output of $spamassassin --lint -D
:
Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan! Check that the necessary '.pre' files are in the config directory. At a minimum, v320.pre loads the Check plugin which is required
I looked up in the /etc/mail/spamassassin
directory and I can't see any '.pre' files in it.
I also searched for v320.pre
file using this:
$sudo find / -iname v320.pre
with no result.
If I disbale the amavis using:
$sudo nano /etc/amavis/conf.d/50-user
and changing these two lines:
@bypass_virus_checks_maps = (1);
@bypass_spam_checks_maps = (1);
and then restarting the service:
$sudo systemctl restart amavis
and then processing the mail queue:
$postqueue -f
the mail server would work perfectly fine! So it is obvious that I should put some '.pre' files in the /etc/mail/spamassassin
directory. I found out that there are some '.pre' files in this url:
https://apache.googlesource.com/spamassassin/+/trunk/rules
My question is: Is it safe to download these files and put them in my directory? Or in general where can I find '.pre' files or generate them?