image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
LinkBack Thread Tools
  #1  
Old March 24th, 2001, 02:51 PM
Registered User
 
Join Date: Dec 2000
Location: Saint Paul, MN
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
sepia is on a distinguished road
Wink

Never had problems with this on PB, but I've got the final now and it's really frustrating me.

Sendmail won't start. It keeps telling me that /etc/mail/local-host-names is in a group writable directory. Changing the permissions doesn't do a thing.

This question has been posted before, but with no good response. Any ideas?
Reply With Quote
  #2  
Old March 24th, 2001, 06:20 PM
Registered User
 
Join Date: Nov 2000
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
ChrisL is on a distinguished road
Its the root ( / ) directory that is group writable. You can change it to mode 755 and fix the problem with:

chmod 755 /

(as root). But You'll need to be root to add directories or create files now (not just admin priviledges.

Another option would be to add the conf DONT_BLAME_SENDMAIL to your m4 config file.

I myself am trying to figure out why it won't receive mail.

Reply With Quote
  #3  
Old March 24th, 2001, 10:19 PM
Registered User
 
Join Date: Mar 2001
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
gdif is on a distinguished road
Why it's not receiving mail

It's not working because it's sleeping. Check your /var/log/mail.log and you'll see entries like this:

Mar 24 19:52:15 localhost sendmail[1700]: My unqualified host name (localhost) unknown; sleeping for retry
Mar 24 20:01:00 localhost sendmail[1741]: My unqualified host name (localhost) unknown; sleeping for retry
Mar 24 20:03:23 localhost sendmail[1749]: My unqualified host name (localhost) unknown; sleeping for retry
Mar 24 20:13:35 localhost sendmail[1772]: My unqualified host name (localhost) unknown; sleeping for retry


Damned if I can figure out how to fix it though. Nothing I've done seems to work.

--gdif
Reply With Quote
  #4  
Old March 25th, 2001, 09:00 AM
Registered User
 
Join Date: Dec 2000
Location: Saint Paul, MN
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
sepia is on a distinguished road
Yes, I got sendmail to start listening by chmod'ing the root directory. (Figured it out shortly after posting my first message.)

Now it won't recognize emails to users. (User unknown error.) I've got the domain in my local-host-names file. I'll try the relay-domains file now, but that seems wrong...
Reply With Quote
  #5  
Old March 25th, 2001, 10:43 AM
Registered User
 
Join Date: Mar 2001
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
gdif is on a distinguished road
no route to host

Well, I did the chmod, that fixed that problem. Found where to put the domain name (/etc/hostconfig) but now any mail I try to send gets "no route to host" errors generated in mail.log.

What's odd about that is that the error has the domain name and the ip address of the host, but then it says it can't get there.

Thoughts?

--gdif
Reply With Quote
  #6  
Old March 25th, 2001, 02:00 PM
Registered User
 
Join Date: Sep 2000
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
stovak is on a distinguished road
Question I had this problem with the PB

I had this SENDMAIL problem with the pubic beta. Occasionally I would send an email and for some reason, Sendmail would have problem looking up localhost. I never solved it, but I noticed I didn't have it after I started doing my own DNS locally. Getting named running on the machine seemd to satisfy this error.
Reply With Quote
  #7  
Old March 25th, 2001, 11:28 PM
Registered User
 
Join Date: Nov 2000
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
ChrisL is on a distinguished road
Solved a number of problems, although perhaps non-conventionally.

First things first, /etc/mail/local-host-names _has to_ contain the domain(s)/host(s) for which you are receiving mail.

Next, although not entirely necessary, sendmail complains a lot less and starts up faster if your hostname is set. You can set it manually with "hostname your.hostname.here.com", or perhaps in /etc/hostconfig under the "HOSTNAME=" line. I haven't rebooted yet to verify this, but from the /System/Library/Startup/Network script seems to verify this. It'll sleep and retry if you don't, but eventually it'll startup for queing.

After a few frustrating hours trying to figure out why "mail.local" didn't have the correct permissions to write to /var/mail, I got it to work by making it setuid root (ie: chmod u+s /usr/sbin/mail.local). Now, this probably isn't the greatest idea, but it did deliver mail. I recompiled the latest sendmail (8.11.3) just to be sure that it wasn't an Apple problem, and the same thing is required for that build. It talks about some different compile options for SYS V based Unixes, but BSD is not, so I would think they don't apply.

A more desirable solution for me was to compile and install procmail (www.procmail.org) and enable it as the local mail delivery agent in the sendmail.cf file. For my installation, the following config options in the .m4 file did the trick:

define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')
FEATURE(local_procmail)

Or, alternatively, you can edit the Mlocal file in /etc/mail/sendmail.cf similar to the following:

Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
A=procmail -Y -a $h -d $u

Hope this saves some time for some people.

Reply With Quote
  #8  
Old April 3rd, 2001, 08:56 AM
Zim Zim is offline
Registered User
 
Join Date: Oct 2000
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Zim is on a distinguished road
Still having troubles with sendmail, why is hostname needed?

First question... is the definitive test that one can telnet to port 25?
(using 127.0.0.1)? ie. if your ISP blocks incoming port 25, will that be a local loopback before it can get blocked? (I'm assuming yes).

Ok, what I have tried so far from tips I have seen....

- I have done a chmod 755 on /
- I have changed /etc/hostconfig to read
hostconfig:MAILSERVER=-YES-
- I have done a chmod 755 on /private/etc (this cleared up a LOT
of msgs in /var/logs/mail.log)

my permissions....

top level: drwxr-xr-x 30 root admin 976 Apr 3 09:37 .

lrwxr-xr-x 1 root admin 11 Apr 3 09:37 etc -> private/etc
drwxr-xr-x 7 root wheel 264 Apr 3 09:38 private

in private:
drwxr-xr-x 70 root wheel 2336 Apr 2 20:17 etc


At this point my /var/logs/mail.log has

Apr 3 09:46:11 localhost sendmail[225]: My unqualified host name (localhost) unknown; sleeping for retry

Now I do have a dyndns acct, or should I use my Roadrunner, but then that really doesn't have a hostname, does it? Exactly what does sendmail need the hostname for?

What I'm trying to accomplish.... I'm a dinosaur, I admit it. I am thrilled to finally have unix on my Mac. I love both the cli and the gui. finally they are unified.

I'm trying to consolidate my mail accts. One thing I value tho is being to get to mail mail from virtually anywhere any time. Also I want to consolidate mail from several accts I have.

So I want to run fetchmail to grab my mail from various points and it passes mail off to sendmail (hence my need for sendmail as a delivery agent?) into /var/mail/$USER. From there I will use elm (told you I'm a dinosaur), which I finally got to compile. Its important to me NOT to need a gui. Yes I'm sure there are plenty of GUI mail programs that can fetch from multiple accts, but I want something simple.

Anyway, I cannot telnet to 25 yet (host refused connection), and a ps-auxww shows no sendmail process running.

Using procmail as the MTA for fetchmail is another option I suppose, but I'd like to at least understand how to get sendmail working and go from there.

Thanks for any help,
Mike

Reply With Quote
Reply

Bookmarks

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail - temp sys failure... djosifovich Unix & X11 2 December 28th, 2002 09:52 PM
MS Exchange >> Sendmail didde Unix & X11 5 October 9th, 2002 02:30 PM
sendmail not working? simX Unix & X11 1 July 13th, 2002 01:09 PM
sendmail related woes evoangelist Mac OS X System & Mac Software 4 May 29th, 2002 07:27 PM
sendmail & cable router beef Mac OS X System & Mac Software 8 September 13th, 2001 02:28 AM


All times are GMT -5. The time now is 09:26 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1
Copyright 2000-2010 DigitalCrowd, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52