> Wietse Venema via Postfix-users <[email protected]>:
> 
> Gerald Galster via Postfix-users:
>> 
>>> Wietse Venema via Postfix-users:
>>>> I'll add some logging for the case that a bounce message
>>>> is rejected for whatever reason.
>>>> 
>>>> But this won't reach Postfix 3.5.25.
>>> 
>>> Quick experiment:
>>> 
>>> Dec 10 14:40:00 wzv postfix/cleanup[330595]: 4dRQzN6pXBzVHYR: 
>>> message-id=<4dRQzN6pXBzVHYR...
>>> Dec 10 14:40:00 wzv postfix/qmgr[330587]: 4dRQzN6pXBzVHYR: from=<...
>>> Dec 10 14:40:03 wzv postfix/smtp[330599]: 4dRQzN6pXBzVHYR: 
>>> to=<doesnotexist@...
>>> Dec 10 14:40:03 wzv postfix/bounce[330605]: 4dRQzN6pXBzVHYR: sender 
>>> non-delivery notification: message content rejected
>>> Dec 10 14:40:03 wzv postfix/qmgr[330587]: 4dRQzN6pXBzVHYR: status=deferred 
>>> (bounce failed)
>>> 
>>> For this experiment I repurposed the existing logging:
>>> 
>>>   old-queueid: sender non-delivery notification: new-queueid
>> 
>> Can you implement that in a backwards compatible way, as it may
>> break mailflow applications that parse queue-ids to track bounces?
> 
> Please clarify. For this specific case, Postfix has never logged
> a bounce message queue ID.


I'm relating to the modified log message in general:

> Instead of new-queue-id it logs the reason why no bounce message
> was queued.

1) postfix/smtp[]  : 4dQZCp5Vj4z19QP: to=<[email protected]>, 
relay=mx.domain.com[1.2.3.4]:25, ..., status=bounced
2) postfix/bounce[]: 4dQZCp5Vj4z19QP: sender non-delivery notification: 
4dQZCz37qZz19Qs

3) postfix/qmgr[]  : 4dQZCz37qZz19Qs: from=<>, size=6467, nrcpt=1 (queue active)
4) postfix/smtp[]  : 4dQZCz37qZz19Qs: to=<[email protected]>, 
relay=mx.sender.com[2.3.4.5]:25, ..., status=sent

A log parser can trace the successful bounce delivery 4) back to the
failed delivery 1) by parsing the notification queue-id 2).
If you replace the new-queue-id with text (bounce reason), this is
no longer possible.

Or was your quick experiment just that: an experiment that won't
make it into official postfix releases?

Best regards,
Gerald
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to