On 08-07-2021 12:05, Matus UHLAR - fantomas wrote:
Hans van Zijst:
I'm trying to get Postfix to send its bounce notices to a different
address than "postmaster", so I configured

notify_classes = resource, software, bounce, 2bounce
bounce_notice_recipient = bou...@example.com
2bounce_notice_recipient = bou...@example.com
error_notice_recipient = bou...@example.com

On 07-07-2021 17:43, Wietse Venema wrote:
This configures delivery of POSTMASTER COPIES OF DELIVERY STATUS
NOTIFICATIONS (and other errors).

This DOES NOT configure delivery of STANDARD DELIVERY STATUS
NOTIFICATIONS TO THE ENVELOPE SENDER.

On 08.07.21 10:35, Hans van Zijst wrote:
That is exactly what I'm trying to do. Senders get their normal bounce message, as they should. But postmaster should get a copy of those, so that we can keep an eye on how things are going.

It is my understanding that the bit of config I posted should change the destination for those copies, but they're still going to "postmaster", which means they end up in the mailbox I've configured for more urgent stuff.

as I understand it, bounce_notice_recipient send copies of mail that postfix
could not deliver.

The "recipient address rejected: user unknown in virtual alias table"
messages are mail that postfix refused to accept, so there's nothing to
deliver.

On 08.07.21 13:39, Hans van Zijst wrote:
Correct, and if Postfix refuses a message, it sends a notice to "postmaster".

no, that's what explained before:

if notify_classes includes "bounce", postfix sends copy of outgoing message it
failed to deliver. It does NOT send copies of messages it refused to accept, because in this
case messages do not exist locally, so there is nothing to send.

If you want to see what was rejected, try installing software that
watches/processes logs.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Eagles may soar, but weasels don't get sucked into jet engines.

Reply via email to