On Mon, 20 Feb 2023, Wietse Venema wrote:
Doug Denault:
On Sun, 19 Feb 2023, Viktor Dukhovni wrote:
On Sun, Feb 19, 2023 at 10:35:43PM -0500, Doug Denault wrote:
With my setup no warning is deferred errors such as 'time out' or
'Connection refused' until the message is delete from the queue.
I added:
delay_warning_time = 8h
to main.cf. This made no difference so I assume an additional setting is
required, but I could not find anything.
This setting only affects *new* messages. Messages already in the queue
will not elicit the warning. There's a queue-file record for that...
I'm sorry I was not clear. New messages do not get the warning.
This is a FreeBSD 12.2-RELEASE-p7. postfix 3.6.2_1
Postfix does not immediately send "delayed mail" warnings as soon
as a message exceeds the warning time limit. That would not scale.
Instead, Postfix attempts to deliver a message, and when that attempt
fails, it sends a "delayed mail" warning message once.
Thank you. If I understand your answer, I do not think that is what I am
seeing. What is happening is an email that gets a 'time out' or some such
will continuusly give deferred messages for five days and then, if I let
things go that long, remove the email and send the bounce message.
A crrent example follows. I rotate logs daily so this gives a daily count
of the number of messages.
bzgrep -c 7883F510EBC maillog maillog.?.bz2
maillog:18 -- today
maillog.0.bz2:42 -- 2/19
maillog.1.bz2:42 -- 2/18
maillog.2.bz2:42 -- 2/17
maillog.3.bz2:75 -- 2/16
The most current message (edited for privacy):
Feb 20 09:25:14 freeport postfix/qmgr[88969]: 7883F510EBC:
from=<i...@domain1.com>, size=1943447, nrcpt=41 (queue active)
Feb 20 09:25:15 freeport postfix/smtp[67456]: 7883F510EBC:
to=<some...@domain2.com>, relay=none, delay=329206,
delays=329205/0.08/0.27/0, dsn=4.4.1, status=deferred (connect to
mcahd.com[10.86.238.4]:25: Connection refused)
The mailq output:
7883F510EBC 1943447 Thu Feb 16 13:58:29 i...@bcr-dc.com
(connect to domain2.com[10.86.238.4]:25: Connection refused)
some...@domain2.com
_____
Douglas Denault
http://www.safeport.com
d...@safeport.com
Voice: 301-217-9220
Fax: 301-217-9277