[clamav-users] Clamav-milter finds postive, goes to hold queue

Grant Taylor gtaylor at tnetconsulting.net
Wed Feb 24 16:36:27 UTC 2021


On 2/24/21 6:26 AM, Joe Acquisto-j4 wrote:
> For now I will settle on a cron job script that peeks at the hold queue 
> every so often and alerts someone (me) with an alert.

*nod*nod*

I have a daily cron job that runs a script which shows me:

   - Number of messages which are:
      - Normally queued messages for the MTA
      - Held (Postfix parlance) / Quarantined (Sendmail parlance) 
messages for the MTA
      - Normally queued messages for the MSA
   - Output of mailq for:
      - Held / Quarantined messages
      - Normally queued messages for the MSA

I don't show the output for the normally queued messages for the MTA 
because that's a constant state of flux and working like it should.

I mainly care to see held / quarantined messages and if something's 
wrong with the MSA queue.

> I would have thought there was some mechanism already built in to the 
> milter, or postfix, to do that, optionally) but I've not stumbled on 
> one thus far.

There is.  The command is called "mailq".  It's designed to print status 
to STDOUT and be consumed by a human.  Many people have this output 
emailed to them or apply some sort of script logic to it.

Note:  This MTA administration is decidedly NOT the milter's job.  The 
milter's job is to filter discrete messages and return a -1 / 0 / 1 
status to the MTA.  The MTA is what's responsible for managing /it's/ queue.



-- 
Grant. . . .
unix || die


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4013 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20210224/bf134c6a/attachment.bin>


More information about the clamav-users mailing list