View previous topic :: View next topic |
Author |
Message |
Ward n00b
Joined: 06 Oct 2006 Posts: 74
|
Posted: Wed Dec 13, 2006 3:06 pm Post subject: Maildirmake automatic? |
|
|
Every time I make an account on my mailserver I have to manually make the account directory with the command maildirmake
Is there a way that postfix detect that it isn't created yet and creates the directory with the "cur","new","temp" folders? |
|
Back to top |
|
|
xoomix Guru
Joined: 02 Jan 2003 Posts: 489
|
Posted: Wed Dec 13, 2006 4:28 pm Post subject: |
|
|
Postfix doesn't do this. This is an IMAP server thing, maildirmake specifically is a courier command. I personally use dovecot as my IMAP service, and it creates everything for me automatically. Sounds like it just differs depending on what you're using. |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Wed Dec 13, 2006 8:31 pm Post subject: |
|
|
Postfix will create the maildir on first delivery to a 'new' local or virtual user. It wouldn't be able to deliver mail otherwise. You shouldn't have to use maildirmake. |
|
Back to top |
|
|
xoomix Guru
Joined: 02 Jan 2003 Posts: 489
|
Posted: Thu Dec 14, 2006 1:19 am Post subject: |
|
|
magic919 wrote: | Postfix will create the maildir on first delivery to a 'new' local or virtual user. It wouldn't be able to deliver mail otherwise. You shouldn't have to use maildirmake. |
Can you point us to the Postfix documentation that says that Postfix will make the "cur" "new" and "temp" dirs pls?
WARD: Have you tried this before you posted? I am assuming you did
Sometimes when you install imap services like courier, cyrus, dovecot, etc. it also installs 'maildrop' along with it, which is most likely what creates those sub-dirs. Tell us what you did to test. After creating a new user have you tried sending a mail to that user to see if they get magically created? |
|
Back to top |
|
|
chucks n00b
Joined: 23 Jan 2007 Posts: 6 Location: Atlanta, GA
|
Posted: Tue Jan 23, 2007 6:20 am Post subject: /etc/skel is your friend |
|
|
Assuming you already have courier-imap emerged, you can automate the process of creating user maildirs by executing the following as root:
root@y0ur00b3r1337b0x# maildirmake /etc/skel/.maildir
You can change the specific name of the maildir to your liking. Now, everytime you create a user with `useradd` and the `-m` option, you've got a user with a maildir and less hassle on your part.
Have a good day, citizen. |
|
Back to top |
|
|
|