Enabling Local sendmail (10.2 - m4 prob?)

Ghent

Registered
I'm trying to enable sendmail on my newly installed OS 10.2

With the instructions I found here:
http://www.macdevcenter.com/pub/a/mac/2002/06/07/sendmail_1015.html
and at /etc/mail/README

I get stuck when it asks me to:
m4 ../m4/cf.m4 yourdomain.mc > /tmp/sendmail.cf

I get the error message:
m4: Command not found

typing "whatis m4", it tells me its a macro language. Why can't I run this? Any thoughts?

If not, any other ways I can get sendmail going locally?
 
m4 is a macro preprocessor that is usually part of the C compiler too, among other tasks. It lives, in Jaguar, in /usr/bin:
Code:
$ [b]file /usr/bin/m4[/b]
/usr/bin/m4: Mach-O executable ppc
since you can't get it to work and it's in what I consider a pretty normal directory, perhaps you have a PATH that needs updating? Also, I installed the BSD package and the DeveloperTools when I installed Jaguar: it's possible that m4 is part of one of those rather than part of the default Jag install.
 
One other thing I found needed to be done: you need to change the permissions of both / and /etc, even if you add the DontBlameSendmail line to the .cf file. Here's what happened when I did exactly what Chris suggested on the ORA site:
Code:
$ [b] sendmail -v taylor[/b]
/etc/mail/sendmail.cf: line 93: fileclass: cannot open '/etc/mail/local-host-names': Group writable directory
So I looked and found that both / and /etc were group writeable. I fixed that with:
sudo chmod g-w / /etc and then it all seems to be just fine:
Code:
$ [b]sendmail -v [email]taylor@intuitive.com[/email]
Subject: testing

hi
.[/b]
[email]taylor@intuitive.com[/email]... Connecting to vps.intuitive.com. via esmtp...
220 intuitive.com ESMTP Sendmail 8.11.6 ready at Fri, 30 Aug 2002 21:34:06 -0600 (MDT)
>>> EHLO osxbox.attbi.com
250-intuitive.com Hello 12-253-112-122.client.attbi.com [12.253.112.122], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> MAIL From:<taylor@osxbox.attbi.com> SIZE=24
250 2.1.0 <taylor@osxbox.attbi.com>... Sender ok
>>> RCPT To:<taylor@intuitive.com>
250 2.1.5 <taylor@intuitive.com>... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 g7V3Y6h88855 Message accepted for delivery
[email]taylor@intuitive.com[/email]... Sent (g7V3Y6h88855 Message accepted for delivery)
Closing connection to intuitive.com.
>>> QUIT
221 2.0.0 intuitive.com closing connection
My only question: have I broken anything else by changing the directory permissions for both / and /etc????
 
Back
Top