Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'I did it :)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I did it :)
Authored by: nsarup on Jun 05, '02 03:25:44PM

There is a little tidbit about sendmail on the front page of macfixit. Basicly it says to do what it says in the sendmail ReadMe. (Its in the /etc/mail/ directory)
Anyway, the bit that i did was this (Copyed from the README):

* cd to /usr/share/sendmail/conf/cf:
cd /usr/share/sendmail/conf/cf
* Copy the default config file to yourdomain.mc:
sudo cp generic-darwin.mc yourdomain.mc
* Edit your new config file:
sudo vi yourdomain.mc
* Regenerate your sendmail.cf file from the m4 file you just edited:
m4 ../m4/cf.m4 yourdomain.mc > /tmp/sendmail.cf
* Backup your old sendmail.cf:
sudo cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig
* Put your new sendmail.cf in place:
sudo cp /tmp/sendmail.cf /etc/mail/
* Restart sendmail

Thats it, I just restartet, couldnt kille the sendmail that was running for some reason. Of course change all instances of "yourdomain" to, yep, you guessed it ;)
Before I did this I tried almost anything to get it to work. Including the steps in the thread about sendmail in the macnn.com UNIX forum.
So, I dont know if just doing what it says in the read me will work for you, but try it anyway :)



[ Reply to This | # ]
I did it :)
Authored by: nsarup on Jun 05, '02 04:18:56PM

I sort of retraced my steps on my other comp. the instructions I gave in the previous post didnt work there. So I tried some of the other things I mentioned. Of course I wasnt smart enough to write them down while I did it ;)
Here is what I think I did, I know there must be a smarter way to do it:

Did the instructions in the README.

All of the below I did as root:

"chown smmsp:smmsp /var/spool/clientmqueue"
"chmod 770 /var/spool/clientmqueue"

(Changed the /etc/hostconfig file so the domain was the domain of the computer and mailserver was set to yesChanged the /etc/hostconfig file so the domain was the domain of the computer and mailserver was set to yes. Only necesarry if X wasnt set up as a mail server before)

"sendmail" put it in the background (crtl-z, and then "bg 1")
"/System/Library/StartupItems/Sendmail/Sendmail"

Now there is two sendmails running.
then I restarted. and everything works.

Hope this helps somebody :)



[ Reply to This | # ]
I did it :)
Authored by: aordway on Jun 05, '02 04:46:41PM
The other thing that you need to do is edit the new sendmail.cf file. You can see that hint at http://www.macosxhints.com/article.php?story=20020422090558990

[ Reply to This | # ]
I did it :)
Authored by: scotts on Jun 06, '02 01:37:42AM

For me these were required:
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

As well the niutil commands from the read me (/etc/mail/README) were required to get sendmail to look at my config:

niutil -create . /locations/sendmail
niutil -createprop . /locations/sendmail sendmail.cf /etc/mail/sendmail.cf

While not required to get sendmail working, I did rebuild my sendmail.cf file from the m4 file as it was working but with some errors.

[XXXXXXX:/etc] root# mail -vvv -s "More testing" root
this better work or its going in to the lake
.
EOT
Msmtp: Warning: first argument in [IPC] mailer must be TCP or FILE
Mesmtp: Warning: first argument in [IPC] mailer must be TCP or FILE
Msmtp8: Warning: first argument in [IPC] mailer must be TCP or FILE
Mdsmtp: Warning: first argument in [IPC] mailer must be TCP or FILE
Mrelay: Warning: first argument in [IPC] mailer must be TCP or FILE
Warning: .cf file is out of date: sendmail 8.12.2 supports version 10, .cf file is version 9

But after the errors the message was sent.

I would not recommend setting the don't blame sendmail option, this passage in the config file motivates me to look deeper and fix the cause.

# override file safeties - setting this option compromises system security,
# addressing the actual file configuration problem is preferred
# need to set this before any file actions are encountered in the cf file
#O DontBlameSendmail=safe

Hope This Helps; Scott



[ Reply to This | # ]