Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with postdrop: warning: mail_queue_enter: create file maildrop/631329.7980: Permission denied

3,456 views
Skip to first unread message

peceka

unread,
Apr 21, 2010, 10:43:13 AM4/21/10
to
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.

Wietse Venema

unread,
Apr 21, 2010, 10:49:13 AM4/21/10
to
peceka:

> 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

You broke the file permissions, or your file system does not support
setuid/setgid execution.

To correct the permissions execute the command:

# postfix set-permissions

(this requires Postfix 2.1 or later).

Wietse

0 new messages