SUMMARY : Berkeley Sendmail not running as ROOT

From: Neil Movold <nmovold_at_bsl.bm>
Date: Sun, 18 Jun 1995 09:54:33 -0400 (EDT)

First of all I would like to thank the following people for their
responses :

        George W. Baltz
        John P. Speno
        Henk Mos
        Paul E. Rockwell
        Jeff C. Ollie
        Danny J. Mitzel

The problem was this :

I have created a Perl script which takes a mail message to an alias
called "support", passes a canned reply back to the sender, and sends the
actual message onto the support team at my company. When the Perl script
gets the mail and tries to use the Berkeley Sendmail V8.6.12 that I
installed in /usr/local/etc, I received the following messages in my
syslog mail log :

Jun 18 09:29:44 longtail sendmail[25656]: NOQUEUE: SYSERR(daemon):
queuename: Cannot create "qfJAA25656" in "/var/spool/mqueue" (euid=3):
Permission denied

Jun 18 09:29:44 longtail sendmail[24693]: NOQUEUE:SYSERR(daemon):
queuename: Cannot create "qfJAA24693" in"/var/spool/mqueue" (euid=3):
Permission denied


I checked all the permissions and they were identical to what the old
sendmail was in /usr/sbin.

Many people pointed at the permissions of the file and suggested that I
use chmod 4755 on the file, which I did.

However, nothing seemed to fix this problem until I noticed something
really simple, but never thought it would make any difference. I noticed
that when I did a "which sendmail" I found the original sendmail from
/usr/sbin and not /usr/local/etc, which is the one that I use now and
have indicated in my canned reply Perl script. Well, I went and renamed
the sendmail in /usr/sbin to something else. Then I used "which" again
and got the right sendmail. After this I tried to send mail again and
viola, everything works fine now.

I guess what is happening is that the POP3D daemon I am running must have
found the version of sendmail in /usr/sbin and tried to use it some how
before handing the message off to my canned reply script, which had the
version of sendmail it was using hard coded to use the Berkeley sendmail.

Thanks again for everyone's suggestions and comments.

                
                Neil :-)

                     \\\//
                     (o o)
------------------ooO-(_)-Ooo-----------------------------------------
Neil Movold Phone : +1 809 296-1800
Special Operations Consultant Fax : +1 809 295-7269
 ( i.e. the guy who has to
        make it all work :-) )
Internet (Bermuda) Limited E-mail : nmovold_at_ibl.bm
P.O. Box HM2445
Hamilton, Bermuda
HM JX
Received on Sun Jun 18 1995 - 15:35:58 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT