Great Circle Associates Majordomo-Users
(June 2001)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Install problem with majordomo.aliases
From: Dan Liston <dliston @ netscape . com>
Organization: iPlanet eCommerce Solutions, A Sun|Netscape Alliance
Date: Wed, 27 Jun 2001 22:28:20 -0500
To: adelaide . yip @ compeng . net
Cc: majordomo-users @ GreatCircle . COM
References: <01062711402602.04182@goodman.millwoods.compeng.net>

This is a "sendmail" error message, not majordomo.  Sendmail does not let you
use "group writable" directories for aliases files.  There are several ways
to fix (work around) this security requirement.

1.  Put your majordomo.aliases file in a place sendmail considers safe.
	(/etc/mail)
2.  Create a link (owned by root) to your majordomo.aliases in a place that
sendmail considers safe.
	(/etc/mail)
3.  Change sendmail's security so that group writable directories are allowed.
	(very BAD idea)

All three options above require modifying sendmail.cf.

Dan Liston

Adelaide Yip wrote:
> 
> Hi,
> 
> I got the same error as you, and I'm interested in how you went about in fixing
> the problem.
> 
> This is what i get:
> 
> [root@brubeck /etc]# newaliases
> hash map "Alias2": unsafe map file /usr/lib/majordomo/majordomo.aliases.db: Permission denied
> WARNING: cannot open alias database /usr/lib/majordomo/majordomo.aliases
> Cannot create database for alias file /usr/lib/majordomo/majordomo.aliases
> /etc/aliases: 25 aliases, longest 150 bytes, 734 bytes total
> hash map "Alias1": unsafe map file /usr/lib/majordomo/majordomo.aliases.db: Permission denied
> WARNING: cannot open alias database /usr/lib/majordomo/majordomo.aliases
> Cannot create database for alias file /usr/lib/majordomo/majordomo.aliases
> 
> I am using Majordomo 1.94.5 on Redhat Linux 6.2, using sendmail 8.9.3-20 and
> Perl 5.003.
> 
> TIA,
> Adelaide
> 
> On Wed, 27 Jun 2001, you wrote:
> > Sorry, I sent the last message too soon. I forgot to tell you something -
> > I made some changes and the response I get now when I enter newaliases is:
> >
> > [root@sesgweb mail]# newaliases
> > WARNING: Group writable directory /home/mcuadm
> > WARNING: Group writable directory /home/mcuadm/src
> > newaliases: cannot open /home/mcuadm/src/majordom/majordomo.aliases: Group
> > writable file
> > /etc/aliases: 15 aliases, longest 49 bytes, 226 bytes total
> > newaliases: cannot open /etc/mail/majordomo.aliases: Group writable file
> >
> > I don't get the "hash map "Alias2": unsafe map file..." error anymore.
> > Thanks for your help,
> > Diana
> >
> > Daniel Liston wrote:
> >
> > > What are the ownership and permissions on the link you created?
> > > Are you running on a hosted service?  Have you tried the RPM install?
> > > You could save yourself lots of these problems by using the RPM if
> > > you own the machine you are installed on.
> > >
> > > Dan Liston
> > >
> > > Diana Mateja wrote:
> > > >
> > > > I am having a problem installing majordomo.  Here is my system info:
> > > > Majordomo Version: 1.94.5
> > > > Perl version 5.00503
> > > > OS: Linux2.2.18
> > > > Mailer: Sendmail8.8.7
> > > >
> > > > I made it to the last step where I issued the 'lists' command -
> > > > 10. Test the configuration again by creating an empty file 'test' in
> > > > $listdir, and issue a 'lists' command to Majordomo:
> > > >    % touch /path/to/majordomo/lists/test
> > > >    % echo 'lists' | mail majordomo
> > > >
> > > > I get the following error -
> > > > [root@sesgweb lists]# hash map "Alias1": unsafe map file
> > > > /home/mcuadm/src/majordom/majordomo.aliases.db: Group writable directory
> > > >
> > > > So I looked through the archives and found that many have problems at
> > > > this step and I found one that was similar to mine but the response for
> > > > that one did not work for me.
> > > >
> > > > Someone else reported the error -
> > > > Issuing an echo lists | mail majordomo on my fBSD 3.3 system
> > > > with sendmail returns this error:
> > > >
> > > > % Cannot open hash database /opt/majordomo.aliases.db:
> > > > Inappropriate file type or format
> > > > --------------------
> > > > The response he got was -
> > > >
> > > > Most likely, your separate aliases file for majordomo is
> > > > not located in a sendmail safe directory or owned by root.
> > > > Try creating a link from /opt/majordomo.aliases to /etc/mail
> > > > and in your sendmail.cf use that link as an additional
> > > > aliases file.
> > > >
> > > > As root do;
> > > > `ln -s /opt/majordomo.aliases /etc/mail`   (I used my own pathname.)
> > > > In sendmail.cf
> > > > # location of alias file
> > > > O AliasFile=/etc/aliases, /etc/mail/majordomo.aliases
> > > >
> > > > Restart sendmail
> > > > Maybe `newaliases` or `sendmail -bi`
> > > > ---------------
> > > > This worked for him but when I restart sendmail.  This is what I get:
> > > > [root@sesgweb mail]# newaliases
> > > > WARNING: Group writable directory /home/mcuadm
> > > > WARNING: Group writable directory /home/mcuadm/src
> > > > hash map "Alias2": unsafe map file
> > > > /home/mcuadm/src/majordom/majordomo.aliases.db: Group writable directory
> > > >
> > > > WARNING: cannot open alias database
> > > > /home/mcuadm/src/majordom/majordomo.aliases
> > > > Cannot create database for alias file
> > > > /home/mcuadm/src/majordom/majordomo.aliases
> > > > /etc/aliases: 15 aliases, longest 49 bytes, 226 bytes total
> > > > /etc/mail/majordomo.aliases: 19 aliases, longest 121 bytes, 1131 bytes
> > > > total
> > > >
> > > > I am not a sys admin so I don't understand these errors.
> > > > Can someone help?
> > > > Diana
> -------------------------------------------------------



References:
Indexed By Date Previous: Re: majordomo confirmation of new subscriptions
From: Dan Liston <dliston@netscape.com>
Next: sent messages go to list file not out to list members ???
From: Richard McElroy <richard@doubleyou.com>
Indexed By Thread Previous: Re: Install problem with majordomo.aliases
From: "Diana Mateja" <rwsp50@email.sps.mot.com>
Next: Installation problems!!
From: Balaji A <BalajiA@PLANETASIA.COM>

Google
 
Search Internet Search www.greatcircle.com