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


Click here to return to the 'It worked! [fix dosn't work]' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
It worked! [fix dosn't work]
Authored by: protoplasm on Jun 06, '02 04:29:08PM

Thanks ppmax.

After I updgraded to 10.1.5 my sendmail broke. I made the group and ownership changes posted on the initial post but this didn't work. When I restarted sendmail I received this error:

Starting mail services
user@[/usr/local/bin]: 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

Yuck. Following your instructions worked, however. One change though in step 4: You said, " /Library/StartupItems/Sendmail/Sendmail ". This should be /System/Library/StartupItems/Sendmail/Sendmail.

Have a great day!



[ Reply to This | # ]
Re: It worked! [fix dosn't work]
Authored by: haumann on Jun 06, '02 05:18:04PM

That begins to answer a question. I've started getting the same six "... mailer must be TCP or FILE" warnings when running the daily cron script under 10.1.5. But how does one rebuild a sendmail config file to fix the issue?



[ Reply to This | # ]
Re: It worked! [fix doesn't work]
Authored by: RiotNrrrd on Jun 06, '02 05:35:27PM

Read /etc/mail/README to rebuild your /etc/mail/sendmail.cf file to be version 8.12.2.

Or check MacFixIt for my posting yesterday on this very same topic.



[ Reply to This | # ]
Oops! I just found it
Authored by: haumann on Jun 06, '02 05:39:32PM

Sorry, my bad. I found the key reply message above.



[ Reply to This | # ]
another problem
Authored by: protoplasm on Jun 06, '02 05:58:15PM
From the cmd line I type: mail -s "test message" protoplasm@ozone.com
message blah blah
^D


It returns: send-mail: setgroups: Operation not permitted
/Users/protsman/dead.letter... Saved message in /Users/protsman/dead.letter


I look in /var/log/mail.log and find this:

Jun 6 16:39:06 legolas sendmail[336]: g56Ld0pL000336: to=protoplasm@ozone.com, ctladdr=protplasm (501/20), delay=00:00:06, xdelay=00:00:00, mailer=relay, pri=30044, relay=localhost, dsn=5.1.2, stat=Host unknown (Name server: localhost: host not found)

Anyone know what went wrong? (it worked before 10.1.5). Looking at an old log (before 10.1.5 update) I see a few differences. First, mailer in the old log says 'mailer=esmtp'; and second, relay says 'relay=smtp-mx.ozone.com'; and third, dsn says 'dsn=2.0.0'. And, of course, stat equals Sent in the old log.

Any ideas why these are different? What did I miss?

[ Reply to This | # ]
another problem -- update
Authored by: protoplasm on Jun 06, '02 06:49:45PM
A clarification ... it looks like this is supposed to happen due to tighter security (perhaps???). Sending mail from the cmd line fails. However, sending mail from a client (Mail.app, GNUMail.app) also returned an error. So, I modified my Sendmail script (/System/Library/StartupItems/Sendmail/Sendmail). I changed this line: /usr/sbin/sendmail -C /etc/mail/submit.cf -q1h & to this: /usr/sbin/sendmail -bd -q1h & So, I can now finally send email (again). I'm not certain why the first config doesn't work though.

[ Reply to This | # ]
Same here
Authored by: Anonymous on Jun 18, '02 09:04:31PM

I've been hacking the hell out of all the sendmail-related files I can find, wildly guessing at what their owners, groups, and perms should be. I now have something with the minimal errors, but unfortunately it's the most cryptic.

send-mail: setgroups: Operation not permitted /Volumes/docs/joe/dead.letter... Saved message in /Volumes/docs/joe/dead.letter

Wonderful. I have *no* clue what's happening here. setgroups (in the manpage) is a function to set the current program's group id. This looks like sendmail trying to sgid itself. Unfortunately, setgroups fails if the caller is not root - which it *should be* in the case of sendmail! Something is odd somewhere. I'm going to triple-check ownership and bits on the sendmail binary...

Oh, and somewhere along the way I lost those excessive "mailer must be TCP or FILE" warnings. I don't know how I did it, but they've disappeared. Good riddance.



[ Reply to This | # ]