View previous topic :: View next topic |
Author |
Message |
ziggysquatch Apprentice
Joined: 16 Nov 2004 Posts: 172 Location: /USA/Minnesota
|
Posted: Fri Sep 05, 2008 4:20 pm Post subject: Redirect bounceback email in postfix? |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Fri Sep 05, 2008 4:59 pm Post subject: |
|
|
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 |
|
|
ziggysquatch Apprentice
Joined: 16 Nov 2004 Posts: 172 Location: /USA/Minnesota
|
Posted: Fri Sep 05, 2008 8:40 pm Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Mon Sep 08, 2008 3:15 pm Post subject: |
|
|
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... |
|
Back to top |
|
|
|