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


Click here to return to the 'another problem' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
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 | # ]