From: "motty cruz" on
Hello,

I'm having issues with postfix delivering mail to /var/mail/$USER it says
permission denied, althougth I gave 755 permission to that dir
/var/mail/$USER,



Here is my logs

Mar 5 21:20:18 dagan postfix/postfix-script[4336]: refreshing the Postfix
mail system

Mar 5 21:20:18 dagan postfix/master[3467]: reload -- version 2.6.5,
configuration /usr/local/etc/postfix

Mar 5 21:20:18 dagan postfix/pickup[4341]: 53BE378C37: uid=125
from=<root(a)lugostowing.net> orig_id=6FE5478C5A

Mar 5 21:20:18 dagan postfix/cleanup[4342]: 53BE378C37:
message-id=<20100306034930.9AEA578C35(a)dagan.lugostowing.net>

Mar 5 21:20:18 dagan postfix/pickup[4341]: 5D7CE78C58: uid=125
from=<root(a)lugostowing.net> orig_id=7FD7B78C5E

Mar 5 21:20:18 dagan postfix/cleanup[4342]: 5D7CE78C58:
message-id=<20100306034938.5C8B278C57(a)dagan.lugostowing.net>

Mar 5 21:25:18 dagan postfix/qmgr[4340]: 53BE378C37:
from=<root(a)lugostowing.net>, size=791, nrcpt=1 (queue active)

Mar 5 21:25:18 dagan postfix/qmgr[4340]: 5D7CE78C58:
from=<root(a)lugostowing.net>, size=673, nrcpt=1 (queue active)

Mar 5 21:25:18 dagan pipe[4378]: fatal: pipe_command: execvp /var/mail:
Permission denied

Mar 5 21:25:18 dagan pipe[4379]: fatal: pipe_command: execvp /var/mail:
Permission denied

Mar 5 21:25:18 dagan postfix/pipe[4376]: 53BE378C37:
to=<celso(a)lugostowing.net>, relay=maildrop, delay=5748,
delays=5748/0.06/0/0.06, dsn=4.3.0, status=deferred (temporary failure.
Command output: pipe: fatal: pipe_command: execvp /var/mail: Permission
denied )

Mar 5 21:25:18 dagan postfix/pipe[4377]: 5D7CE78C58:
to=<celso(a)lugostowing.net>, orig_to=<celso(a)dagan.lugostowing.net>,
relay=maildrop, delay=5740, delays=5740/0.05/0/0.07, dsn=4.3.0,
status=deferred (temporary failure. Command output: pipe: fatal:
pipe_command: execvp /var/mail: Permission denied )

dagan#



postconf -n (command)

dagan# postconf -n

biff = no

broken_sasl_auth_clients = yes

command_directory = /usr/local/sbin

config_directory = /usr/local/etc/postfix

daemon_directory = /usr/local/libexec/postfix

data_directory = /var/db/postfix

debug_peer_level = 2

html_directory = /usr/local/share/doc/postfix

inet_interfaces = all

mail_owner = postfix

mail_spool_directory = /var/mail

mailq_path = /usr/local/bin/mailq

manpage_directory = /usr/local/man

mydomain = lugostowing.net

myhostname = dagan.lugostowing.net

myorigin = $mydomain

newaliases_path = /usr/local/bin/newaliases

queue_directory = /var/spool/postfix

readme_directory = /usr/local/share/doc/postfix

sample_directory = /usr/local/etc/postfix

sendmail_path = /usr/local/sbin/sendmail

setgid_group = maildrop

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
reject_unauth_destination

unknown_local_recipient_reject_code = 550

virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

virtual_gid_maps = static:5000

virtual_mailbox_base = /var/mail/

virtual_mailbox_domains = /usr/local/etc/postfix/vhosts

virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox

virtual_minimum_uid = 100

virtual_transport = maildrop

virtual_uid_maps = static:5000

dagan#





and my master.cf

maildrop unix - n n - - pipe

flags=DRhu user=vmail argv=/var/mail -d ${user}





Thanks in advance,

-Motty





From: David Touzeau on
Hello,

I’m having issues with postfix delivering mail to /var/mail/$USER it
says permission denied, althougth I gave 755 permission to that
dir /var/mail/$USER,



Here is my logs

Mar 5 21:20:18 dagan postfix/postfix-script[4336]: refreshing the
Postfix mail system

Mar 5 21:20:18 dagan postfix/master[3467]: reload -- version 2.6.5,
configuration /usr/local/etc/postfix

Mar 5 21:20:18 dagan postfix/pickup[4341]: 53BE378C37: uid=125
from=<root(a)lugostowing.net> orig_id=6FE5478C5A

Mar 5 21:20:18 dagan postfix/cleanup[4342]: 53BE378C37:
message-id=<20100306034930.9AEA578C35(a)dagan.lugostowing.net>

Mar 5 21:20:18 dagan postfix/pickup[4341]: 5D7CE78C58: uid=125
from=<root(a)lugostowing.net> orig_id=7FD7B78C5E

Mar 5 21:20:18 dagan postfix/cleanup[4342]: 5D7CE78C58:
message-id=<20100306034938.5C8B278C57(a)dagan.lugostowing.net>

Mar 5 21:25:18 dagan postfix/qmgr[4340]: 53BE378C37:
from=<root(a)lugostowing.net>, size=791, nrcpt=1 (queue active)

Mar 5 21:25:18 dagan postfix/qmgr[4340]: 5D7CE78C58:
from=<root(a)lugostowing.net>, size=673, nrcpt=1 (queue active)

Mar 5 21:25:18 dagan pipe[4378]: fatal: pipe_command: execvp /var/mail:
Permission denied

Mar 5 21:25:18 dagan pipe[4379]: fatal: pipe_command: execvp /var/mail:
Permission denied

Mar 5 21:25:18 dagan postfix/pipe[4376]: 53BE378C37:
to=<celso(a)lugostowing.net>, relay=maildrop, delay=5748,
delays=5748/0.06/0/0.06, dsn=4.3.0, status=deferred (temporary failure.
Command output: pipe: fatal: pipe_command: execvp /var/mail: Permission
denied )

Mar 5 21:25:18 dagan postfix/pipe[4377]: 5D7CE78C58:
to=<celso(a)lugostowing.net>, orig_to=<celso(a)dagan.lugostowing.net>,
relay=maildrop, delay=5740, delays=5740/0.05/0/0.07, dsn=4.3.0,
status=deferred (temporary failure. Command output: pipe: fatal:
pipe_command: execvp /var/mail: Permission denied )

dagan#



postconf –n (command)

dagan# postconf -n

biff = no

broken_sasl_auth_clients = yes

command_directory = /usr/local/sbin

config_directory = /usr/local/etc/postfix

daemon_directory = /usr/local/libexec/postfix

data_directory = /var/db/postfix

debug_peer_level = 2

html_directory = /usr/local/share/doc/postfix

inet_interfaces = all

mail_owner = postfix

mail_spool_directory = /var/mail

mailq_path = /usr/local/bin/mailq

manpage_directory = /usr/local/man

mydomain = lugostowing.net

myhostname = dagan.lugostowing.net

myorigin = $mydomain

newaliases_path = /usr/local/bin/newaliases

queue_directory = /var/spool/postfix

readme_directory = /usr/local/share/doc/postfix

sample_directory = /usr/local/etc/postfix

sendmail_path = /usr/local/sbin/sendmail

setgid_group = maildrop

smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination

unknown_local_recipient_reject_code = 550

virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

virtual_gid_maps = static:5000

virtual_mailbox_base = /var/mail/

virtual_mailbox_domains = /usr/local/etc/postfix/vhosts

virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox

virtual_minimum_uid = 100

virtual_transport = maildrop

virtual_uid_maps = static:5000

dagan#





and my master.cf

maildrop unix - n n - - pipe

flags=DRhu user=vmail argv=/var/mail -d ${user}





Thanks in advance,

-Motty


According your line :

maildrop unix - n n - - pipe

flags=DRhu user=vmail argv=/var/mail -d ${user}


you need to provide vmail user access to /var/mail

do

chown -R vmail /var/mail

From: "Daniel V. Reinhardt" on
>
>From: motty cruz <motty.cruz(a)gmail.com>
>To: postfix-users(a)postfix.org
>Sent: Fri, March 5, 2010 9:18:40 PM
>Subject: virtual domains
>
>
>Hello,
>I’m having issues with postfix delivering mail to /var/mail/$USER it says permission denied, althougth I gave 755 permission to that dir /var/mail/$USER,
>
>Here is my logs
>Mar 5 21:20:18 dagan postfix/postfix-script[4336]: refreshing the Postfix mail system
>Mar 5 21:20:18 dagan postfix/master[3467]: reload -- version 2.6.5, configuration /usr/local/etc/postfix
>Mar 5 21:20:18 dagan postfix/pickup[4341]: 53BE378C37: uid=125 from=<root(a)lugostowing.net> orig_id=6FE5478C5A
>Mar 5 21:20:18 dagan postfix/cleanup[4342]: 53BE378C37: message-id=<20100306034930.9AEA578C35(a)dagan.lugostowing.net>
>Mar 5 21:20:18 dagan postfix/pickup[4341]: 5D7CE78C58: uid=125 from=<root(a)lugostowing.net> orig_id=7FD7B78C5E
>Mar 5 21:20:18 dagan postfix/cleanup[4342]: 5D7CE78C58: message-id=<20100306034938.5C8B278C57(a)dagan.lugostowing.net>
>Mar 5 21:25:18 dagan postfix/qmgr[4340]: 53BE378C37: from=<root(a)lugostowing.net>, size=791, nrcpt=1 (queue active)
>Mar 5 21:25:18 dagan postfix/qmgr[4340]: 5D7CE78C58: from=<root(a)lugostowing.net>, size=673, nrcpt=1 (queue active)
>Mar 5 21:25:18 dagan pipe[4378]: fatal: pipe_command: execvp /var/mail: Permission denied
>Mar 5 21:25:18 dagan pipe[4379]: fatal: pipe_command: execvp /var/mail: Permission denied
>Mar 5 21:25:18 dagan postfix/pipe[4376]: 53BE378C37: to=<celso(a)lugostowing.net>, relay=maildrop, delay=5748, delays=5748/0.06/0/0.06, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /var/mail: Permission denied )
>Mar 5 21:25:18 dagan postfix/pipe[4377]: 5D7CE78C58: to=<celso(a)lugostowing.net>, orig_to=<celso(a)dagan.lugostowing.net>, relay=maildrop, delay=5740, delays=5740/0.05/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /var/mail: Permission denied )

Can you show us the permissions of /var/mail

ls -la /var/mail

Thanks,
Daniel Reinhardt
Website: www.cryptodan.com
Email:
cryptodan(a)yahoo.com





From: "motty cruz" on
Thanks for your promptly replay but I done that to no success.
I'm still getting the same error, vmail is the user

Mar 5 21:52:34 dagan pipe[4518]: fatal: pipe_command: execvp /var/mail: Permission denied
Mar 5 21:52:34 dagan pipe[4519]: fatal: pipe_command: execvp /var/mail: Permission denied
Mar 5 21:52:34 dagan postfix/pipe[4517]: 66EE378C64: to=<celso(a)lugostowing.net>, orig_to=<celso(a)dagan.lugostowing.net>, relay=maildrop, delay=7376, delays=7376/0.05/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /var/mail: Permission denied )
Mar 5 21:52:34 dagan postfix/pipe[4516]: 5D86878C63: to=<celso(a)lugostowing.net>, relay=maildrop, delay=7384, delays=7384/0.06/0/0.09, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /var/mail: Permission denied )

Thanks,
- Motty

-----Original Message-----
From: David Touzeau [mailto:david(a)touzeau.eu]
Sent: Friday, March 05, 2010 1:35 PM
To: motty cruz
Cc: postfix-users(a)postfix.org
Subject: Re: virtual domains

Hello,

I’m having issues with postfix delivering mail to /var/mail/$USER it says permission denied, althougth I gave 755 permission to that dir /var/mail/$USER,



Here is my logs

Mar 5 21:20:18 dagan postfix/postfix-script[4336]: refreshing the Postfix mail system

Mar 5 21:20:18 dagan postfix/master[3467]: reload -- version 2.6.5, configuration /usr/local/etc/postfix

Mar 5 21:20:18 dagan postfix/pickup[4341]: 53BE378C37: uid=125 from=<root(a)lugostowing.net> orig_id=6FE5478C5A

Mar 5 21:20:18 dagan postfix/cleanup[4342]: 53BE378C37:
message-id=<20100306034930.9AEA578C35(a)dagan.lugostowing.net>

Mar 5 21:20:18 dagan postfix/pickup[4341]: 5D7CE78C58: uid=125 from=<root(a)lugostowing.net> orig_id=7FD7B78C5E

Mar 5 21:20:18 dagan postfix/cleanup[4342]: 5D7CE78C58:
message-id=<20100306034938.5C8B278C57(a)dagan.lugostowing.net>

Mar 5 21:25:18 dagan postfix/qmgr[4340]: 53BE378C37:
from=<root(a)lugostowing.net>, size=791, nrcpt=1 (queue active)

Mar 5 21:25:18 dagan postfix/qmgr[4340]: 5D7CE78C58:
from=<root(a)lugostowing.net>, size=673, nrcpt=1 (queue active)

Mar 5 21:25:18 dagan pipe[4378]: fatal: pipe_command: execvp /var/mail:
Permission denied

Mar 5 21:25:18 dagan pipe[4379]: fatal: pipe_command: execvp /var/mail:
Permission denied

Mar 5 21:25:18 dagan postfix/pipe[4376]: 53BE378C37:
to=<celso(a)lugostowing.net>, relay=maildrop, delay=5748, delays=5748/0.06/0/0.06, dsn=4.3.0, status=deferred (temporary failure.
Command output: pipe: fatal: pipe_command: execvp /var/mail: Permission denied )

Mar 5 21:25:18 dagan postfix/pipe[4377]: 5D7CE78C58:
to=<celso(a)lugostowing.net>, orig_to=<celso(a)dagan.lugostowing.net>,
relay=maildrop, delay=5740, delays=5740/0.05/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal:
pipe_command: execvp /var/mail: Permission denied )

dagan#



postconf –n (command)

dagan# postconf -n

biff = no

broken_sasl_auth_clients = yes

command_directory = /usr/local/sbin

config_directory = /usr/local/etc/postfix

daemon_directory = /usr/local/libexec/postfix

data_directory = /var/db/postfix

debug_peer_level = 2

html_directory = /usr/local/share/doc/postfix

inet_interfaces = all

mail_owner = postfix

mail_spool_directory = /var/mail

mailq_path = /usr/local/bin/mailq

manpage_directory = /usr/local/man

mydomain = lugostowing.net

myhostname = dagan.lugostowing.net

myorigin = $mydomain

newaliases_path = /usr/local/bin/newaliases

queue_directory = /var/spool/postfix

readme_directory = /usr/local/share/doc/postfix

sample_directory = /usr/local/etc/postfix

sendmail_path = /usr/local/sbin/sendmail

setgid_group = maildrop

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

unknown_local_recipient_reject_code = 550

virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

virtual_gid_maps = static:5000

virtual_mailbox_base = /var/mail/

virtual_mailbox_domains = /usr/local/etc/postfix/vhosts

virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox

virtual_minimum_uid = 100

virtual_transport = maildrop

virtual_uid_maps = static:5000

dagan#





and my master.cf

maildrop unix - n n - - pipe

flags=DRhu user=vmail argv=/var/mail -d ${user}





Thanks in advance,

-Motty


According your line :

maildrop unix - n n - - pipe

flags=DRhu user=vmail argv=/var/mail -d ${user}


you need to provide vmail user access to /var/mail

do

chown -R vmail /var/mail

From: Wietse Venema on
motty cruz:
> Mar 5 21:25:18 dagan pipe[4378]: fatal: pipe_command: execvp /var/mail:
> Permission denied

> and my master.cf
>
> maildrop unix - n n - - pipe
> flags=DRhu user=vmail argv=/var/mail -d ${user}

You are trying to EXECUTE a command "/var/mail -d ${user}"

You cannot execute a DIRECTORY.

Wietse