RE: sendmail not using /etc/aliases file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For the test I sent a message to abuse which has an entry in the aliases file to point to root which in-turn points to rootmail.  rootmail is a valid user account on the system.  The mail actually ended up on my main MX box.  

>From /var/log/maillog...

Feb 17 12:46:51 marvin sendmail[29181]: alias database /etc/mail/aliases rebuilt by root
Feb 17 12:46:51 marvin sendmail[29181]: /etc/mail/aliases: 64 aliases, longest 36 bytes, 665 bytes total
Feb 17 12:46:51 marvin sendmail[29194]: starting daemon (8.12.8): SMTP+queueing@01:00:00
Feb 17 12:46:51 marvin sendmail[29194]: started as: /usr/sbin/sendmail -bd -q1h
Feb 17 12:46:51 marvin sm-msp-queue[29203]: starting daemon (8.12.8): queueing@01:00:00
Feb 17 12:47:09 marvin sendmail[29208]: i1HIl4sA029208: from=root, size=21, class=0, nrcpts=1, msgid=<200402171847.i1HIl4sA029208@xxxxxxxxxxxxxxxxxxxxx>, relay=root@localhost
Feb 17 12:47:09 marvin sendmail[29208]: i1HIl4sA029208: to=abuse, ctladdr=root (0/0), delay=00:00:05, xdelay=00:00:00, mailer=relay, pri=30021, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1HIl96W000929 Message accepted for delivery)


[root@marvin mail]# cat /etc/mail/aliases
#
#  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
vcsa:           root
canna:          root
wnn:            root
rpm:            root
nscd:           root
pcap:           root
apache:         root
webalizer:      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

# mailman aliases
mailman:        postmaster
mailman-owner:  mailman

newsadm:        news
newsadmin:      news
usenet:         news
ftpadm:         ftp
ftpadmin:       ftp
ftp-adm:        ftp
ftp-admin:      ftp

# trap decode to catch security attacks
decode:         root

# Person who should get root's mail
## Changed by LEO 12/26/2003
root:           rootmail


> [root@marvin mail]# echo "/map aliases abuse" | /usr/sbin/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> map_lookup: aliases (abuse) returns root (0)
> [root@marvin mail]# echo "/map aliases root" | /usr/sbin/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> map_lookup: aliases (root) returns rootmail (0)


-----Original Message-----
From: shrike-list-admin@xxxxxxxxxx
[mailto:shrike-list-admin@xxxxxxxxxx]On Behalf Of joe
Sent: Tuesday, February 17, 2004 10:53 AM
To: shrike-list@xxxxxxxxxx
Subject: Re: sendmail not using /etc/aliases file


Leonard, Phil wrote:

>Deleted aliases.db and checked the syntax in aliases.  Restarted sendmail and the aliases.db file was rebuilt.  Same problem persists.
>  
>
Since we're really all in the dark here and none of this is making 
sense, could you jack up the sendmail logging level to 14, then send a 
message to a user referenced in the aliases file, and and post all 
associated lines from /var/log/maillog so we can see what "not using 
aliases file" means?

Thanks,

Joe



-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux