Subject: sendmail trouble
To: None <port-mac68k@netbsd.org>
From: Shinya MATSUMOTO <shinya@food2.food.kyoto-u.ac.jp>
List: port-mac68k
Date: 05/27/2002 11:25:28
Hello everybody. I am a beginner in NetBSD. I am experiencing trouble 
concerning sendmail and hoping someone would help me.

I have installed NetBSD1.5.2 in SE/30 and set up sendmail and it was 
working very nicely until my machine suddenly started to show the following 
message:

>May 26 00:59:49 gang sendmai[187]: g40Nh3g01083: SYSERR(root): hash map 
>"Alias0": unsafe map file /etc/mail/aliases.db: World writable directory

This message appears on the display almost every 30 minutes. When I tried 
to send a mail to myself as follows, a similar message appears and mail 
delivery fails.

>gang% mail shinyam
>Subject: test
>test mail to myself
>^DEOT
>gang% hash map "Alias0": unsafe map file /etc/mail/aliases.db: World 
>writable directory

As I imagined that permission status of /etc/aliases.db might be the cause 
of the trouble, I changed its permission from -rw-r--r-- to -r--r--r--, but 
it did not improve the situation.

>gang% lla /etc/mail
>total 88
>drwxr-xr-x   2 root  wheel    512 Apr 30 02:49 .
>drwxr-xr-x  17 root  wheel   2048 May 26 00:59 ..
>-rw-r--r--   1 root  wheel   1325 May  1 01:25 aliases
>-r--r--r--   1 root  wheel  32768 May  2 00:39 aliases.db
>-r--r--r--   1 root  wheel   5568 Mar 10  2001 helpfile
>-r--r--r--   1 root  wheel  46064 Aug 22  2001 sendmail.cf

The trouble started after I installed apache1.3.24 and perl-5.6.1, but I do 
not know if these are the cause. Again, the mail system was running OK 
until suddenly started to fail with concomitant appearance of the message 
and I do not remember I have done anything except installing the above 
softwares.
I would be very pleased if anyone would provide me the way to solve the 
trouble and also how this was induced. Thank you very much.

Shinya Matsumoto