Solved

I need my postmaster account info

Posted on 2004-04-15
18
403 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
ID: 10833364
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
ID: 10833365
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
ID: 10833424
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
ID: 10833681
I assume you arent using postfix? Postfix wont deliver mail to root.
0
 

Author Comment

by:clintonm9
ID: 10833897
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
ID: 10833911
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
ID: 10833928
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
ID: 10834022
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:clintonm9
ID: 10834048
127.0.0.1               localhost.localdomain localhost
0
 
LVL 13

Expert Comment

by:rhinoceros
ID: 10839086
(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
ID: 10840008
Give us the log entry for the incoming MAILER-DAEMON@ part instead.

/Rob
0
 

Author Comment

by:clintonm9
ID: 10843874
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
ID: 10844008
In fact, you have not finished the setup for sendmail ??
0
 

Author Comment

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

Author Comment

by:clintonm9
ID: 10844506
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
ID: 10847361
# 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why VNC doesn't work in Redhat? 11 45
Ubuntu 16.04 AMD video card driver issues 20 347
Access_log 17 101
Check if a filw is immutable for a certain amount of time 6 48
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

867 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

15 Experts available now in Live!

Get 1:1 Help Now