Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-2008, 12:19 PM
Active Member
 
Posts: 28
Default showq permissions failure

After a server restart, I keep getting:

Jan 30 12:17:30 prmx055 postfix/postqueue[26041]: fatal: Connect to the Postfix showq service: Permission denied

After a zmfixperms as root and a service restart:

[zimbra@email ~]$ mailq
postqueue: fatal: Connect to the Postfix showq service: Permission denied

RHEL5 here-- any suggestions?

EDIT: Upon further observation, it's been doing this since I built the server. What's my next logical troubleshooting step?

Last edited by GoneWestCoast; 01-30-2008 at 12:43 PM.. Reason: Further Observation
Reply With Quote
  #2 (permalink)  
Old 01-30-2008, 02:27 PM
Zimbra Employee
 
Posts: 37
Default

check your /etc/sudoers file for:

%zimbra ALL=NOPASSWD:/opt/zimbra/postfix-2.2.9/sbin/postfix, /opt/zimbra/postfix-2.2.9/sbin/postalias, /opt/zimbra/postfix 2.2.9/sbin/qshape.pl, /opt/zimbra/postfix 2.2.9/sbin/postconf,/opt/zimbra/postfix-2.2.9/sbin/postsuper
Reply With Quote
  #3 (permalink)  
Old 01-30-2008, 02:32 PM
Active Member
 
Posts: 28
Default

%zimbra ALL=NOPASSWD:/opt/zimbra/postfix-2.4.3.3z/sbin/postfix, /opt/zimbra/postfix-2.4.3.3z/sbin/postalias, /opt/zimbra/postfix-2.4.3.3z/sbin/qshape.pl, /opt/zimbra/postfix-2.4.3.3z/sbin/postconf,/opt/zimbra/postfix-2.4.3.3z/sbin/postsuper


My version numbers are different than yours, but should be correct-- I'm on 5.0.1.
Reply With Quote
  #4 (permalink)  
Old 01-30-2008, 08:54 PM
Former Zimbran
 
Posts: 294
Default

Perhaps you have already checked this. But wanted to confirm that you have SELinux disabled.
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
Reply With Quote
  #5 (permalink)  
Old 01-30-2008, 11:01 PM
Zimbra Employee
 
Posts: 604
Default

Rerun /opt/zimbra/libexec/zmfixperms as root. Sounds like your postfix/spool and postfix/sbin/* files don't have the right perms.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #6 (permalink)  
Old 01-31-2008, 05:24 AM
Active Member
 
Posts: 28
Default

Quote:
Originally Posted by brian View Post
Rerun /opt/zimbra/libexec/zmfixperms as root. Sounds like your postfix/spool and postfix/sbin/* files don't have the right perms.
Done so, issue continues.

SELinux is disabled.

postfix/spool is owned by postfix, and the group is postfix for everything except maildrop and public, where it's postdrop.

postfix/sbin:
lrwxrwxrwx 1 root root 53 Jan 23 12:15 mailq -> ../../../../opt/zimbra/postfix-2.4.3.3z/sbin/sendmail
lrwxrwxrwx 1 root root 53 Jan 23 12:15 newaliases -> ../../../../opt/zimbra/postfix-2.4.3.3z/sbin/sendmail
-rwxr-xr-x 1 root root 715796 Jan 2 22:24 postalias
-rwxr-xr-x 1 root root 406653 Jan 2 22:24 postcat
-rwxr-xr-x 1 root root 822822 Jan 2 22:24 postconf
-rwxr-sr-x 1 root postdrop 639202 Jan 2 22:24 postdrop
-rwxr-xr-x 1 root root 359377 Jan 2 22:24 postfix
-rwxr-xr-x 1 root root 396827 Jan 2 22:24 postkick
-rwxr-xr-x 1 root root 386626 Jan 2 22:24 postlock
-rwxr-xr-x 1 root root 365802 Jan 2 22:24 postlog
-rwxr-xr-x 1 root root 684349 Jan 2 22:24 postmap
-rwxr-sr-x 1 root postdrop 731520 Jan 2 22:24 postqueue
-rwxr-xr-x 1 root root 424747 Jan 2 22:24 postsuper
-r-xr-xr-x 1 root root 12846 Jan 9 19:17 qshape.pl
-rwxr-xr-x 1 root root 735940 Jan 2 22:24 sendmail
Reply With Quote
  #7 (permalink)  
Old 01-31-2008, 08:31 AM
Zimbra Employee
 
Posts: 604
Default

Post the output of the following.

Code:
zmcontrol status
postqueue -p
netstat -an | grep showq
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #8 (permalink)  
Old 01-31-2008, 08:33 AM
Active Member
 
Posts: 28
Default

[root@prmx055 ~]# su - zimbra
[zimbra@prmx055 ~]$ zmcontrol status
Host prmx055.reachlocal.com
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running
[zimbra@prmx055 ~]$ postqueue -p
postqueue: fatal: Connect to the Postfix showq service: Permission denied
[zimbra@prmx055 ~]$ netstat -an | grep showq
unix 2 [ ACC ] STREAM LISTENING 780736 public/showq
[zimbra@prmx055 ~]$
Reply With Quote
  #9 (permalink)  
Old 01-31-2008, 09:19 AM
Zimbra Employee
 
Posts: 604
Default

The postqueue binary should be setgid to the postdrop group so that it has permissions to view the maildrop directory. So a couple things could be happening.

- setguid bit on the postqueue binary is not set
- your filesystem is mounted without setuid support

Your perms should look something like this.
Quote:
ls -ld /opt/zimbra/postfix/sbin/postqueue /opt/zimbra/postfix/spool/public/* /opt/zimbra/postfix/spool/maildrop
-rwxr-sr-x 1 root postdrop 730361 Jan 22 14:38 /opt/zimbra/postfix/sbin/postqueue
drwx-wx--- 2 postfix postdrop 4096 Jan 22 14:38 /opt/zimbra/postfix/spool/maildrop
srw-rw-rw- 1 postfix postfix 0 Jan 24 22:19 /opt/zimbra/postfix/spool/public/cleanup
srw-rw-rw- 1 postfix postfix 0 Jan 24 22:19 /opt/zimbra/postfix/spool/public/flush
prw--w--w- 1 postfix postfix 0 Jan 31 09:15 /opt/zimbra/postfix/spool/public/pickup
prw--w--w- 1 postfix postfix 0 Jan 31 09:16 /opt/zimbra/postfix/spool/public/qmgr
srw-rw-rw- 1 postfix postfix 0 Jan 24 22:19 /opt/zimbra/postfix/spool/public/showq
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #10 (permalink)  
Old 01-31-2008, 09:49 AM
Active Member
 
Posts: 28
Default

Quote:
Originally Posted by brian View Post
The postqueue binary should be setgid to the postdrop group so that it has permissions to view the maildrop directory. So a couple things could be happening.

- setguid bit on the postqueue binary is not set
- your filesystem is mounted without setuid support

Your perms should look something like this.

That's exactly what I have--

Quote:
[root@prmx055 log]# ls -ld /opt/zimbra/postfix/sbin/postqueue /opt/zimbra/postfix/spool/public/* /opt/zimbra/postfix/spool/maildrop
-rwxr-sr-x 1 root postdrop 731520 Jan 2 22:24 /opt/zimbra/postfix/sbin/postqueue
drwx-wx--- 2 postfix postdrop 4096 Jan 2 22:24 /opt/zimbra/postfix/spool/maildrop
srw-rw-rw- 1 postfix postfix 0 Jan 31 05:30 /opt/zimbra/postfix/spool/public/cleanup
srw-rw-rw- 1 postfix postfix 0 Jan 31 05:30 /opt/zimbra/postfix/spool/public/flush
prw--w--w- 1 postfix postfix 0 Jan 31 09:47 /opt/zimbra/postfix/spool/public/pickup
prw--w--w- 1 postfix postfix 0 Jan 31 09:48 /opt/zimbra/postfix/spool/public/qmgr
srw-rw-rw- 1 postfix postfix 0 Jan 31 05:30 /opt/zimbra/postfix/spool/public/showq
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.