Hi Matus,
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.
Correct, and if Postfix refuses a message, it sends a notice to
"postmaster". That's what I want, because I want to keep an eye on what
people try to send. I just don't want those notices to go to "postmaster".
you could set smtpd_reject_unlisted_recipient=no and remove
reject_unlisted_recipient
from smtpd_recipient_restrictions.
however, accepting mail to nonexistent local addresses and sending
bounces can
result into being listed in DNS blocklists.
I recommmend refusing those mails and solve reason why mails to nonexistent
addresses are sent to you.
I do refuse those mails immediately, so I'm not accepting anything that
I later have to send a bounce message for. And Postfix sends me a notice
whenever it rejects a message, and that's exactly what I want. Just not
to "postmaster" ;-)
The reason why people try to send to all kinds of addresses is that this
is a very public mailserver and spammers will be spammers. So I'll keep
rejecting messages to non-existent addresses, and because the few
existing mailboxes will happily accept messages, I'm not afraid to end
up on blacklists.
Kind regards,
Hans van Zijst