Re: sendmail alias error

From: Saxon, Lamar (Lamar.Saxon@AMERICREDIT.COM)
Date: Mon Jul 01 2002 - 17:09:55 EDT


Just as a side note on this, you can set the option in the /etc/aliases file
to automatically recompile the /etc/aliases file if it is out of date.
Automation is wonderful especially if you have a forgetful mind like me...

>From /etc/sendmail.cf ( AIX 4.3.3 )

# automatically rebuild the alias database?
O AutoRebuildAliases

Lamar

-----Original Message-----
From: justin.bleistein@SUNGARD.COM [mailto:justin.bleistein@SUNGARD.COM]
Sent: Monday, July 01, 2002 3:50 PM
To: aix-l@Princeton.EDU
Subject: Re: sendmail alias error

HERE IS A PROCEDURE BELOW I TYPED UP:

As you know after you edit the "/etc/aliases" file in AIX, you must enter
the command:

# sendmail -bi <ENTER>

to make the changes take affect. Sometimes you run into the following
error:

dbm map "Alias0": unsafe map file /etc/aliases
WARNING: cannot open alias database /etc/aliases
Cannot create database for alias file /etc/aliases: A system call received
a par
ameter that is not valid.

Or something along those lines. First thing to do when debugging this error
is to check the permissions on the following files make sure they have the
following access permission, owner, and group parameters set:

If those permissions are not set,

drwxr-xr-x 19 root system 3072 Jun 18 19:15 /etc
-rw-r--r-- 1 root system 1446 Jun 18 18:59 /etc/aliases
-rw-r--r-- 1 root system 0 Jun 18 19:13 /etc/aliases.dir
-rw-r--r-- 1 root system 1024 Jun 18 19:13 /etc/aliases.pag

If these permissions are not set, please set them for each of these
files/directories listed above. Then run the command again:

# sendmail -bi <ENTER>

If you still receive that error then remove the sendmail database files by
enter the following:

# rm /etc/aliases.dir <ENTER>
# rm /etc/aliases.pag <ENTER>

Now recreate them:

# newaliases <ENTER>

Now it should work!!

--Justin Richard Bleistein

                      Stephen Spalding
                      <ssaixadm@YAHOO.C To: aix-l@Princeton.EDU
                      OM> cc:
                      Sent by: IBM AIX Subject: sendmail alias
error
                      Discussion List
                      <aix-l@Princeton.
                      EDU>

                      07/01/2002 03:49
                      PM
                      Please respond to
                      IBM AIX
                      Discussion List

Hi all,

On some of my AIX 4.3.3 boxes, I get the following
message when I try to send an email:

dbm map "Alias0": unsafe map file /etc/aliases

What causes this, and what can I do to fix it?

Thanks!

-Stephen Spalding

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:02 EDT