www-data and maildir

Discussion in 'Installation/Configuration' started by nzimas, Sep 12, 2007.

  1. nzimas

    nzimas Member

    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:

    Code:
    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=<[email protected]>, 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.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    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
    Code:
    newaliases
    and restart Postfix after your changes.
     
  3. nzimas

    nzimas Member

    Would

    www-data: exting_mailbox_name

    do it?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Yes, that would work.
     

Share This Page