zabbix-postfix icon indicating copy to clipboard operation
zabbix-postfix copied to clipboard

Held Messages are not correctly displayed

Open pthoelken opened this issue 3 years ago • 2 comments

"Held Messages" are not displayed correclty:

image

Console Output from your script (check the failures in the end of the line)

DATA="$(${LOGTAIL} -o ${FPOS} ${MAILLOG} | ${PFLOGSUMM} -h 0 -u 0 --bounce_detail=0 --deferral_detail=0 --reject_detail=0 --no_no_msg_size --smtpd_warning_detail=0)"
echo -e $DATA
Grand Totals ------------ messages 0 received 0 delivered 0 forwarded 0 deferred 0 bounced 0 rejected (0%) 0 reject warnings 0 held 0 discarded (0%) 0 bytes received 0 bytes delivered 0 senders 0 sending hosts/domains 0 recipients 0 recipient hosts/domains Per-Hour Traffic Summary ------------------------ time received delivered deferred bounced rejected -------------------------------------------------------------------- 0000-0100 0 0 0 0 0 0100-0200 0 0 0 0 0 0200-0300 0 0 0 0 0 0300-0400 0 0 0 0 0 0400-0500 0 0 0 0 0 0500-0600 0 0 0 0 0 0600-0700 0 0 0 0 0 0700-0800 0 0 0 0 0 0800-0900 0 0 0 0 0 0900-1000 0 0 0 0 0 1000-1100 0 0 0 0 0 1100-1200 0 0 0 0 0 1200-1300 0 0 0 0 0 1300-1400 0 0 0 0 0 1400-1500 0 0 0 0 0 1500-1600 0 0 0 0 0 1600-1700 0 0 0 0 0 1700-1800 0 0 0 0 0 1800-1900 0 0 0 0 0 1900-2000 0 0 0 0 0 2000-2100 0 0 0 0 0 2100-2200 0 0 0 0 0 2200-2300 0 0 0 0 0 2300-2400 0 0 0 0 0 smtp delivery failures: none Fatal Errors: none Panics: none Master daemon messages: none

Output from other check command

root@server:~# mailq -hq
-Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
791XX12XXX    5037 Thu Jun 30 08:49:45  [email protected]
        (connect to maksed.foo.bar[xxx.xxx.xxx.xxx]:25: Connection timed out)
                                         [email protected]

-- 4 Kbytes in 1 Request.

pthoelken avatar Jun 30 '22 06:06 pthoelken

I use this workaround for me: zsend pf.held $(mailq | grep -c "^[A-F0-9]")

pthoelken avatar Jun 30 '22 19:06 pthoelken

Hello @pthoelken We actually already have an item for the queue size (using the mailq output) About the held messages, It will only count those explicitly held. On the example, it looks more like a time out error (that will be retried)

rafael747 avatar Nov 22 '22 14:11 rafael747