Prev: Using Sasl authentication and RBL
Next: problem with postdrop: warning: mail_queue_enter: create file maildrop/631329.7980:Permission denied
From: peceka on 21 Apr 2010 10:43 Hi all! i've created jail on FreeBSD system and put postifx into it. When i'm in jail and want to send mail i've got many such errors: Apr 21 16:30:49 rt postfix/postdrop[7852]: warning: mail_queue_enter: create file maildrop/103703.7852: Permission denied Apr 21 16:31:14 rt postfix/postdrop[7980]: warning: mail_queue_enter: create file maildrop/619206.7980: Permission denied Apr 21 16:31:24 rt postfix/postdrop[7980]: warning: mail_queue_enter: create file maildrop/620043.7980: Permission denied Apr 21 16:31:34 rt postfix/postdrop[7980]: warning: mail_queue_enter: create file maildrop/624650.7980: Permission denied Apr 21 16:31:44 rt postfix/postdrop[7980]: warning: mail_queue_enter: create file maildrop/625766.7980: Permission denied i've double checked if permissions are correct (directory structure and permissions are made by postfix-script): host# ls -l /var/jails/jail1/var/spool/postfix/ total 28 drwx------ 2 postfix wheel 512 Apr 21 13:51 active drwx------ 2 postfix wheel 512 Apr 21 13:51 bounce drwx------ 2 postfix wheel 512 Apr 21 13:03 corrupt drwx------ 2 postfix wheel 512 Apr 21 13:03 defer drwx------ 2 postfix wheel 512 Apr 21 13:03 deferred drwx------ 2 postfix wheel 512 Apr 21 13:03 flush drwx------ 2 postfix wheel 512 Apr 21 13:03 hold drwx------ 2 postfix wheel 512 Apr 21 13:51 incoming drwx-wx--- 2 postfix maildrop 512 Apr 21 13:51 maildrop drwxr-xr-x 2 root wheel 512 Apr 21 13:27 pid drwx------ 2 postfix wheel 512 Apr 21 13:47 private drwx--x--- 2 postfix maildrop 512 Apr 21 13:47 public drwx------ 2 postfix wheel 512 Apr 21 13:03 saved drwx------ 2 postfix wheel 512 Apr 21 13:03 trace host# when i do: chmod o+wx /var/jails/jail1/var/spool/postfix/maildrop file is created but got another error: Apr 21 16:39:48 rt postfix/postdrop[8004]: warning: unable to look up public/pickup: Permission denied so when i do: chmod o+gx /var/jails/jail1/var/spool/postfix/public sending mails is working. but when i'm testing sending mails on outside jail everything is working even when: drwx-wx--- 2 postfix maildrop 512 Apr 21 13:51 maildrop drwx--x--- 2 postfix maildrop 512 Apr 21 13:47 public can somebody help me how to resolve this problem without changing default permissions? TIA, p. |