Solved

I need my postmaster account info

Posted on 2004-04-15
18
402 Views
Last Modified: 2010-04-20
I want to set up the postmaster account to get all the returned emails or the emails that weren't sent out correctly.

in my aliases file i have this

mailer-daemon:  postmaster

I also created the account, what else do i need to get this mail?
0
Comment
Question by:clintonm9
  • 7
  • 5
  • 2
  • +1
18 Comments
 
LVL 13

Expert Comment

by:rhinoceros
Comment Utility
The "postmaster" is a virtual account

In my aliases file you should find

mailer-daemon:  postmaster
postmaster: root

"root" is the administrator in Linux, which has existing account.


So you should do it...

create your own account at first
e.g. username = john

1. add the following into aliases file
   "root: john"

2. Type "newaliases" in text mode

Then all mails of "postmaster" & "root" will be send to john's mail account

I hope it can help.
0
 
LVL 13

Expert Comment

by:rhinoceros
Comment Utility
The "postmaster" is a virtual account

In my aliases file you should find

mailer-daemon:  postmaster
postmaster: root

"root" is the administrator in Linux, which has existing account.


So you should do it...

create your own account at first
e.g. username = john

1. add the following into aliases file
   "root: john"

2. Type "newaliases" in text mode

Then all mails of "postmaster" & "root" will be send to john's mail account

I hope it can help.
0
 
LVL 8

Expert Comment

by:da99rmd
Comment Utility
I think its the "newaliases" command you have forgotten, it applies the changes you made to the deamon.

/Rob
0
 
LVL 17

Expert Comment

by:owensleftfoot
Comment Utility
I assume you arent using postfix? Postfix wont deliver mail to root.
0
 

Author Comment

by:clintonm9
Comment Utility
Problem 1)

When I send out a test email, out of the server to blank@rgrtrrtetete.com   --> invaild account

I do not get a "Mail Delivery Subsystem [MAILER-DAEMON@" return like I would emailing out of yahoo or something.
Am I suppose to?
When I look in mailq it is not in there?

Problem 2)
Root is not getting the returen either? Do I have to wait longer or is there some setting I need to tweak to get the return?

0
 

Author Comment

by:clintonm9
Comment Utility
here is the log

Apr 15 10:17:28 CBI sendmail[17315]: i3FFHQ4L017313: to=<blank@rgrtrrtetete.com>, ctladdr=<clinton@test1234.com> (501/501), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30385, relay=rgrtrrtetete.com, dsn=5.1.2, stat=Host unknown (Name server: rgrtrrtetete.com: host not found)
0
 

Author Comment

by:clintonm9
Comment Utility
One mroe thing I changed the aliase file to be this

mailer-daemon:  postmaster
postmaster:     mailreturn

and I created the mailreturn user

and yes i did run newaliases

0
 
LVL 17

Expert Comment

by:owensleftfoot
Comment Utility
Have you got a
localhost 127.0.0.1
line in your /etc/hosts file? It looks like your hostname is setup wrong. relay=rgrtrrtetete.com rgrtrrtetete.com is a domain, not a machine.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:clintonm9
Comment Utility
127.0.0.1               localhost.localdomain localhost
0
 
LVL 13

Expert Comment

by:rhinoceros
Comment Utility
(Host File)
/etc/hosts
127.0.0.1               servername rgrtrrtetete.com

(DNS setup ?)
cat /etc/sysconfig/networking/porofiles/default/resolv.conf
nameserver 2xx.xxx.xxx.xxx

(Make sure your created account 'mailreturn' & 'root' account are worked or not ?)
mail -u root
mail -u mailreturn

Or even sendmail services is started as normal ?
0
 
LVL 8

Expert Comment

by:da99rmd
Comment Utility
Give us the log entry for the incoming MAILER-DAEMON@ part instead.

/Rob
0
 

Author Comment

by:clintonm9
Comment Utility
Apr 16 11:19:26 CBI sendmail[1518]: i3GGJP4L001518: <sdsdds@****.com>... User unknown
Apr 16 11:19:26 CBI sendmail[1518]: i3GGJP4L001518: from=<clinton.mills@yahoo.com>, size=4936, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=www.hitcents.com [12.153.20.133]


I get the user unknow message but I get nothing in mailreturn
0
 
LVL 13

Expert Comment

by:rhinoceros
Comment Utility
In fact, you have not finished the setup for sendmail ??
0
 

Author Comment

by:clintonm9
Comment Utility
The mail works fine, all accounts work sending and receiving.
0
 

Author Comment

by:clintonm9
Comment Utility
FYI

I use to have it set up like this

# Basic system aliases -- these MUST be present.
mailer-daemon:  postmaster
postmaster:     root

Root did get the mail returns.

then i changed to this

# Basic system aliases -- these MUST be present.
mailer-daemon:  postmaster
postmaster:     mailreturn

and mailreturn doesn't work

0
 
LVL 13

Accepted Solution

by:
rhinoceros earned 200 total points
Comment Utility
# Basic system aliases -- these MUST be present.
mailer-daemon:  postmaster
postmaster:     mailreturn

It should be correct, so you try it...

1. userdel mailreturn
2. 'rm /var/spool/mail/mailreturn' & 'rm /home/mailreturn'
3. useradd mailreturn again
4. And make sure mailreturn account is worked by mail testing
5. Then edit aliases file and run "newaliases"

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now