Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Redirect bounceback email in postfix?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ziggysquatch
Apprentice
Apprentice


Joined: 16 Nov 2004
Posts: 172
Location: /USA/Minnesota

PostPosted: Fri Sep 05, 2008 4:20 pm    Post subject: Redirect bounceback email in postfix? Reply with quote

Does anyone know of a way to have postfix send the bounce back email from a failed message to root's mailbox?

right now I have the following main.cf lines set to blank:

2bounce_notice_recipient =
bounce_notice_recipient =
delay_notice_recipient =
error_notice_recipient =
empty_address_recipient =

This leaves the email in the maildrop folder. If I set it to root it goes to the original sending user. In alias I have:

MAILER-DAEMON: root
root: postfix
(contents snipped to only show roots alias info)

I haven't tried creating a new user to put in the alias file and on those lines above in my main.cf but I think I will try that next.

Basically the bounceback emails won't be read by anyone the way I am using it right now but I don't want to lose them because I need that documentation for troubleshooting when an email is not recieved.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Fri Sep 05, 2008 4:59 pm    Post subject: Reply with quote

Hmmm...
Mine works without any of those configs in main.cf
$ cat /etc/mail/aliases:
MAILER-DAEMON:      postmaster
postmaster:         root
...
root:               ME
...
Please post master.cf :)
Back to top
View user's profile Send private message
ziggysquatch
Apprentice
Apprentice


Joined: 16 Nov 2004
Posts: 172
Location: /USA/Minnesota

PostPosted: Fri Sep 05, 2008 8:40 pm    Post subject: Reply with quote

master.cf:

Code:

smtp      inet  n       -       n       -       -       smtpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr     fifo  n       -       n       300     1       nqmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient


hmmm maybe that maildrop line is the problem...
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Mon Sep 08, 2008 3:15 pm    Post subject: Reply with quote

Maybe so, here is mine
Code:
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
#maildrop  unix  -       n       n       -       -       pipe
#  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
As you can see it's commented here, and all my mail goes where it should. But probably my whole mail setup is most likely different than yours. Kolabd - Postfix - Cyrus-Imap, etc... :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum