PDA

View Full Version : www-data and maildir


nzimas
12th September 2007, 02:07
I some mail deliveries sent out by apache, www-data is unable to create a maildir on /var/www/. Since there is no such directory (/var/www/Maildir), do i have to create it manually and assign proper permissions? Is this a serious error?

An extract of the log follows:

Sep 9 13:09:44 e82-103-138-77s postfix/qmgr[16827]: E0193FE8CAC: from=<>, size=2763, nrcpt=1 (queue active)
Sep 9 13:09:44 e82-103-138-77s postfix/bounce[21039]: C2424FE8CA8: sender non-delivery notification: E0193FE8CAC
Sep 9 13:09:44 e82-103-138-77s postfix/qmgr[16827]: C2424FE8CA8: removed
Sep 9 13:09:44 e82-103-138-77s postfix/local[21037]: warning: maildir access problem for UID/GID=33/33: create maildir file /var/www/Mail
dir/tmp/1189336184.P21037.e82-103-138-77s: Permission denied
Sep 9 13:09:44 e82-103-138-77s postfix/local[21037]: warning: perhaps you need to create the maildirs in advance
Sep 9 13:09:44 e82-103-138-77s postfix/local[21037]: E0193FE8CAC: to=<www-data@e82-103-138-77s.easyspeedy.com>, relay=local, delay=0.02,
delays=0.01/0/0/0.01, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/www/Maildir/tmp/1189336184.P21037.e82-1
03-138-77s: Permission denied)


Nuno.

falko
12th September 2007, 21:58
I suggest you create an alias for the user www-data in /etc/aliases, pointing to your own user or email address, so that you can see the messages that get sent to Apache (probably DSNs).
Don't forget to run newaliases and restart Postfix after your changes.

nzimas
12th September 2007, 22:51
Would

www-data: exting_mailbox_name

do it?

falko
13th September 2007, 19:28
Yes, that would work.