Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: postdrop fail to create file after upgrade to 5.0.3

  1. #11
    Join Date
    Nov 2007
    Location
    Seattle, WA
    Posts
    11
    Rep Power
    7

    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.

  2. #12
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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.

  3. #13
    Join Date
    Nov 2007
    Location
    Seattle, WA
    Posts
    11
    Rep Power
    7

    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.

  4. #14
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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
    Last edited by uxbod; 04-16-2008 at 12:48 PM.

  5. #15
    Join Date
    Nov 2007
    Location
    Seattle, WA
    Posts
    11
    Rep Power
    7

    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

  6. #16
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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!!! ***

  7. #17
    Join Date
    Nov 2007
    Location
    Seattle, WA
    Posts
    11
    Rep Power
    7

    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?

  8. #18
    Join Date
    Nov 2007
    Location
    Seattle, WA
    Posts
    11
    Rep Power
    7

    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.

  9. #19
    Join Date
    Aug 2007
    Posts
    10
    Rep Power
    8

    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

  10. #20
    Join Date
    Mar 2007
    Location
    Small village in the center of Italy
    Posts
    350
    Rep Power
    8

    Default same issue upgrading from .16 to .18

    Centos5.3 NE upgrade from 5.0.16 to 5.0.18

    just after upgrade i got this on logs:
    Code:
    Jul 12 23:56:14 zimbra postfix/postdrop[12195]: warning: mail_queue_enter: create file maildrop/679197.12195: Permission denied                           
    Jul 12 23:56:24 zimbra postfix/postdrop[12195]: warning: mail_queue_enter: create file maildrop/680300.12195: Permission denied
    and this is the spool dir:
    Code:
     root@zimbra /opt/zimbra/data/postfix/spool ]# ls -la
    totale 64                                                                  
    drwxr-xr-x 16 postfix postfix  4096 23 mag 16:33 .                         
    drwxr-xr-x  3 postfix zimbra   4096 23 mag 15:59 ..                        
    drwx------  2 postfix postfix  4096 12 lug 23:50 active                    
    drwx------  2 postfix postfix  4096 12 lug 23:33 bounce                    
    drwx------  2 postfix postfix  4096 23 mag 16:33 corrupt                   
    drwx------ 18 postfix postfix  4096 27 mag 19:43 defer                     
    drwx------ 18 postfix postfix  4096 27 mag 19:43 deferred                  
    drwx------  2 postfix postfix  4096 23 mag 16:33 flush                     
    drwx------  2 postfix postfix  4096 23 mag 16:33 hold                      
    drwx------  2 postfix postfix  4096 12 lug 23:50 incoming                  
    drwx-wx---  2 postfix postdrop 4096 12 lug 23:50 maildrop                  
    drwxr-xr-x  2 postfix postfix  4096 25 mag 11:28 pid                       
    drwx------  2 postfix postfix  4096 12 lug 23:55 private                   
    drwx--x---  2 postfix postdrop 4096 12 lug 23:55 public                    
    drwx------  2 postfix postfix  4096 23 mag 16:33 saved                     
    drwx------  2 postfix postfix  4096 10 lug 17:36 trace

    this is pid directory:
    Code:
    root@zimbra /opt/zimbra/data/postfix/spool ]# ls -la pid/
    totale 12                                                                       
    drwxr-xr-x  2 postfix postfix 4096 25 mag 11:28 .                               
    drwxr-xr-x 16 postfix postfix 4096 23 mag 16:33 ..                              
    -rw-------  1 postfix postfix    0 23 mag 16:34 inet.127.0.0.1:10025            
    -rw-------  1 postfix postfix    0 23 mag 16:39 inet.smtp                       
    -rw-------  1 postfix postfix   17 12 lug 23:55 master.pid                      
    -rw-------  1 postfix postfix    0 24 mag 01:03 unix.bounce                     
    -rw-------  1 postfix postfix    0 23 mag 16:34 unix.cleanup                    
    -rw-------  1 postfix postfix    0 23 mag 16:34 unix.defer                      
    -rw-------  1 postfix postfix    0 25 mag 10:18 unix.error                      
    -rw-------  1 postfix postfix    0 23 mag 16:34 unix.lmtp                       
    -rw-------  1 postfix postfix    0 23 mag 16:34 unix.showq                      
    -rw-------  1 postfix postfix    0 23 mag 22:08 unix.smtp                       
    -rw-------  1 postfix postfix    0 23 mag 16:34 unix.smtp-amavis                
    -rw-------  1 postfix postfix    0 25 mag 11:28 unix.trace
    quick and dirty
    Code:
    chmod 777 maildrop/
    root@zimbra /opt/zimbra/data/postfix/spool ]# tail -f /var/log/zimbra.log
    Jul 12 23:57:34 zimbra postfix/postdrop[12195]: warning: unable to look up public/pickup: Permission denied          
     root@zimbra /opt/zimbra/data/postfix/spool ]# chmod 777 public/

    i solved in a quick and dirty way, in the meanwhile that i post this issue and someone may help to solve in a less dirty way

    tia

    -m

Similar Threads

  1. bayes db..
    By osiris in forum Administrators
    Replies: 9
    Last Post: 06-15-2011, 11:14 AM
  2. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 09:30 AM
  3. Opensource backup Question.
    By nfear24 in forum Administrators
    Replies: 3
    Last Post: 03-31-2007, 11:47 PM
  4. Traslation SVN tree status
    By meikka in forum I18N/L10N - Translations
    Replies: 7
    Last Post: 02-13-2007, 10:13 AM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 12:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •