Matthias Dietrich a écrit : > Hi list, > > I just installed Postfix with Courier and some addons (spam+anti virus) > and it works fine! Except one thing: the Maildirs of the users are not > created automatically! I don't think this is a desired behavior as this > is a pain in the a** when someone without server access wants to create > new mailboxes. > > I use Postfix with virtual mailboxes for virtual domain hosting. > Authentication is done with mysql, creating of new mailboxes is done via > postfixadmin. I add a new Domain (example.com) and Mailbox > (postmaster). Trying to log in after that brings the following error in > /var/log/syslog: > > imapd: chdir /var/spool/mail/example.com/postmaster/: No such file or > directory >
you need to create the /var/spool/mail/example.com directory. after that, postfix will create the maildir for each user. I am assuming that you deliver with virtual (and not with an external MDA). > If I mkdir this by hand and chown to the correct user (virtual:virtual), > I can login (although SquirrelMail gets an error after login because no > folders within the users Maildir exists). > > Could need a helping hand! Is there a config variable that enables > creating these mailboxes? Or have I done anything wrong? Where to have > a look? Or do you need the config files to see what could be wrong? > > Thanks, > Matthias >