- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail - Alias0; missing map file /etc/mail/alia...
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
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
тАО08-16-2001 08:00 AM - last edited on тАО02-28-2013 06:28 PM by Maiko-I
тАО08-16-2001 08:00 AM - last edited on тАО02-28-2013 06:28 PM by Maiko-I
Sendmail - Alias0; missing map file /etc/mail/aliases
I'm in the process of updating sendmail to 8.11.5 and I am having issues with the aliases file. The upgrade is basically complete and I am able to mail to fully resolved addresses (i.e., user@system.com) but not an alias. When mail is sent to an alias, I get the error:
dbm map "Alias0": missing map file /etc/mail/aliases
According to the documentation and information from the FAQs at sendmail.org, the error is a result of improper security settings. However, following the documentation and FAQs at sendmail.org, I ran:
chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
chown root chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
and the alias file permissions are:
-rw-r--r-- 1 root bin 1416 Aug 15 20:35 aliases
-r--r--r-- 1 bin bin 32768 Aug 15 12:47 aliases.db
I did find a reference to the new version not liking .forward files, so I removed them and added the users to the alias file.
I can't find any other references for other issues that might be causing the error at sendmail.org, in the README files or in my O'Reilly sendmail book.
Any assistance is greatly appreciated.
P.S. this thread has been moved from HP-UX > General to HP-UX > messaging - HP Forums Moderator
- Tags:
- sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 08:14 AM
тАО08-16-2001 08:14 AM
Re: Sendmail - Alias0; missing map file /etc/mail/aliases
# newaliases
dbm map "Alias0": unsafe map file /etc/mail/aliases: Permission denied
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 09:15 AM
тАО08-16-2001 09:15 AM
Re: Sendmail - Alias0; missing map file /etc/mail/aliases
drwxr-xr-x 2 root root /etc/mail
-rw-r--r-- 1 root root /etc/mail/aliases
-rw-r--r-- 1 root root /etc/mail/aliases.db
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 09:35 AM
тАО08-16-2001 09:35 AM
Re: Sendmail - Alias0; missing map file /etc/mail/aliases
All the permissions seem ok but the group for /etc/mail/aliases.db should be mail
The permissions should be (644)
owner root
group mail
-rw-r--r-- root:root aliases
-rw-r--r-- root:mail aliases.db
-HTH
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 08:53 PM
тАО08-16-2001 08:53 PM
Re: Sendmail - Alias0; missing map file /etc/mail/aliases
dbm map "Alias0": unsafe map file /etc/mail/aliases: Permission denied
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 09:11 PM
тАО08-16-2001 09:11 PM
Re: Sendmail - Alias0; missing map file /etc/mail/aliases
bin:bin /etc/mail
alias.db should have the group as mail.
How about renaming aliases.db and running
newaliases again and see what happens?.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 09:12 PM
тАО08-16-2001 09:12 PM
Re: Sendmail - Alias0; missing map file /etc/mail/aliases
bin:bin /etc/mail
aliases.db should have the group as mail. Read permissions for others is sufficnet for aliases file.
How about renaming aliases.db and running
newaliases again and see what happens?.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2001 11:22 PM
тАО08-16-2001 11:22 PM
Re: Sendmail - Alias0; missing map file /etc/mail/aliases
_______________________________________________
unsafe map file /etc/mail/aliases:
With the latest sendmail release many people get an error message like:
unsafe map file /etc/mail/aliases
(or another map). There may be several reasons for this, the most common is that the permissions of the directories leading to the alias file are incorrect. It must be:
drwxr-xr-x 12 root staff 3072 Nov 20 10:47 /etc/
drwxr-xr-x 4 root staff 1024 Dec 21 16:40 /etc/mail/
i.e., the directory must be owned by root and not writable by the group or the rest of the world. The alias file itself must have similar permissions. Moreover, if you have a db map, you may try to touch the resulting map (file.db) and call makemap or newaliases thereafter.
See the release notes for further details. /usr/lib/sendmail -bi -d44.4 gives some debug output for the alias map.
_______________________________________________
Am I allowed to give myself points? Or do I get negative numbers for posting my own answer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2001 03:36 AM
тАО08-17-2001 03:36 AM
Re: Sendmail - Alias0; missing map file /etc/mail/aliases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2013 10:50 PM
тАО02-27-2013 10:50 PM
Re: Sendmail - Alias0; missing map file /etc/mail/aliases
Please find the below steps
1)Pls copy from working file of /etc/mail/aliases or copy &past below entries
##
# Sendmail Alias File
# @(#)B11.23_LRaliases $Revision: 1.1.212.1 $ $Date: 99/09/13 15:13:16 $
#
# Mail to an alias in this file will be sent to the users, programs, or
# files designated following the colon.
# Aliases defined in this file will NOT be expanded in headers from
# mailx(1), but WILL be visible over networks and in headers from
# rmail(1).
#
# >>>>>>>>>> The program "/usr/sbin/newaliases" must be run after
# >> NOTE >> this file is updated, or else any changes will not be
# >>>>>>>>>> visible to sendmail.
##
# Alias for mailer daemon
MAILER-DAEMON : root
# RFC 822 requires that every host have a mail address "postmaster"
postmaster : root
# Aliases to handle mail to msgs and news
nobody : /dev/null
# System Admistration aliases
operator : root
uucp : root
daemon : root
# Ftp maintainer.
ftp-bugs : root
# Local aliases
2)chown bin:mail /etc/mail/aliases
3)chown root:bin /usr/sbin/newaliases
4)chown root:mail /etc/mail/aliases.db
5)/sbin/init.d/sendmail stop
6)/sbin/init.d/sendmail start