- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Strange sendmail problem.
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
Forums
Discussions
Discussions
Discussions
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
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-20-2005 09:12 PM
04-20-2005 09:12 PM
I wonder if someone could help with a really odd sendmail problem.
I am trying to set up a mail alias for root as I wish to monitor system messages more carefully. I really dislike command line mail. This is not a problem and should be simple. Most UNIX pop3 programs disable any UID under 10 from accessing mail remotely because of security risks, which is ok. So I have added an alias to /etc/mail/ aliases. This is a simple entry “root : cjohnson”
At this point I run “newaliases” to update /etc/mail/aliases.db . Again this is very simple of course. I should get something like the following.
warning: /etc/mail/aliases has world read or write
permission. This is unsafe.
warning: /etc/mail/aliases.db has world read or write
permission. This is unsafe.
/etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
I actually get :-
db_map_open: cannot pre-open database /etc/mail/aliases.db: Permission denied
ndbm_map_open: cannot create database /etc/mail/aliases: Permission denied
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases: No such device
I am running this as root !!!
/etc/mail has the following attributes.
total 408
-rw-r----- 1 bin bin 882 Apr 20 14:54 aliases
-r--r--r-- 1 root sys 835 Apr 20 14:36 aliases.bak
-rw-r----- 1 root mail 32768 Dec 16 2002 aliases.db
-r--r--r-- 1 bin bin 10203 Oct 27 1997 mailcap
-r--r--r-- 1 root sys 77759 Oct 9 2002 sendmail.cf
-r--r--r-- 1 root sys 12760 Oct 9 2002 sendmail.cf.bak
-r--r--r-- 1 root sys 77759 Apr 11 2002 sendmail.cf.orig
-r--r--r-- 1 bin bin 702 Feb 6 2002 sendmail.cw
-r--r--r-- 1 bin bin 1002 Oct 27 1997 service.switch
System is HP/UX 11.00 running on an HP/9000 A class.
Cheer
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 09:18 PM
04-20-2005 09:18 PM
SolutionStop sendmail.
/sbin/init.d/sendmail stop
and start sendmail
/sbin/init.d/sendmail start
This will rebuild your aliases database. If it still doesn't work, remove the aliases.db file after stopping sendmail. and then start sendmail and check if newaliases are throwing errors.
Another way of routing the root's mail to cjohnson would be the use of .forward file in the root's home directory.
cat cjohnson > .forward
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 09:19 PM
04-20-2005 09:19 PM
Re: Strange sendmail problem.
I have the following for aliases* files:
-rw-r----- 1 root bin 835 Jan 4 2000 aliases
-rw-r----- 1 root bin 24576 Apr 20 16:45 aliases.db
-rw-r--r-- 1 root mail 0 Jan 4 2000 aliases.dir
-rw-r--r-- 1 root mail 1024 Jan 4 2000 aliases.pag
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 09:23 PM
04-20-2005 09:23 PM
Re: Strange sendmail problem.
Check this doc.
Document description: Sendmail: resolving permissions on sendmail configuration files
Document id: S1100003137
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063210491
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 09:24 PM
04-20-2005 09:24 PM
Re: Strange sendmail problem.
Kind Regards
Chris Johnson