Doug Crompton on 28 Jun 2007 19:13:37 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] sendmail setup


Ok Thanks for the help on this. In the end it was (usually is!) just
permissions and group on the mqueue and mail directories but sudo also
worked. So more then one way to skin the cat.

Doug

On Wed, 27 Jun 2007, John Von Essen wrote:

> Not sure what broke it, but to resolve, your user needs to be a
> member of the group that has group permissions in /var/spool/mqueue
> and you may have to tweak your sendmail.cf to add group permissions
> to mqueue.
>
>
> For example, in BSD mqueue group is daemon, and it has read
> permissions. So just add user bob to the daemon group, and then mailq
> will work when executed by bob.
>
> However, take gentoo as an example. In gentoo, mqueue has no group
> permissions. So for that distro you need to do a chmod 640 on /var/
> spool/mqueue and then edit sendmail.cf:
>
> # queue file mode (qf files)
> O QueueFileMode=0640
>
>
> Gentoo defaults to 600 permissions, so change it to 640, then add
> your user to that group, and your all set.
>
> -John
>
> On Jun 27, 2007, at 10:48 AM, Doug Crompton wrote:
>
> >
> > My old sendmail always allowed a non root user (I am the only user
> > on the
> > system) to do a 'mailq' - now I get a permission denied. I compared
> > permissions on both systems and they were the same as far as I can
> > tell.
> >
> > doug@slate:~> mailq
> > can not chdir(/var/spool/mqueue/): Permission denied
> > Program mode requires special privileges, e.g., root or TrustedUser.
> > Warning: Cannot use HostStatusDirectory = .hoststat: No such file or
> > directory
> >
> > Doug
> >
> >
> >
> >
> > ______________________________________________________________________
> > _____
> > Philadelphia Linux Users Group         --        http://
> > www.phillylinux.org
> > Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-
> > announce
> > General Discussion  --   http://lists.phillylinux.org/mailman/
> > listinfo/plug
>
> John Von Essen (john@essenz.com)
> President, Essenz Consulting www.essenz.com
>
>
>
>
>


"Those that sacrifice essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety."  -- Ben Franklin (1759)

****************************
*  Doug Crompton	   *
*  Richboro, PA 18954	   *
*  215-431-6307		   *
*		  	   *
* doug@crompton.com        *
* http://www.crompton.com  *
****************************


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug