Discussion:
All incoming mail marked unchecked
Erik Kramer
2016-10-23 20:31:07 UTC
Permalink
Hi,

I have a fresh install of Kolab 3.4 on Centos 7.

Incoming email all gets tagged with ***UNCHECKED***

First I found this message:
https://kolab.org/hub/topic/80/unchecked-tagging-on-all-messages/2

I did the clamav update and ran freshclam.
Didn't help.

Then I found this message:
http://lists.kolab.org/pipermail/users/2014-December/018491.html

And this bugreport:
https://issues.kolab.org/show_bug.cgi?id=3565

Which made sense compared to my maillog.
So I updated /etc/amavisd/amavisd.conf to point to
/var/run/clamd.amavisd/clamd.sock
Did a reboot

The log report looks better, but now when an email comes in it gets stuck
at:

amavis[3335]: (!)policy protocol: INVALID AM.PDP ATTRIBUTE LINE: CONTSCAN
/var/spool/amavisd/tmp/amavis-20161023T221257-03336-LPnRaheV/parts\n
amavis[3335]: switch_to_client_time 480 s, receiving AM.PDP data
amavis[3336]: (03336-02) prolong_timer ask_daemon_internal_scan: timer 288,
was 10, deadline in 479.9 s
amavis[3336]: (03336-02) rw_loop: needline=0, flush=0, wr=0,
timeout=287.989

After a while it times out with:

amavis[3336]: (03336-02) get_deadline ask_daemon_internal - deadline in
191.9 s, set to 116.000 s
amavis[3336]: (03336-02) prolong_timer ask_daemon_internal: timer 116, was
0, deadline in 191.9 s
amavis[3336]: (03336-02) get_deadline run_av_5 - deadline in 191.9 s, set
to 116.000 s
amavis[3336]: (03336-02) prolong_timer run_av_5: timer 116, was 116,
deadline in 191.9 s
amavis[3336]: (03336-02) (!)ClamAV-clamd av-scanner FAILED: run_av error:
ask_daemon_internal: Exceeded allowed time at (eval 130) line 611.\n
amavis[3336]: (03336-02) (!)WARN: all primary virus scanners failed,
considering backups
amavis[3336]: (03336-02) (!!)AV: ALL VIRUS SCANNERS FAILED

And then the email comes in with ***UNCHECKED*** again.

If you have any thoughts about this issue, they are very welcome.

Thanks,


Erik
Timotheus Pokorra
2016-10-24 04:41:42 UTC
Permalink
Hello Erik,
Post by Erik Kramer
I have a fresh install of Kolab 3.4 on Centos 7.
Incoming email all gets tagged with ***UNCHECKED***
ask_daemon_internal: Exceeded allowed time at (eval 130) line 611.\n
amavis[3336]: (03336-02) (!)WARN: all primary virus scanners failed,
considering backups
amavis[3336]: (03336-02) (!!)AV: ALL VIRUS SCANNERS FAILED
And then the email comes in with ***UNCHECKED*** again.
If you have any thoughts about this issue, they are very welcome.
Can you check if this service is running:
systemctl status ***@amavisd

Timotheus
k***@use.startmail.com
2016-10-24 21:05:29 UTC
Permalink
Post by Timotheus Pokorra
Hello Erik,
Post by Erik Kramer
I have a fresh install of Kolab 3.4 on Centos 7.
Incoming email all gets tagged with ***UNCHECKED***
ask_daemon_internal: Exceeded allowed time at (eval 130) line 611.\n
amavis[3336]: (03336-02) (!)WARN: all primary virus scanners failed,
considering backups
amavis[3336]: (03336-02) (!!)AV: ALL VIRUS SCANNERS FAILED
And then the email comes in with ***UNCHECKED*** again.
If you have any thoughts about this issue, they are very welcome.
Oct 24 16:58:55 mail systemd[1]: Started clamd scanner (amavisd) daemon.
Oct 24 16:58:55 mail systemd[1]: Starting clamd scanner (amavisd) daemon...
Oct 24 16:58:55 mail clamd[22221]: /usr/sbin/clamd: unrecognized option `--nofork=yes'
Oct 24 16:58:55 mail clamd[22221]: ERROR: Unknown option passed
Oct 24 16:58:55 mail clamd[22221]: ERROR: Can't parse command line options

This started after recent yum upgrade.
Timotheus Pokorra
2016-10-24 21:18:16 UTC
Permalink
Post by k***@use.startmail.com
Oct 24 16:58:55 mail clamd[22221]: /usr/sbin/clamd: unrecognized option `--nofork=yes'
Oct 24 16:58:55 mail clamd[22221]: ERROR: Unknown option passed
Oct 24 16:58:55 mail clamd[22221]: ERROR: Can't parse command line options
This error message leads me to this answer:
https://www.centos.org/forums/viewtopic.php?t=58763#p248129

Try to edit /usr/lib/systemd/system/***@.service and change the
ExecStart line to:
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf --foreground=yes

Timotheus
k***@use.startmail.com
2016-10-24 21:37:49 UTC
Permalink
Thank you, Timotheus.

For the record the solution appeared to be:

[***@mail ~]# rm /etc/systemd/system/***@.service

Still, it is not clear what initially created /etc/systemd/system/***@.service as a copy of /usr/lib/systemd/system/***@.service.
Was it kolab installer or some other tool? Or clamav-server-systemd package wasn't correct initially?

Josh.
Post by Timotheus Pokorra
Post by k***@use.startmail.com
Oct 24 16:58:55 mail clamd[22221]: /usr/sbin/clamd: unrecognized option `--nofork=yes'
Oct 24 16:58:55 mail clamd[22221]: ERROR: Unknown option passed
Oct 24 16:58:55 mail clamd[22221]: ERROR: Can't parse command line options
https://www.centos.org/forums/viewtopic.php?t=58763#p248129
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf --foreground=yes
Timotheus
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
Loading...