autocreate ONLY for new Users
Hi All
We are currently migrating accounts to Dovecot. The existing accounts do have special folders with different names. (i.e. sent, sent-mail)
The autocreate-function of "special folders" is useful. However we need this feature ONLY for new users. The existing accounts have a mapping for their own "special folders".
There are discussions about this topic on the mailing list: /http://www.dovecot.org/list/dovecot/2014-August/097313.html https://dovecot.org/list/dovecot/2016-May/104296.html/
Did someone manage to implement this ? Are there workarounds?
Thanks and regards plataleas
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 14 Mar 2017, plataleas wrote:
We are currently migrating accounts to Dovecot. The existing accounts do have special folders with different names. (i.e. sent, sent-mail)
The autocreate-function of "special folders" is useful. However we need this feature ONLY for new users. The existing accounts have a mapping for their own "special folders".
Did someone manage to implement this ? Are there workarounds?
Workaround might be the thread "Auto create & subscribe folder from Userdb".
Configure Dovecot to autocreate / autosubscribe and configure the userdb of existing users to override auto with no .
You should test however, if some mail clients get confused with the new special use folders. When I switched them on several years ago, I had no complains about this. So, I guess, this "advice" (special use tag) is taken into account during account creation only.
I'm not sure if you can override "special_use = \Sent", too.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBWMjhTnz1H7kL/d9rAQL6UQf/dwNMfEJBXEkg2KQuQVDSmQmQ08Sq3yO+ QeWli1PndWerNJW0Bw2UUP1vtDenQD2HIJVXD5EuO89rycPwaZgK1Pj/NtKeDsN0 zRqYT/znsa9zaCHHyosZVFOVDY2Cat7xUeXv/xb4MCfXDp3dnp0WjRq34Oy0oP11 kq190YmjEkPmIYSIuSnOYfHrgmwMciIP8jzLBwNcEU4TXEgCr6beblVEsfZTxAMs vADo6A0KHCcIL22tJxX452kEE91QeqfurSmcClb5cY+Wo2rTgwBzfRBqvnD/VjCi CkAkyeKFUI//HgI1VBRuiE0b4vQ4Nte0jLyikleVpYW5wxNfFSK0zw== =sUHp -----END PGP SIGNATURE-----
thanks for the feedback!
Userdb would be an option, however we would need to extend our LDAP Schema with an additional "autocreate flag". Modifying the LDAP import scripts, this is quite a task. Another option we were thinking of is creating the special folders by a script right after user creation.
By far the best and easiest solution would be a flag to auto-create the special folders ONLY on first login.
Is there any chance to get this feature?
Thanks a lot!
On 03/15/2017 07:38 AM, Steffen Kaiser wrote:
On Tue, 14 Mar 2017, plataleas wrote:
We are currently migrating accounts to Dovecot. The existing accounts do have special folders with different names. (i.e. sent, sent-mail)
The autocreate-function of "special folders" is useful. However we need this feature ONLY for new users. The existing accounts have a mapping for their own "special folders".
Did someone manage to implement this ? Are there workarounds?
Workaround might be the thread "Auto create & subscribe folder from Userdb".
Configure Dovecot to autocreate / autosubscribe and configure the userdb of existing users to override auto with no .
You should test however, if some mail clients get confused with the new special use folders. When I switched them on several years ago, I had no complains about this. So, I guess, this "advice" (special use tag) is taken into account during account creation only.
I'm not sure if you can override "special_use = \Sent", too.
-- Steffen Kaiser
You could also use welcome plugin to execute a custom script on first login.
Aki
On 15.03.2017 09:28, plataleas wrote:
thanks for the feedback!
Userdb would be an option, however we would need to extend our LDAP Schema with an additional "autocreate flag". Modifying the LDAP import scripts, this is quite a task. Another option we were thinking of is creating the special folders by a script right after user creation.
By far the best and easiest solution would be a flag to auto-create the special folders ONLY on first login.
Is there any chance to get this feature?
Thanks a lot!
On 03/15/2017 07:38 AM, Steffen Kaiser wrote:
On Tue, 14 Mar 2017, plataleas wrote:
We are currently migrating accounts to Dovecot. The existing accounts do have special folders with different names. (i.e. sent, sent-mail) The autocreate-function of "special folders" is useful. However we need this feature ONLY for new users. The existing accounts have a mapping for their own "special folders". Did someone manage to implement this ? Are there workarounds? Workaround might be the thread "Auto create & subscribe folder from Userdb".
Configure Dovecot to autocreate / autosubscribe and configure the userdb of existing users to override auto with no .
You should test however, if some mail clients get confused with the new special use folders. When I switched them on several years ago, I had no complains about this. So, I guess, this "advice" (special use tag) is taken into account during account creation only.
I'm not sure if you can override "special_use = \Sent", too.
-- Steffen Kaiser
Thanks Aki!!
The welcome plugin sounds like the best workaround. To implement this we would need to upgrade our Dovecot installation:
dovecot-core: Installed: 1:2.2.24-1~bpo8+1 Candidate: 1:2.2.27-2~bpo8+1
Are there special recommendations for the upgrade process (in addition to the Dovecot NEWS file)? Any special steps we should be aware of during the upgrade?
Is it that simple "apt-get upgrade dovecot-core"?
your experiences are highly appreciated! This is our first Dovecot upgrade :-)
On 03/15/2017 11:43 AM, Aki Tuomi wrote:
You could also use welcome plugin to execute a custom script on first login.
Aki
On 15.03.2017 09:28, plataleas wrote:
thanks for the feedback!
Userdb would be an option, however we would need to extend our LDAP Schema with an additional "autocreate flag". Modifying the LDAP import scripts, this is quite a task. Another option we were thinking of is creating the special folders by a script right after user creation.
By far the best and easiest solution would be a flag to auto-create the special folders ONLY on first login.
Is there any chance to get this feature?
Thanks a lot!
On 03/15/2017 07:38 AM, Steffen Kaiser wrote:
On Tue, 14 Mar 2017, plataleas wrote:
We are currently migrating accounts to Dovecot. The existing accounts do have special folders with different names. (i.e. sent, sent-mail) The autocreate-function of "special folders" is useful. However we need this feature ONLY for new users. The existing accounts have a mapping for their own "special folders". Did someone manage to implement this ? Are there workarounds? Workaround might be the thread "Auto create & subscribe folder from Userdb".
Configure Dovecot to autocreate / autosubscribe and configure the userdb of existing users to override auto with no .
You should test however, if some mail clients get confused with the new special use folders. When I switched them on several years ago, I had no complains about this. So, I guess, this "advice" (special use tag) is taken into account during account creation only.
I'm not sure if you can override "special_use = \Sent", too.
-- Steffen Kaiser
welcome plugin is already present in 2.2.24, so in that sense, no need to upgrade. Other than that, it should be rather straightforward upgrade.
Aki
On 15.03.2017 13:07, plataleas wrote:
Thanks Aki!!
The welcome plugin sounds like the best workaround. To implement this we would need to upgrade our Dovecot installation:
dovecot-core: Installed: 1:2.2.24-1~bpo8+1 Candidate: 1:2.2.27-2~bpo8+1
Are there special recommendations for the upgrade process (in addition to the Dovecot NEWS file)? Any special steps we should be aware of during the upgrade?
Is it that simple "apt-get upgrade dovecot-core"?
your experiences are highly appreciated! This is our first Dovecot upgrade :-)
On 03/15/2017 11:43 AM, Aki Tuomi wrote:
You could also use welcome plugin to execute a custom script on first login.
Aki
On 15.03.2017 09:28, plataleas wrote:
thanks for the feedback!
Userdb would be an option, however we would need to extend our LDAP Schema with an additional "autocreate flag". Modifying the LDAP import scripts, this is quite a task. Another option we were thinking of is creating the special folders by a script right after user creation.
By far the best and easiest solution would be a flag to auto-create the special folders ONLY on first login.
Is there any chance to get this feature?
Thanks a lot!
On 03/15/2017 07:38 AM, Steffen Kaiser wrote:
On Tue, 14 Mar 2017, plataleas wrote:
We are currently migrating accounts to Dovecot. The existing accounts do have special folders with different names. (i.e. sent, sent-mail) The autocreate-function of "special folders" is useful. However we need this feature ONLY for new users. The existing accounts have a mapping for their own "special folders". Did someone manage to implement this ? Are there workarounds? Workaround might be the thread "Auto create & subscribe folder from Userdb".
Configure Dovecot to autocreate / autosubscribe and configure the userdb of existing users to override auto with no .
You should test however, if some mail clients get confused with the new special use folders. When I switched them on several years ago, I had no complains about this. So, I guess, this "advice" (special use tag) is taken into account during account creation only.
I'm not sure if you can override "special_use = \Sent", too.
-- Steffen Kaiser
The welcome plugin is only available for Dovecot Versions 2.2.25+.
root@dcot02:~# dovecot --version 2.2.24 (a82c823) root@dcot02:~# grep Error /var/log/syslog Mar 15 15:13:47 dcot02 dovecot: imap: Error: Plugin 'welcome' not found from directory /usr/lib/dovecot/modules Mar 15 15:13:47 dcot02 dovecot: imap: Error: Internal error occurred. Refer to server log for more information.
Thanks
On 03/15/2017 12:35 PM, Aki Tuomi wrote:
welcome plugin is already present in 2.2.24, so in that sense, no need to upgrade. Other than that, it should be rather straightforward upgrade.
Aki
On 15.03.2017 13:07, plataleas wrote:
Thanks Aki!!
The welcome plugin sounds like the best workaround. To implement this we would need to upgrade our Dovecot installation:
dovecot-core: Installed: 1:2.2.24-1~bpo8+1 Candidate: 1:2.2.27-2~bpo8+1
Are there special recommendations for the upgrade process (in addition to the Dovecot NEWS file)? Any special steps we should be aware of during the upgrade?
Is it that simple "apt-get upgrade dovecot-core"?
your experiences are highly appreciated! This is our first Dovecot upgrade :-)
On 03/15/2017 11:43 AM, Aki Tuomi wrote:
You could also use welcome plugin to execute a custom script on first login.
Aki
On 15.03.2017 09:28, plataleas wrote:
thanks for the feedback!
Userdb would be an option, however we would need to extend our LDAP Schema with an additional "autocreate flag". Modifying the LDAP import scripts, this is quite a task. Another option we were thinking of is creating the special folders by a script right after user creation.
By far the best and easiest solution would be a flag to auto-create the special folders ONLY on first login.
Is there any chance to get this feature?
Thanks a lot!
On 03/15/2017 07:38 AM, Steffen Kaiser wrote:
On Tue, 14 Mar 2017, plataleas wrote:
We are currently migrating accounts to Dovecot. The existing accounts do have special folders with different names. (i.e. sent, sent-mail) The autocreate-function of "special folders" is useful. However we need this feature ONLY for new users. The existing accounts have a mapping for their own "special folders". Did someone manage to implement this ? Are there workarounds? Workaround might be the thread "Auto create & subscribe folder from Userdb".
Configure Dovecot to autocreate / autosubscribe and configure the userdb of existing users to override auto with no .
You should test however, if some mail clients get confused with the new special use folders. When I switched them on several years ago, I had no complains about this. So, I guess, this "advice" (special use tag) is taken into account during account creation only.
I'm not sure if you can override "special_use = \Sent", too.
-- Steffen Kaiser
participants (3)
-
Aki Tuomi
-
plataleas
-
Steffen Kaiser