Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sendmail issues



> My internet service provider will not allow me to send mail directly
> from my box to other servers so I need to use SMART-HOST or something
> akin to this in my .mc file Several people have recommended the
> masquerading pages at sendmail.org however, these aren't making a whole
> lot of sense to me. In essence, I need sendmail to use
> smtp.mindspring.com instead of attempting to send the mail itself.

Search your Sendmail.cf file for DS and $S.
Example:
Define(`SMART_HOST', `smtp.mindspring.com')

Search google for smart host sendmail.cf for more information about this.

> Number 2 is a permissions problem.
>
> Previously, when I first completed the Oreilly tutorial on setting up
> sendmail, I would attempt to do
>
> %mail email@hidden
> Subject: Test
> Test
> (Ctrl+D)
>
> and get the resulting errors:
> collect: Cannot write ./dfg817W7pZ003173 (bfcommit, uid=501, gid=25):
> Permission denied

Type this command in the Terminal:
ls -l /var/spool
Output should look like this:
[Tor:/var/spool] tor% ls -l /var/spool
total 0
drwxrwxr-x 2 daemon daemon 68 Jul 14 08:20 Faxes
drwxrwx--- 24 smmsp smmsp 816 Sep 2 10:47 clientmqueue
drwx------ 29 daemon admin 986 Aug 30 14:37 cups
drwxr-xr-x 2 root wheel 68 Aug 28 04:03 lock
drwxr-x--- 2 root wheel 68 Aug 29 15:17 mqueue

I'm not sure this is your problem though, it seems like sendmail is running
with uid 501 and not uid 25.
[Tor:/private] root# ls -l /usr/sbin/sendmail
-r-sr-xr-x 1 root smmsp 581448 Jul 28 04:54 /usr/sbin/sendmail

Notice character number 4. If you don't have that 's' there, issue this
command:
'chmod u+s /usr/sbin/sendmail'

> In an effort to get around this problem, I opened up access to
> /var/spool/*queue to a+rwx

I don't think that is such a good idea.

> This resulted in me being able to perform the above mail command, but
> nothing was ever delivered. Instead I would get back some cruft in my
> local mailbox with what looked like standard undeliverables.
>
> tail -f /var/log/mail.log would then contain stuff like:
>
> Sep 1 18:22:32 coalmarch sendmail[4183]: g81MMVmF004181:
> to=email@hidden, ctladdr=tingham (501/20), delay=00:00:01,
> xdelay=00:00:01, mailer=esmtp, pri=30044, relay=mx06.mindspring.com.
> [207.69.200.239], dsn=5.0.0, stat=Service unavailable

% mail -v username@host # is a good to see what happens between the
SMTP-servers when try to send a mail. -v is for verbose mode.

> Now, when I perform the %mail function listed above I get output
> similar to
>
> Sep 1 18:22:32 coalmarch sendmail[4183]: g81MMVmF004181:
> to=email@hidden, ctladdr=tingham (501/20), delay=00:00:01,
> xdelay=00:00:01, mailer=esmtp, pri=30044, relay=mx06.mindspring.com.
> [207.69.200.239], dsn=5.0.0, stat=Service unavailable
> Sep 1 18:22:32 coalmarch sendmail[4183]: g81MMVmF004181: forward
> /Users/tingham/.forward.coalmarch+: Group writable directory

'sudo chmod g-w /' # Check the O'Reilly tutorial for automating this on each
boot.

> The overwhelmingly confusing point being that I see "stat=Sent" and
> think that the message has been delivered. This however as you can
> imagine is not the case, and now I am afraid that I am so lost that I
> cannot find points where I might be able to detail a single point of
> the process I've been through to anyone that might know how to set up
> sendmail from scratch.

I did once create a sendmail.cf file from scratch :)
But, there seems to be so many different 'gotcha's' with sendmail that it's
making me dizzy :)
I bought the O'Reilly Sendmail book which was good, but it didn't cover all
these permissions problems that arise.

> I beg of you, if you've gotten sendmail running under osx jaguar,

I had, but suddenly it was broken again :(
[Tor:/private] root# sendmail -bd -q1h
451 4.0.0 /etc/mail/sendmail.cf: line 93: fileclass: cannot open
'/etc/mail/local-host-names': World writable directory
[Tor:/private] root# ls -l /etc/mail/local-host-names
-rw-rw-r-- 1 root wheel 26 Aug 29 11:25 local-host-names
[Tor:/etc] root# ls -l | grep mail
drwxr-xr-x 9 root wheel 306 Aug 29 10:45 mail

<sigh>

Maybe someone more enlightened could offer us both some advice?

Tor
_______________________________________________
darwin-userlevel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-userlevel
Do not post admin requests to the list. They will be ignored.

References: 
 >Sendmail issues (From: Thomas Ingham <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.