Kevin Druet <[EMAIL PROTECTED]> writes:

> I am totaly stumped here is the sendmail.mc file I am using to
> generate the sendmail.cf file,
> 
> 
> include(`/usr/lib/sendmail-cf/m4/cf.m4')
> VERSIONID(`linux setup for RH7 + FreeVSD')dnl
> OSTYPE(`linux')
> define(`LOCAL_MAILER_FLAGS', `-S')dnl
> define(`LOCAL_MAILER_ARGS', `procmail -a $h -d &u')dnl
> define(`confDEF_USER_ID',``admin:mail'')dnl
> define(`confRUN_AS_USER',`admin')dnl

The insufficient privilege error occurs because of the user that sendmail
is running as.  If you modify the config so that

   O TrustedUser=admin
   O RunAsUser=root
   O DefaultUser=admin

Then that should fix (or at least go a very long way towards fixing) your
problem.

Ensure correct directory permissions with:
  $ chown root.mail /var/spool/mqueue
  $ chmod 0755 /var/spool/mqueue
  $ chown admin.admin /var/spool/mail
  $ chmod 1777 /var/spool/mail

 
> I found it in the mail archives and made a couple of changes, I dont
> have the sendmail-cf libs on that server so I quickly generated the cf
> on another RH 6.2 machine with the latest version of the libs on it. I
> also did the following
> 
> 
> chown admin.mail /usr/bin/procmail
> chmod ug+s /usr/bin/procmail
> 
> when I do a sendmail test :
> sendmail -v xnyx </dev/null
> 
> this is the output:
> xnyx... Connecting to local...
> xnyx... Insufficient permission
> /root/dead.letter... Saved message in /root/dead.letter
 
> when I do the same test using admin:
> [admin@calinux6 /root]$ sendmail -v admin </dev/null
> admin... Connecting to local...
> admin... Sent
> [admin@calinux6 /root]$

This occurs because procmail is running as user admin and will therefore
not have enough privilege to change to an arbitary user id.  Hence my
suggestion above, which actually runs sendmail as root.



Regards,


Nick.
 

Reply via email to