Re: [Dovecot] Auto create folder(s)
Thomas Mueller wrote:
hi lars
Hi.
if you're using PAM as pass-db: have a look at pam_mkhomedir.so
I will.
if not -> maybe this is for you:http://wiki.dovecot.org/PostLoginScripting
Even better.
Thanks /Lars
PS. Please keep on list.
Lars Stavholm schrieb:
Hi All,
does anyone know of a way to automatically create user folder(s)? Like creating a Spam folder on login if not already there. I've googled a bit but couldn't find anything relevant.
Any advice appreciated
R /Lars
On 9/26/2007, Lars Stavholm (stava@telcotec.se) wrote:
if not -> maybe this is for you:http://wiki.dovecot.org/PostLoginScripting
Even better.
But then this would happen for every user, at every login, when all you need is to do it once, when the new user is created...
Postfixadmin does this automatically when the account is created, and this is the ideal time to do such things, no?
--
Best regards,
Charles
Charles Marcus wrote:
On 9/26/2007, Lars Stavholm (stava@telcotec.se) wrote:
if not -> maybe this is for you:http://wiki.dovecot.org/PostLoginScripting
Even better.
But then this would happen for every user, at every login, when all you need is to do it once, when the new user is created...
Very true.
Postfixadmin does this automatically when the account is created, and this is the ideal time to do such things, no?
It is the ideal time, you're right about that. However, to my understanding, Postfixadmin is a web interface for managing postfix config and users in a mysql db. Not very automated. Our users are normal unix users (we do use LDAP) and are not stored in mysql. We use webmin/LDAP for user maintenance.
Thanks /Lars
on 9/26/2007 11:18 AM Lars Stavholm spake the following:
Charles Marcus wrote:
On 9/26/2007, Lars Stavholm (stava@telcotec.se) wrote:
if not -> maybe this is for you:http://wiki.dovecot.org/PostLoginScripting Even better. But then this would happen for every user, at every login, when all you need is to do it once, when the new user is created...
Very true.
Postfixadmin does this automatically when the account is created, and this is the ideal time to do such things, no?
It is the ideal time, you're right about that. However, to my understanding, Postfixadmin is a web interface for managing postfix config and users in a mysql db. Not very automated. Our users are normal unix users (we do use LDAP) and are not stored in mysql. We use webmin/LDAP for user maintenance.
Thanks /Lars
Can you create the directory structure in your /etc/skel directory so it gets copied to the users home directory on user creation.
-- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
Postfixadmin does this automatically when the account is created, and this is the ideal time to do such things, no?
It is the ideal time, you're right about that. However, to my understanding, Postfixadmin is a web interface for managing postfix config and users in a mysql db. Not very automated. Our users are normal unix users (we do use LDAP) and are not stored in mysql. We use webmin/LDAP for user maintenance.
Can you create the directory structure in your /etc/skel directory so it gets copied to the users home directory on user creation.
Yeah - but whatever, it should be the tool that creates the user that does this...
--
Best regards,
Charles
Lars Stavholm wrote:
Charles Marcus wrote:
On 9/26/2007, Lars Stavholm (stava@telcotec.se) wrote:
if not -> maybe this is for you:http://wiki.dovecot.org/PostLoginScripting Even better. But then this would happen for every user, at every login, when all you need is to do it once, when the new user is created...
Very true.
Postfixadmin does this automatically when the account is created, and this is the ideal time to do such things, no?
It is the ideal time, you're right about that. However, to my understanding, Postfixadmin is a web interface for managing postfix config and users in a mysql db. Not very automated. Our users are normal unix users (we do use LDAP) and are not stored in mysql. We use webmin/LDAP for user maintenance.
These folders could easily be create dynamically by maildrop, if used as your MDA. I use it as my MDA between Postfix and Dovecot to automatically create spam folders for new accounts and also for delivering mail that exceeds our spam thresholds into the spam folder for end user review.
Bill
On 9/26/2007, Bill Landry (bill@inetmsg.com) wrote:
These folders could easily be create dynamically by maildrop, if used as your MDA. I use it as my MDA between Postfix and Dovecot to automatically create spam folders for new accounts and also for delivering mail that exceeds our spam thresholds into the spam folder for end user review.
So it sounds like this is a good candidate for an enhancement to the dovecot LDA...
--
Best regards,
Charles
Charles Marcus wrote:
On 9/26/2007, Bill Landry (bill@inetmsg.com) wrote:
These folders could easily be create dynamically by maildrop, if used as your MDA. I use it as my MDA between Postfix and Dovecot to automatically create spam folders for new accounts and also for delivering mail that exceeds our spam thresholds into the spam folder for end user review.
So it sounds like this is a good candidate for an enhancement to the dovecot LDA...
Why? Is this not available via sieve?
-- Daniel
Daniel L. Miller wrote:
Charles Marcus wrote:
On 9/26/2007, Bill Landry (bill@inetmsg.com) wrote:
These folders could easily be create dynamically by maildrop, if used as your MDA. I use it as my MDA between Postfix and Dovecot to automatically create spam folders for new accounts and also for delivering mail that exceeds our spam thresholds into the spam folder for end user review.
So it sounds like this is a good candidate for an enhancement to the dovecot LDA...
Why? Is this not available via sieve?
How do you create folder(s) using sieve? /L
On 08:50:42 2007-09-27 Lars Stavholm stava@telcotec.se wrote:
Daniel L. Miller wrote:
Charles Marcus wrote:
On 9/26/2007, Bill Landry (bill@inetmsg.com) wrote:
These folders could easily be create dynamically by maildrop, if used as your MDA. I use it as my MDA between Postfix and Dovecot to automatically create spam folders for new accounts and also for delivering mail that exceeds our spam thresholds into the spam folder for end user review.
So it sounds like this is a good candidate for an enhancement to the dovecot LDA...
Why? Is this not available via sieve?
How do you create folder(s) using sieve? /L
Please do tell how... I would also be interested in such a feature if it doesn't yet support it...
-- Andraž "ruskie" Levstik Source Mage GNU/Linux Games grimoire guru Geek/Hacker/Tinker
Be sure brain is in gear before engaging mouth.
Key id = F4C1F89C Key fingerprint = 6FF2 8F20 4C9D DB36 B5B6 F134 884D 72CC F4C1 F89C
On 08:50:42 2007-09-27 Lars Stavholm stava@telcotec.se wrote:
Daniel L. Miller wrote:
Charles Marcus wrote:
On 9/26/2007, Bill Landry (bill@inetmsg.com) wrote:
These folders could easily be create dynamically by maildrop, if used as your MDA. I use it as my MDA between Postfix and Dovecot to automatically create spam folders for new accounts and also for delivering mail that exceeds our spam thresholds into the spam folder for end user review.
So it sounds like this is a good candidate for an enhancement to the dovecot LDA...
Why? Is this not available via sieve?
How do you create folder(s) using sieve? /L
Please do tell how... I would also be interested in such a feature if it doesn't yet support it...
deliver creates the folders, specified in sieve script, if they don't exist yet.
Regards, Gregory
participants (7)
-
"Andraž 'ruskie' Levstik"
-
Bill Landry
-
Charles Marcus
-
Daniel L. Miller
-
Gregory Mokhin
-
Lars Stavholm
-
Scott Silva