1752301 Members
5079 Online
108786 Solutions
New Discussion юеВ

alias does not alias?

 
SOLVED
Go to solution
A. Daniel King_1
Super Advisor

alias does not alias?

Hi, folks.

I've got a alias which relays mail to account HP-UX account dking.

This works.

However, when I add a second address to the alias listing, the dking account stops getting mail from the alias.

Why? The alternate address ALWAYS gets the message.

The syntax from /etc/mail/aliases:

admins : dking, joe

I have run newaliases, restarted sendmail, etc.

Thanks in advance.
Command-Line Junkie
10 REPLIES 10
Paul Sperry
Honored Contributor

Re: alias does not alias?

is joe a local user?
If not use joe@domain
Geoff Wild
Honored Contributor

Re: alias does not alias?

Make sure you are pointing to the correct aliases file in your sendmail.cf:

AliasFile=/etc/mail/aliases

Alos, try no space after admins

admins: dking,joe

BTW - Which OS and Sendmail Version are you using?

echo \$Z | /usr/sbin/sendmail -bt -d




Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
A. Daniel King_1
Super Advisor

Re: alias does not alias?

It is a local user. I also do not see duplicate UIDs or GIDs for dking in /etc/passwd - which should be right.
Command-Line Junkie
A. Daniel King_1
Super Advisor

Re: alias does not alias?

HP-UX 11i
Sendmail 8.9.3

The removal of space did not help. Other ideas?
Command-Line Junkie
Geoff Wild
Honored Contributor

Re: alias does not alias?

How about try:

admins : dlking@yourdomain.com,joe@yourdomain.com
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ken Penland_1
Trusted Contributor

Re: alias does not alias?

What do you see in the mail.log? does it show Sent for both accounts?
'
A. Daniel King_1
Super Advisor

Re: alias does not alias?

Jun 4 13:08:37 atlig0 sendmail[24834]: alias database /etc/mail/aliases rebuilt by dking
Jun 4 13:08:37 atlig0 sendmail[24834]: /etc/mail/aliases: 19 aliases, longest 461 bytes, 1444 bytes total
Jun 4 13:08:43 atlig0 sendmail[24886]: NAA24886: from=dking, size=110, class=0, pri=60110, nrcpts=2, msgid=<200306041708.NAA24886@atlig0.fiservatlanta.com>, relay=dking@localhost
Jun 4 13:08:44 atlig0 sendmail[24894]: NAA24886: to=joe, ctladdr=dking (191/20), delay=00:00:01, xdelay=00:00:00, mailer=local, stat=Sent

Command-Line Junkie
Paul Sperry
Honored Contributor
Solution

Re: alias does not alias?

When
the aliases file contains multiple entries for a given alias, only the
last entry is used. Except when the m processing option (the send to
me option) is set in the sendmail command or in the configuration
file, /etc/mail/sendmail.cf, the sender is not included in any alias
expansions. For example, if joe sends a message to group, and the
expansion of group includes joe, the message is not delivered to joe.
A. Daniel King_1
Super Advisor

Re: alias does not alias?

10 points for the man in the pointy hat.

I get it. Now, I get it.
Command-Line Junkie