Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to redirect incoming bounce messages

976 views
Skip to first unread message

babu...@gmail.com

unread,
Nov 14, 2007, 11:07:11 PM11/14/07
to
We are using postfix. My problem is I want to redirect email bounce
messages (when we send a mail to our customer if that customer is not
existed then that mail will be bounced to our server) to 1...@yahoo.com
& 2...@gmail.com. I tried like following:

For forwarding incoming mail (from outside world) using on header:
vi /etc/postfix/header_checks , inserted following lines at last.
/^From: MAILER-DAEMON@/ REDIRECT 1...@yahoo.com
/^From: postmaster@/ REDIRECT 2...@gmail.com
:wq
vi /etc/postfix/main.cf
header_checks = regexp:/etc/postfix/header_checks (removed # before
this line)
:wq
#service postfix restart

Should we restart postfix or should we give
#postmap /etc/postfix/header_checks ? after above process

Still my problem is not solved,those bounced emails are been not
redirected to 1...@yahoo.com & 2...@gmail.com. Please let me know what
shall I do.

babu...@gmail.com

unread,
Nov 22, 2007, 1:52:38 AM11/22/07
to

I worked on this I got the solution, I am posting solution for my
doubt because if any one have same doubt they can easily solve.

vi /etc/postfix/main.cf
double_bounce_sender=postmaster
bounce_notice_recipient=postmaster
delay_notice_recipient,=postmaster
double_bounce_sender=postmaster
error_notice_recipient=postmaster
notify_classes = bounce, delay, policy, protocol, resource, software
:wq
vi /etc/aliases
postmaster: postmaster,1...@yahoo.com, 2...@gmail.com
:wq
run #newaliases as root
****** but now I have a small doubt with above process only headers
& subject is redirecting, if we give

bounce_notice_recipient=1...@yahoo.com, 2...@gmail.com will it redirects
with body of email ?
answers will be appreciated.

0 new messages