John Von Essen on 27 Jun 2007 21:05:58 -0000


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

Re: [PLUG] sendmail setup


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

John Von Essen (john@essenz.com)

President, Essenz Consulting www.essenz.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