Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 07-21-2003, 01:08 PM   #1
djn1
MVP
 
Join Date: Apr 2002
Location: UK
Posts: 1,212
Sendmail: "unsafe map file" query

Does anyone know what this means:
Code:
Jul 21 18:25:17 djn1 sendmail[3851]: h6LHPHAP003851: SYSERR(root): hash map 
"access": unsafe map file /etc/mail/access.db: World writable directory
I assumed, when this popped up in my system.log, that I would probably have to re-enable Sendmail but restarting it (sudo /System/Library/StartupItems/Sendmail/Sendmail restart) seems to have fixed the problem. However, having had previous problems with Sendmail, I'm assuming that the error may be indicative of some other problem so thought I'd ask if anyone could offer a simple explanation. The only troubleshooting I've tried is checking permissions (which are all ok) and googling (which didn't produce anything I could understand).

Any thoughts appreciated.
__________________
chromasia

G4/800, OS 10.3.x, 1.25GB RAM, 2x80GB HD, 60GB firewire, Geforce4MX, Iiyama VMpro 455+413
Goldtouch keyboard, Cirque EasyCat trackpad, D-Link DSL-604+
djn1 is offline   Reply With Quote
Old 07-21-2003, 01:57 PM   #2
breen
Major Leaguer
 
Join Date: Jan 2003
Location: Bay Area
Posts: 327
What permissions did you check? sendmail will complain if /etc is group-writable, IIRC.

Breen
breen is offline   Reply With Quote
Old 07-21-2003, 02:12 PM   #3
djn1
MVP
 
Join Date: Apr 2002
Location: UK
Posts: 1,212
Quote:
Originally posted by breen
What permissions did you check? sendmail will complain if /etc is group-writable, IIRC.

I ran Disk Utility to check permissions. And /etc shows as:
Code:
drwxr-xr-x  80 root  wheel  2720 Jul 16 11:16 etc
I initially set up Sendmail using the O'Reilly article and - since I last set it up a few moths ago - have had no problems with it. And, as I mentioned above, since restarting it, it works fine - I've tested it by sending mail internally and to external addresses. The upshot of which is I'm a bit confused as to what the problem was/is.
__________________
chromasia

G4/800, OS 10.3.x, 1.25GB RAM, 2x80GB HD, 60GB firewire, Geforce4MX, Iiyama VMpro 455+413
Goldtouch keyboard, Cirque EasyCat trackpad, D-Link DSL-604+
djn1 is offline   Reply With Quote
Old 07-30-2003, 01:03 AM   #4
XSage
Prospect
 
Join Date: May 2003
Location: Bedford, MA
Posts: 8
Okay, /etc is fine... what about /etc/mail?

Actually, there are a bunch of places where sendmail can get screwed up.

My favorite hammer for this particular problem is this:

Code:
    chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
    chown root / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
Although I'm not sure if these are firstaid's prefered settings, the system seems to work fine this way.

Hope this helps,
~XSage
XSage is offline   Reply With Quote
Old 07-30-2003, 01:49 AM   #5
djn1
MVP
 
Join Date: Apr 2002
Location: UK
Posts: 1,212
Re: Okay, /etc is fine... what about /etc/mail?

Quote:
Originally posted by XSage
Although I'm not sure if these are firstaid's prefered settings, the system seems to work fine this way.

Thanks for the suggestions, I'll bear them in mind for when it next keels over.
__________________
chromasia

G4/800, OS 10.3.x, 1.25GB RAM, 2x80GB HD, 60GB firewire, Geforce4MX, Iiyama VMpro 455+413
Goldtouch keyboard, Cirque EasyCat trackpad, D-Link DSL-604+
djn1 is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:30 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.