LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2008, 06:31 PM   #1
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Question Sendmail >> Aliases >> where do you set the admin e-mail address?


Hi there,

I am not a total newb but I am new to the configuration of Sendmail and how the whole aliases setup works. I can view my aliases file in /etc/aliases but I want to know where you set the admin's e-mail. For example you might have admin@yourdomain.com set as the receiver of all mail from the server. Where can I find this setting, what file is it in and what directory? I may have missed it.

I did do a
Quote:
grep -lr "admin@yourdomain.com " *
on the /etc/aliases but nothing popped out at me, and anything that did didn't have the setting I was looking for.

Thanks!
 
Old 02-20-2008, 06:45 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Most administration mail on your box will end up being addressed to root. In the aliases file you will probably see that mailer-daemon's mail goes to postmaster and postmaster's mail goes to root. You'll also see a lot of system account names listed with their mail going to root.

To make reading root's mail easier, you can add an alias at the end of the file diverting root's mail to your account. If you do, you'll need to run the newaliases command afterwards to update the aliases database.
 
Old 02-20-2008, 06:51 PM   #3
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Original Poster
Rep: Reputation: 32
So would it be
Quote:
root: user@yourdomain.com
at the end of the aliases file? I noticed that on one of our servers this is commented out.... and yes I won't forget to run the newaliases.

Thank you!
 
Old 02-20-2008, 07:02 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Yes, that's right. That should send all of root's mail to user@yourdomain.com
 
Old 02-21-2008, 11:42 AM   #5
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Original Poster
Rep: Reputation: 32
The alaises file should look something like this one along with the addition of the user I want to send the e-mails to - then I want to run "newaliases," via the command line or a terminal, correct?

Quote:
#
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /bin/mail.
#
# >>>>>>>>>> The program "newaliases" must be run after
# >> NOTE >> this file is updated for any changes to
# >>>>>>>>>> show through to sendmail.
#

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

# General redirections for pseudo accounts.
bin: root
daemon: root
adm: root
lp: root
sync: root
shutdown: root
halt: root
mail: root
news: root
uucp: root
operator: root
games: root
gopher: root
ftp: root
nobody: root
radiusd: root
nut: root
dbus: root
vcsa: root
canna: root
wnn: root
rpm: root
nscd: root
pcap: root
apache: root
webalizer: root
dovecot: root
fax: root
quagga: root
radvd: root
pvm: root
amanda: root
privoxy: root
ident: root
named: root
xfs: root
gdm: root
mailnull: root
postgres: root
sshd: root
smmsp: root
postfix: root
netdump: root
ldap: root
squid: root
ntp: root
mysql: root
desktop: root
rpcuser: root
rpc: root
nfsnobody: root

ingres: root
system: root
toor: root
manager: root
dumper: root
abuse: root

newsadm: news
newsadmin: news
usenet: news
ftpadm: ftp
ftpadmin: ftp
ftp-adm: ftp
ftp-admin: ftp
www: webmaster
webmaster: root
noc: root
security: root
hostmaster: root
info: postmaster
marketing: postmaster
sales: postmaster
support: postmaster


# trap decode to catch security attacks
decode: root

# Person who should get root's mail
#root: marc
root: user@yourdomain.com
Thanks Steve!

Last edited by bskrakes; 02-21-2008 at 11:50 AM. Reason: figured i would post some better info!
 
Old 02-21-2008, 05:45 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Yep - that's it
 
  


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
setting virtusertable in sendmail creates problems with aliases set jomy Linux - Networking 1 11-03-2011 07:32 PM
Sendmail Aliases: forward mail to script mikeshn Linux - Software 2 07-03-2010 09:22 PM
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 06:57 PM
Sendmail + /etc/aliases = Unprivlieged User mail ckoniecny Linux - General 1 10-22-2005 06:41 AM
sendmail & /etc/mail/aliases adam_boz Linux - Software 5 09-27-2002 01:31 PM


All times are GMT -5. The time now is 04:21 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration