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

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 04-16-2008, 12:08 PM
AdamG AdamG is offline
Member
 
Join Date: Nov 2007
Location: Seattle, WA
ZCS Version: Ubuntu 6.06 LTS ZCS 5.0.4
Posts: 10
AdamG is on a distinguished road
Default

Looks like naeb's speculation that the correct directory is /opt/zimbra/data/postfix/spool was spot on. I changed my /etc/postfix/main.cf to point to that
Code:
queue_directory = /opt/zimbra/data/postfix/spool
and now command line mail works.

I am still getting lots of these Permission denied errors in the zimbra.log though.
Reply With Quote
  #12 (permalink)  
Old 04-16-2008, 12:23 PM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,354
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

can you do
Code:
ls -lR /opt/zimbra/data/postfix
and post the output please. We can then compare and see which directories have the wrong perms.
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running under Xen 3.2.1 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #13 (permalink)  
Old 04-16-2008, 12:28 PM
AdamG AdamG is offline
Member
 
Join Date: Nov 2007
Location: Seattle, WA
ZCS Version: Ubuntu 6.06 LTS ZCS 5.0.4
Posts: 10
AdamG is on a distinguished road
Default

Quote:
Originally Posted by uxbod View Post
can you do
Code:
ls -lR /opt/zimbra/data/postfix
and post the output please. We can then compare and see which directories have the wrong perms.
Code:
root@zimbra:/opt/zimbra/zmstat# ls -lR /opt/zimbra/data/postfix/spool
/opt/zimbra/data/postfix:
total 4
drwxr-xr-x 16 root postfix 4096 2008-04-15 19:34 spool/

/opt/zimbra/data/postfix/spool:
total 56
drwx------  2 postfix root     4096 2008-04-16 12:26 active/
drwx------  2 postfix root     4096 2008-04-16 01:10 bounce/
drwx------  2 postfix root     4096 2008-04-15 19:34 corrupt/
drwxr-xr-x 18 postfix postfix  4096 2008-04-15 19:27 defer/
drwxr-xr-x 18 postfix postfix  4096 2008-04-15 19:27 deferred/
drwx------  2 postfix root     4096 2008-04-15 19:34 flush/
drwx------  2 postfix root     4096 2008-04-15 19:34 hold/
drwx------  2 postfix root     4096 2008-04-16 12:26 incoming/
drwx-wx---  2 postfix postdrop 4096 2008-04-16 12:01 maildrop/
drwxr-xr-x  2 root    root     4096 2008-04-16 04:28 pid/
drwx------  2 postfix root     4096 2008-04-15 19:44 private/
drwx--x---  2 postfix postdrop 4096 2008-04-15 19:44 public/
drwx------  2 postfix root     4096 2008-04-15 19:34 saved/
drwx------  2 postfix root     4096 2008-04-15 19:34 trace/

/opt/zimbra/data/postfix/spool/active:
total 0

/opt/zimbra/data/postfix/spool/bounce:
total 0

/opt/zimbra/data/postfix/spool/corrupt:
total 0

/opt/zimbra/data/postfix/spool/defer:
total 64
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 0/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 1/
drwx------ 2 postfix postfix 4096 2008-04-16 08:34 2/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 3/
drwx------ 2 postfix postfix 4096 2008-04-16 05:39 4/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 5/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 6/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 7/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 8/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 9/
drwx------ 2 postfix postfix 4096 2008-04-16 01:34 A/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 B/
drwx------ 2 postfix postfix 4096 2008-04-16 01:24 C/
drwx------ 2 postfix postfix 4096 2008-04-16 09:54 D/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 E/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 F/

/opt/zimbra/data/postfix/spool/defer/0:
total 0

/opt/zimbra/data/postfix/spool/defer/1:
total 0

/opt/zimbra/data/postfix/spool/defer/2:
total 0

/opt/zimbra/data/postfix/spool/defer/3:
total 0

/opt/zimbra/data/postfix/spool/defer/4:
total 0

/opt/zimbra/data/postfix/spool/defer/5:
total 0

/opt/zimbra/data/postfix/spool/defer/6:
total 0

/opt/zimbra/data/postfix/spool/defer/7:
total 0

/opt/zimbra/data/postfix/spool/defer/8:
total 0

/opt/zimbra/data/postfix/spool/defer/9:
total 0

/opt/zimbra/data/postfix/spool/defer/A:
total 0

/opt/zimbra/data/postfix/spool/defer/B:
total 0

/opt/zimbra/data/postfix/spool/defer/C:
total 0

/opt/zimbra/data/postfix/spool/defer/D:
total 0

/opt/zimbra/data/postfix/spool/defer/E:
total 0

/opt/zimbra/data/postfix/spool/defer/F:
total 0

/opt/zimbra/data/postfix/spool/deferred:
total 64
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 0/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 1/
drwx------ 2 postfix postfix 4096 2008-04-16 08:34 2/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 3/
drwx------ 2 postfix postfix 4096 2008-04-16 05:39 4/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 5/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 6/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 7/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 8/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 9/
drwx------ 2 postfix postfix 4096 2008-04-16 01:34 A/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 B/
drwx------ 2 postfix postfix 4096 2008-04-16 01:24 C/
drwx------ 2 postfix postfix 4096 2008-04-16 09:54 D/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 E/
drwx------ 2 postfix postfix 4096 2008-04-15 19:27 F/

/opt/zimbra/data/postfix/spool/deferred/0:
total 0

/opt/zimbra/data/postfix/spool/deferred/1:
total 0

/opt/zimbra/data/postfix/spool/deferred/2:
total 0

/opt/zimbra/data/postfix/spool/deferred/3:
total 0

/opt/zimbra/data/postfix/spool/deferred/4:
total 0

/opt/zimbra/data/postfix/spool/deferred/5:
total 0

/opt/zimbra/data/postfix/spool/deferred/6:
total 0

/opt/zimbra/data/postfix/spool/deferred/7:
total 0

/opt/zimbra/data/postfix/spool/deferred/8:
total 0

/opt/zimbra/data/postfix/spool/deferred/9:
total 0

/opt/zimbra/data/postfix/spool/deferred/A:
total 0

/opt/zimbra/data/postfix/spool/deferred/B:
total 0

/opt/zimbra/data/postfix/spool/deferred/C:
total 0

/opt/zimbra/data/postfix/spool/deferred/D:
total 0

/opt/zimbra/data/postfix/spool/deferred/E:
total 0

/opt/zimbra/data/postfix/spool/deferred/F:
total 0

/opt/zimbra/data/postfix/spool/flush:
total 0

/opt/zimbra/data/postfix/spool/hold:
total 0

/opt/zimbra/data/postfix/spool/incoming:
total 0

/opt/zimbra/data/postfix/spool/maildrop:
total 0

/opt/zimbra/data/postfix/spool/pid:
total 4
-rw------- 1 root root  0 2008-04-15 19:34 inet.127.0.0.1:10025
-rw------- 1 root root  0 2008-04-16 04:28 inet.465
-rw------- 1 root root  0 2008-04-15 19:45 inet.smtp
-rw------- 1 root root 17 2008-04-15 19:44 master.pid
-rw------- 1 root root  0 2008-04-15 19:34 unix.bounce
-rw------- 1 root root  0 2008-04-15 19:34 unix.cleanup
-rw------- 1 root root  0 2008-04-16 01:16 unix.defer
-rw------- 1 root root  0 2008-04-15 19:34 unix.error
-rw------- 1 root root  0 2008-04-15 19:48 unix.lmtp
-rw------- 1 root root  0 2008-04-15 19:35 unix.showq
-rw------- 1 root root  0 2008-04-15 19:48 unix.smtp
-rw------- 1 root root  0 2008-04-15 19:34 unix.smtp-amavis

/opt/zimbra/data/postfix/spool/private:
total 0
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 anvil=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 bounce=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 bsmtp=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 cyrus=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 defer=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 discard=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 error=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 ifmail=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 lmtp=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 local=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 maildrop=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 old-cyrus=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 proxymap=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 relay=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 rewrite=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 scache=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 smtp=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 smtp-amavis=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 tlsmgr=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 trace=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 uucp=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 verify=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 virtual=

/opt/zimbra/data/postfix/spool/public:
total 0
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 cleanup=
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 flush=
prw--w--w- 1 postfix postfix 0 2008-04-16 12:29 pickup|
prw--w--w- 1 postfix postfix 0 2008-04-16 12:29 qmgr|
srw-rw-rw- 1 postfix postfix 0 2008-04-15 19:44 showq=

/opt/zimbra/data/postfix/spool/saved:
total 0

/opt/zimbra/data/postfix/spool/trace:
total 0
root@zimbra:/opt/zimbra/zmstat#

Last edited by AdamG : 04-16-2008 at 12:32 PM.
Reply With Quote
  #14 (permalink)  
Old 04-16-2008, 12:46 PM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,354
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

Here is mine
Code:
[root@office spool]# ls -l
total 56
drwx------  2 postfix root     4096 Apr 16 20:31 active
drwx------  2 postfix root     4096 Apr 16 19:41 bounce
drwx------  2 postfix root     4096 Mar 25 05:53 corrupt
drwx------ 17 postfix postfix  4096 Feb  2 10:27 defer
drwx------ 17 postfix postfix  4096 Feb  2 10:27 deferred
drwx------  2 postfix root     4096 Mar 25 05:53 flush
drwx------  2 postfix root     4096 Mar 25 05:53 hold
drwx------  2 postfix root     4096 Apr 16 20:31 incoming
drwx-wx---  2 postfix postdrop 4096 Apr 13 08:15 maildrop
drwxr-xr-x  2 postfix postfix  4096 Feb  2 16:52 pid
drwx------  2 postfix postfix  4096 Apr 16 00:46 private
drwx--x---  2 postfix postdrop 4096 Apr 16 00:46 public
drwx------  2 postfix root     4096 Mar 25 05:53 saved
drwx------  2 postfix root     4096 Mar 25 05:53 trace
but the files in your pid directory are owned by root, when they should be postfix. Can you do the following then please
Code:
ps -fu postfix
and post output. If that returns nothing then
Code:
 ps -ef | grep pickup
also
Code:
su - zimbra
zmlocalconfig postfix_mail_owner
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running under Xen 3.2.1 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |

Last edited by uxbod : 04-16-2008 at 12:48 PM.
Reply With Quote
  #15 (permalink)  
Old 04-16-2008, 01:08 PM
AdamG AdamG is offline
Member
 
Join Date: Nov 2007
Location: Seattle, WA
ZCS Version: Ubuntu 6.06 LTS ZCS 5.0.4
Posts: 10
AdamG is on a distinguished road
Default

Here it is:
Code:
ps -fu postfix
UID        PID  PPID  C STIME TTY          TIME CMD
postfix  18243 18239  0 Apr15 ?        00:00:00 qmgr -l -t fifo -u
postfix  19212 18239  0 Apr15 ?        00:00:00 tlsmgr -l -t unix -u
postfix  26852 18239  0 12:20 ?        00:00:00 pickup -l -t fifo -u
postfix   1650 18239  0 12:41 ?        00:00:00 anvil -l -t unix -u
postfix   5683 18239  0 12:52 ?        00:00:00 smtpd -n smtp -t inet -u
postfix   8466 18239  0 13:00 ?        00:00:00 cleanup -z -t unix -u
postfix   8467 18239  0 13:00 ?        00:00:00 smtp -n smtp-amavis -t unix -u -o smtp_data_done_timeout 1200 -o smtp_send_xforward_command yes -o disable_dns_lookups yes -o max_use 20
postfix   8476 18239  0 13:00 ?        00:00:00 smtpd -n 127.0.0.1:10025 -t inet -u -o content_filter  -o local_recipient_maps  -o virtual_mailbox_maps  -o virtual_alias_maps  -o relay_recip
postfix   8477 18239  0 13:00 ?        00:00:00 lmtp -t unix -u
postfix  13437 18239  0 13:02 ?        00:00:00 trivial-rewrite -n rewrite -t unix -u
postfix  13737 18239  0 13:02 ?        00:00:00 smtpd -n smtp -t inet -u
Code:
zmlocalconfig postfix_mail_owner
postfix_mail_owner = postfix
Reply With Quote
  #16 (permalink)  
Old 04-16-2008, 01:18 PM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,354
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

hmmm, okay if you are able to then
Code:
su - zimbra
zmcontrol shutdown
exit
cd /opt/zimbra/data/postfix/spool/pid
rm *
su - zimbra
zmcontrol start
basically clear out the pid directory as they should be owned by postfix, for some reason when something has started before they have been created as root.

*** DISCLAIMER: when doing rm's make sure you are in the correct directory and have a good backup!!! ***
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running under Xen 3.2.1 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #17 (permalink)  
Old 04-16-2008, 01:21 PM
AdamG AdamG is offline
Member
 
Join Date: Nov 2007
Location: Seattle, WA
ZCS Version: Ubuntu 6.06 LTS ZCS 5.0.4
Posts: 10
AdamG is on a distinguished road
Default

I'll try to get this done tonight.
Is there any way to gauge the impact this may be having? As I said, nobody has complained, but what is throwing the errors?
Reply With Quote
  #18 (permalink)  
Old 04-17-2008, 09:18 AM
AdamG AdamG is offline
Member
 
Join Date: Nov 2007
Location: Seattle, WA
ZCS Version: Ubuntu 6.06 LTS ZCS 5.0.4
Posts: 10
AdamG is on a distinguished road
Default

When I shutdown zimbra, I noticed some postfix processes still running. I killed those off and restarted zimbra and I am no longer getting errors in the logs.
Reply With Quote
  #19 (permalink)  
Old 05-20-2008, 08:09 AM
cciardi cciardi is offline
Member
 
Join Date: Aug 2007
Posts: 10
cciardi is on a distinguished road
Default

ZCS 5.0.5 Open Source on CentOS 5 upgraded from 5.0.2
I ran into the same problem with mail not being sent through the system mta at the command line or through php scripts.

/etc/postfix/main.cf did not have the correct directory for 'queue_directory'
queue_directory = /opt/zimbra/postfix/spool
should be
queue_directory = /opt/zimbra/data/postfix/spool
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
bayes db.. osiris Administrators 5 02-20-2008 11:41 AM
centos 5 zimbra 4.5.6 no statistics rutman286 Installation 9 08-14-2007 09:30 AM
Opensource backup Question. nfear24 Administrators 3 03-31-2007 11:47 PM
Traslation SVN tree status meikka I18N/L10N - Translations 7 02-13-2007 10:13 AM
M3 problem with shares titangears Users 4 01-12-2006 12:01 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0