0

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.

Jenny D
  • 27,780
  • 21
  • 75
  • 114
helpo11
  • 1
  • 1

1 Answers1

0

Simple:

  1. echo "@server_hostname.example.local spam.magnet@org.com" >> /etc/postfix/canonical
  2. 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