Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Postfix + Courier setup with virtual domains/users in MySQL, however, in /home/vmail these directories are not created so I get:

Apr  1 17:56:18 Lucid authdaemond: Authenticated: clearpasswd=xxx, passwd=xxx
Apr  1 17:56:18 Lucid imapd-ssl: chdir No such file or directory
Apr  1 17:56:18 Lucid imapd-ssl: No such file or directory

I don't want to have to create /home/vmail/ everytime before a new user can login. Is there a way to get the directories created automatically?

share|improve this question

By sending a welcome mail to these directories should be created automatically by Postfix (as far as permissions are granted in the parent directory).

Courier won't create missing directories itself.

But it should be clear that only by inserting a line in a MySQL-table neither Postfix nor Courier will create any directory automagically. One other solution would be to write a script that regularly maildirmake any non-existent directory found in the MySQL-table.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.