LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-15-2012, 03:10 PM   #1
sunglee
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
postfix postmaster bounce recipient?


Hi, we have postfix setup on a centos box as an smtp relay, so I setup relay_domains and transport maps to relay emails addressed to our domains to our mail servers. We are using postini as anti-spam, so I'm not really worried about spoof emails. However, I forgot to add a rarely-used domain to the transport map, and an email addressed to that domain bounced. We received a bounce email, but this is what I'm confused about. The email address that received a bounce notification is support@ourdomain.com, which is actually where we want it to go, but I never set up that email address. I set the postmaster alias in /etc/alias to be my personal email address, and in main.cf there are no bounce configuration lines (which I'm assuming means it uses the default postmaster account). I'm confused about how it got sent to the support email address? Googling just keeps showing me the alias files, it doesn't really explain how postfix could be sending it to that particular email address. Thanks for any light that can be shed on this matter!
 
Old 04-16-2012, 05:17 AM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 134

Rep: Reputation: 30
Have a look in the /etc/aliases
It should have a line like
support: postmaster
that tells postfix to redirect email sent to support (and many others) to postmaster.
 
Old 04-16-2012, 07:31 AM   #3
sunglee
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks for the reply.
I've already configured /etc/aliases. This is my config for aliases:

mailer-daemon: postmaster
postmaster: myemail@domain.com
root: myemail@domain.com

Did I do this incorrectly? Do these have to be system accounts, and if so, how can I have it so that alerts sent to postmaster are forwarded to my email? And this still doesn't explain how the emails are getting sent to support@domain.com when the default bounce should be sent to postmaster??

edit:
also, the rest of /etc/aliases hasn't been changed, so it's still support: postmaster

Last edited by sunglee; 04-16-2012 at 07:32 AM.
 
Old 04-16-2012, 08:48 AM   #4
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 134

Rep: Reputation: 30
Have you tried a
service postfix reload,
service postfix restart or a
full system restart
after modifying /etc/aliases ?
 
Old 04-16-2012, 08:57 AM   #5
sunglee
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I thought I did, as well as newaliases, but I'll run those commands again. In the meantime, I just want to confirm that you can in fact write out the email address for the postmaster: alias? Everything I see online shows the postmaster: alias set as a local system account, and then forwarding the emails? This kind of confused me, but is this doable?
 
Old 04-16-2012, 10:08 AM   #6
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 134

Rep: Reputation: 30
Normally, yes.
If you have a local user named bob
you can have a line similar to
postmaster: bob
in /etc/aliases
in order to have all the emails sent to postmaster to bob.
But I have never tried it.

Besides, normally you just need to launch
service postfix reload
Not all three actions.
 
Old 04-17-2012, 02:00 PM   #7
sunglee
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
That's what is confusing to me...how/why did the notification email get sent to support@ourdomain.com in the first place??? I sent an email that I knew would bounce, as a test, and I haven't received a notice yet. I sent it yesterday, the last one took about 3-4 days to come so it may take that long for this as well. I'm just confused by that email. I haven't received anything at all at my personal address, which is what I set the postmaster alias to be!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix relay postmaster alitabas Linux - Server 1 07-29-2011 10:08 AM
postfix bounce.cf alex2323 Linux - Server 1 12-23-2009 01:39 PM
Postfix+rbl restrictions-postmaster/abuse not getting complaints Carl Filby Linux - Server 10 10-23-2008 04:00 AM
Emailing Postmaster (postfix) carlosinfl Linux - Server 1 04-20-2008 02:18 PM
how can postfix redirect unknown users mail to postmaster LinuxLover Linux - Software 1 05-16-2006 08:54 AM


All times are GMT -5. The time now is 03:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration