[clamav-users] clamav milter + sendmail, sendmail not reporting reject

Sergey a_s_y at sama.ru
Tue Feb 8 13:55:32 UTC 2022


On Tuesday 08 February 2022, Marc wrote:

>  I have a bit of experience with mailfromd and if I reject a message
>  there the MTA processes it correctly but different from clamav-milter. 

b.t.w. mailfromd can replace clamav-milter:

prog eom
do
  if clamav(current_message(),clamd_port)
      reject 554 5.7.0 "virus %clamav_virus_name detected by ClamAV - http://www.clamav.net"
  fi
done

-- 
Regards, Sergey


More information about the clamav-users mailing list