Hello Wietse and others:
Op 16-11-2022 om 15:36 schreef Wietse Venema:
Paul van der Vlis:
Is there a way to get it refused before-queue?
Yes. IF A MILTER REJECTS A MESSAGE then Postfix will not accept it.
So far I see the message is queued as C6E2F880CEC:
root@hosting:~# echo "Test virus body" | mutt -a eicar.com.txt -s "This
is virus6" -- p...@vandervlis.nl
root@hosting:~# less /var/log/mail.log
root@hosting:~# grep C6E2F880CEC /var/log/mail.log
Nov 16 14:10:41 hosting postfix/smtp[2091127]: 9A98D22A1B:
to=<p...@vandervlis.nl>, relay=server.vandervlis.nl[45.95.238.187]:25,
delay=3.3, delays=0.02/0/0.12/3.2, dsn=2.0.0, status=sent (250 2.0.0 Ok:
queued as C6E2F880CEC)
root@server:~# grep C6E2F880CEC /var/log/mail.log
Nov 16 14:10:41 server postfix/smtpd[61278]: C6E2F880CEC:
client=hosting.vandervlis.nl[91.198.178.59]
Nov 16 14:10:41 server postfix/cleanup[61285]: C6E2F880CEC:
message-id=<y3thtmy529ngk...@hosting.vandervlis.nl>
Nov 16 14:10:41 server clamav-milter[5258]: Message C6E2F880CEC from
<r...@hosting.vandervlis.nl> to <p...@vandervlis.nl> with subject 'This
is virus6' message-id '<y3thtmy529ngk...@hosting.vandervlis.nl>' date
'Wed, 16 Nov 2022 14:10:38 +0100' infected by Eicar-Signature
Nov 16 14:10:41 server postfix/cleanup[61285]: C6E2F880CEC: milter-hold:
END-OF-MESSAGE from hosting.vandervlis.nl[91.198.178.59]: milter
triggers HOLD action; from=<r...@hosting.vandervlis.nl>
to=<p...@vandervlis.nl> proto=ESMTP helo=<hosting.vandervlis.nl>
With regards,
Paul van der VLis
--
Paul van der Vlis Linux systeembeheer Groningen
https://vandervlis.nl/