1 (edited by tuanvcw 2014-02-10 10:41:04)

Topic: Modify default "enabledService" for all "existing" LDAP mail account

======== Required information ====
- iRedMail version: 0.8.6
- iRedAdmin-Pro version: 2.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu Server 12.04
====

I can see that a mail account has several "default" enabledService in LDAP:
mail, deliver, lda, smtp, smtpsecured, pop3, pop3secured, imap, imapsecured ...
I want to add value to this default list, for example: "lmtp", for all "existing" mail account.

As long as I see, this feature is not supported by iRedAdmin-Pro.
Could anyone please show me how to do it?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Modify default "enabledService" for all "existing" LDAP mail account

With iRedAdmin-Pro, please update parameter 'USER_SERVICES_OF_NORMAL_USER' in file libs/ldaplib/attrs.py.

By the way, next release of iRedAdmin-Pro will have enabledService=lmtp by default.

3

Re: Modify default "enabledService" for all "existing" LDAP mail account

Thanks, but you misunderstood my question.
I want it for "existing" mail accounts, NOT "new created" ones.

By your solution, every "new" mail account will have enabledService=lmtp.
That's cool, but I want to modify this attribute for accounts those "already existed" in my domain.
Thank you so much for your quick reply.

4

Re: Modify default "enabledService" for all "existing" LDAP mail account

You can write a shell/python/... script to update them.
Here's a sample Python script:
https://bitbucket.org/zhb/iredmail/src/ … at=default

5

Re: Modify default "enabledService" for all "existing" LDAP mail account

Wao, wonderful !!!
Thank you very much. I really appreciate your support !