Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Maildirmake automatic?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ward
n00b
n00b


Joined: 06 Oct 2006
Posts: 74

PostPosted: Wed Dec 13, 2006 3:06 pm    Post subject: Maildirmake automatic? Reply with quote

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
View user's profile Send private message
xoomix
Guru
Guru


Joined: 02 Jan 2003
Posts: 489

PostPosted: Wed Dec 13, 2006 4:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Wed Dec 13, 2006 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
xoomix
Guru
Guru


Joined: 02 Jan 2003
Posts: 489

PostPosted: Thu Dec 14, 2006 1:19 am    Post subject: Reply with quote

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
View user's profile Send private message
chucks
n00b
n00b


Joined: 23 Jan 2007
Posts: 6
Location: Atlanta, GA

PostPosted: Tue Jan 23, 2007 6:20 am    Post subject: /etc/skel is your friend Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum