Hi there,
Since April 18, clamd seems to choke on a particular email, resulting in rspamd soft rejecting it.
I see that nethserver’s antivirus was auto-updated on April 14, but cannot be sure it’s linked.
The maillog contains this :
Apr 22 11:49:30 cloud rspamd[2397]: <375578>; proxy; rspamd_add_passthrough_result: <6d16dc09-ce12-7e40-4519-f9c96e55cba8@gmail.com>: set pre-result to 'soft reject' (no score): 'Cannot validate the message now. Try again later' from force_actions(0)
Apr 22 11:49:30 cloud rspamd[2397]: <375578>; proxy; rspamd_task_write_log: id: <6d16dc09-ce12-7e40-4519-f9c96e55cba8@gmail.com>, qid: <00CB89E24D>, ip: 209.85.208.48, from: <sender@hidden.be>, (default: F (soft reject): [0.00/20.00] [DATE_IN_PAST(1.00){35;},MANY_INVISIBLE_PARTS(1.00){10;},SPF_REPUTATION_HAM(-0.69){-0.69741185240321;},DMARC_POLICY_ALLOW(-0.50){gmail.com;none;},IP_REPUTATION_HAM(-0.28){asn: 15169(-0.28), country: US(-0.01), ip: 209.85.208.48(0.00);},R_DKIM_ALLOW(-0.20){gmail.com:s=20210112;},R_SPF_ALLOW(-0.20){+ip4:209.85.128.0/17;},MIME_GOOD(-0.10){multipart/mixed;multipart/alternative;text/plain;multipart/related;},MX_GOOD(-0.01){},ASN(0.00){asn:15169, ipnet:209.85.128.0/17, country:US;},CLAM_VIRUS_FAIL(0.00){failed to scan and retransmits exceed;},DKIM_TRACE(0.00){gmail.com:+;},DWL_DNSWL_NONE(0.00){gmail.com:dkim;},FORCE_ACTION_CLAM_VIRUS_FAIL(0.00){soft reject;},FREEMAIL_ENVFROM(0.00){gmail.com;},FREEMAIL_FROM(0.00){gmail.com;},FREEMAIL_TO(0.00){hotmail.com;},FROM_EQ_ENVFROM(0.00){},FROM_HAS_DN(0.00){},HAS_ATTACHMENT(0.00){},HAS_ORG_HEADER(0.00){},MID_RHS_MATCH_FROM(0.00){},MIME_TRACE(0.00){0:+;1:+;2:+;3:+;4:~;5:~;6:~;7:~;...;},PREVIOUSLY_DELIVERED(0.00){recipient@hidden.be;},RCPT_COUNT_THREE(0.00){4;},RCVD_COUNT_THREE(0.00){3;},RCVD_IN_DNSWL_NONE(0.00){209.85.208.48:from;},RCVD_TLS_ALL(0.00){},RCVD_VIA_SMTP_AUTH(0.00){},RECEIVED_SPAMHAUS_PBL(0.00){62.235.236.122:received;},RWL_MAILSPIKE_POSSIBLE(0.00){209.85.208.48:from;},TO_DN_ALL(0.00){},TO_MATCH_ENVRCPT_SOME(0.00){}]), len: 19492102, time: 15276.793ms, dns req: 67, digest: <d008ac0ba39ad244fda1bbb762c76196>, rcpts: <recipient@hidden.be>, mime_rcpts: <(redacted)>, forced: soft reject "Cannot validate the message now. Try again later"; score=nan (set by force_actions)
Apr 22 11:49:30 cloud rspamd[2397]: <375578>; proxy; rspamd_protocol_http_reply: regexp statistics: 0 pcre regexps scanned, 9 regexps matched, 175 regexps total, 79 regexps cached, 0B scanned using pcre, 172.32KiB scanned total
Apr 22 11:49:30 cloud postfix/cleanup[18437]: 00CB89E24D: milter-reject: END-OF-MESSAGE from mail-ed1-f48.google.com[209.85.208.48]: 4.7.1 Cannot validate the message now. Try again later; from=<redacted> to=<redacted> proto=ESMTP helo=<mail-ed1-f48.google.com>
Apr 22 11:49:30 cloud postfix/smtpd[18430]: disconnect from mail-ed1-f48.google.com[209.85.208.48]
Apr 22 11:49:30 cloud rspamd[2397]: <f25f75>; proxy; proxy_milter_finish_handler: finished milter connection
Apr 22 11:50:01 cloud postfix/smtpd[18430]: connect from localhost[127.0.0.1]
Apr 22 11:50:01 cloud rspamd[2397]: <759002>; proxy; proxy_accept_socket: accepted milter connection from /var/run/rspamd/worker-proxy port 0
Apr 22 11:50:01 cloud postfix/smtpd[18430]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname; from=<redacted> to=<redacted> proto=ESMTP helo=<localhost>
Apr 22 11:50:01 cloud postfix/smtpd[18430]: disconnect from localhost[127.0.0.1]
Apr 22 11:50:01 cloud rspamd[2397]: <759002>; milter; rspamd_milter_process_command: got connection from 127.0.0.1:40162
Apr 22 11:50:01 cloud rspamd[2397]: <759002>; proxy; proxy_milter_finish_handler: finished milter connection
Apr 22 11:50:01 cloud postfix/smtpd[18430]: connect from localhost[127.0.0.1]
Apr 22 11:50:01 cloud rspamd[2397]: <4c62a7>; proxy; proxy_accept_socket: accepted milter connection from /var/run/rspamd/worker-proxy port 0
Gmail sends the mail again every couple of hour. I set rspamd’s log level to debug, hoping to get more information on the problem. I’ll keep you updated.
restarting the server did not help.
There is an issue opened recently with the same kind of problem : Clamav failed to scan, maximum retransmits exceed · Issue #2321 · Mailu/Mailu · GitHub
There are also past discussions on this subject (cc @stephdl)
Meanwhile, I’d like to examine the email in question but cannot find it on the filesystem. Where should I look ?
Thanks for your help.