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
___________________________________________________________________________
|