My postfix mail queue has quite a few bounced back e-mails; however, the recipient of the bounced back e-mail does not exist, e.g. @server_hostname.example.local
, so it will never be delivered and nobody would know that the message was bounced back. What I'd like to do is redirect these bounced back emails to a department's shared e-mail so that the department is aware of the bounce back. I was wondering what's the best way to do this? I've tried a couple of options but they don't seem to work for me. Any suggestions would be great.
Asked
Active
Viewed 440 times
0
-
What exactly is in your mail queue? What exactly is in the mail _log_? – Michael Hampton Dec 16 '17 at 19:13
1 Answers
0
Simple:
echo "@server_hostname.example.local spam.magnet@org.com" >> /etc/postfix/canonical
postmap /etc/postfix/canonical
Though this has the side-effect of re-writing the destination email address to spam.magnet@org.com
.
refs:
You might also want to look at 2bounce_notice_recipient but I've not actually tried using that one yet.

Sammitch
- 2,111
- 1
- 21
- 35