- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: aliases issue using /etc/aliases
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 03:47 PM
тАО04-01-2009 03:47 PM
But after I have updated /etc/aliases and added the line for all of root's mail to be routed to me....
Added:
root: myemail@company.com
and ran newaliases to implement it....
If I send a mail message to root, it does not get routed to my email...
Any suggestions ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 06:09 PM
тАО04-01-2009 06:09 PM
Re: aliases issue using /etc/aliases
Also, if you send a mail to yourself from command line, do you receive it? Is your server also your own mail server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2009 04:53 AM
тАО04-02-2009 04:53 AM
Re: aliases issue using /etc/aliases
Command: echo "Test mail: michael.lense@convergys.com...." | /bin/mail -s "haplv01" michael.lense@convergys.com
Apr 2 08:42:09 haplv01 sendmail[9876]: n32Cg9oN009876: from=root, size=93, class=0, nrcpts=1, msgid=<200904021242.n32Cg9oN009876@haplv01.convergys.com>, relay=root@localhost
Apr 2 08:42:09 haplv01 sendmail[9876]: STARTTLS=client, relay=cvgmx2.convergys.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Apr 2 08:42:09 haplv01 sendmail[9876]: n32Cg9oN009876: to=michael.lense@convergys.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30093, relay=cvgmx2.convergys.com. [155.90.248.189], dsn=2.0.0, stat=Sent (Ok: queued as 829971464324)
Here I changed the /etc/aliases file adding line:
root: michael.lense@convergys.com
Ran the newaliases command:
# newaliases
/etc/aliases: 79 aliases, longest 27 bytes, 833 bytes total
#
and this is the /var/log/maillog entries, and I did not receive the email...
Apr 2 08:43:34 haplv01 sendmail[9888]: alias database /etc/aliases rebuilt by root
Apr 2 08:43:34 haplv01 sendmail[9888]: /etc/aliases: 79 aliases, longest 27 bytes, 833 bytes total
Apr 2 08:44:02 haplv01 sendmail[9891]: n32Ci2ZJ009891: from=root, size=47, class=0, nrcpts=1, msgid=<200904021244.n32Ci2ZJ009891@haplv01.convergys.com>, relay=root@localhost
Apr 2 08:44:03 haplv01 sendmail[9891]: STARTTLS=client, relay=cvgmx2.convergys.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Apr 2 08:44:03 haplv01 sendmail[9891]: n32Ci2ZJ009891: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30047, relay=cvgmx2.convergys.com. [155.90.248.189], dsn=2.0.0, stat=Sent (Ok: queued as 4416A1464347)
.................................
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2009 01:35 PM
тАО04-02-2009 01:35 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 09:02 AM
тАО04-14-2009 09:02 AM
Re: aliases issue using /etc/aliases
I looked at a server that is working corectly, and the maillog on it shows the mail going to individual mail addresses that are in the /etc/aliases file for root:
Apr 14 12:57:33 mfl-rhel5 sendmail[9712]: n3EGvXY6009712: from=root, size=2393, class=0, nrcpts=1, msgid=<200904141657.n3EGvXY6009712@mfl-rhel5.dcd.convergys.com>, relay=root@localhost
Apr 14 12:57:33 mfl-rhel5 sendmail[9786]: n3EGvX74009786: from=
Apr 14 12:57:33 mfl-rhel5 sendmail[9712]: n3EGvXY6009712: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32393, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n3EGvX74009786 Message accepted for delivery)
Apr 14 12:57:34 mfl-rhel5 sendmail[9787]: n3EGvX74009786: to=mlense@cfl.rr.com, ctladdr=
Apr 14 12:57:35 mfl-rhel5 sendmail[9787]: STARTTLS=client, relay=cvgmx1in.convergys.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Apr 14 12:57:35 mfl-rhel5 sendmail[9787]: n3EGvX74009786: to=michael.lense@convergys.com, ctladdr=
So to me it does not appear as if the /etc/aliases is working on the effected server for some reason.... and after running the newaliases command, the aliases.db file has a new date/time stamp that reflects when it was run....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 11:55 AM
тАО04-14-2009 11:55 AM
Re: aliases issue using /etc/aliases
Can you try sending a mail to root@localhost for example?. What is the content of your local-host-names file?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 12:16 PM
тАО04-14-2009 12:16 PM
Re: aliases issue using /etc/aliases
Apr 14 16:12:40 atcpivrv01 sendmail[15941]: n3EKCe6Z015941: from=root, size=72, class=0, nrcpts=1, msgid=<200904142012.n3EKCe6Z015941@atcpivrv01.na.convergys.com>, relay=root@localhost
Apr 14 16:12:40 atcpivrv01 sendmail[15941]: STARTTLS=client, relay=cvgmx2.convergys.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Apr 14 16:12:40 atcpivrv01 sendmail[15941]: n3EKCe6Z015941: to=root@localhost, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30072, relay=cvgmx2.convergys.com. [155.90.248.189], dsn=2.0.0, stat=Sent (Ok: queued as 7397E14F874D)
# cat /etc/mail/local-host-names
# local-host-names - include all aliases for your machine here.
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 12:19 PM
тАО04-14-2009 12:19 PM
Re: aliases issue using /etc/aliases
localhost
localhost.localdomain
localdomain
Otherwise, no mail will be delivered locally and will be passed to the smart host without any processing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 06:06 AM
тАО04-15-2009 06:06 AM
Re: aliases issue using /etc/aliases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 10:52 AM
тАО04-15-2009 10:52 AM