[GH-ISSUE #407] Add (multiple) accounts using API/Etc.. ? #338

Closed
opened 2026-02-25 21:34:47 +03:00 by kerem · 8 comments
Owner

Originally created by @Yamakasi on GitHub (Jun 15, 2020).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/407

Originally assigned to: @jasonmunro on GitHub.

I'm looking into a way to add accounts for a user so he doesn't need to add them himself.

Now I login using API against LDAP which adds the account perfectly but I'm in need of adding multiple using LDAP AUTH or a request/DB insert for Cypht.

For Dovecot I was thinking of using a master user for multi account access which seems to do the job for it.

Any idea ?

Originally created by @Yamakasi on GitHub (Jun 15, 2020). Original GitHub issue: https://github.com/cypht-org/cypht/issues/407 Originally assigned to: @jasonmunro on GitHub. I'm looking into a way to add accounts for a user so he doesn't need to add them himself. Now I login using API against LDAP which adds the account perfectly but I'm in need of adding multiple using LDAP AUTH or a request/DB insert for Cypht. For Dovecot I was thinking of using a master user for multi account access which seems to do the job for it. Any idea ?
kerem 2026-02-25 21:34:47 +03:00
Author
Owner

@jasonmunro commented on GitHub (Jun 19, 2020):

This is a complicated request and maybe outside the scope of a webmail project? I understand the need but not sure it's the right place for this kind of functionality.

<!-- gh-comment-id:646489363 --> @jasonmunro commented on GitHub (Jun 19, 2020): This is a complicated request and maybe outside the scope of a webmail project? I understand the need but not sure it's the right place for this kind of functionality.
Author
Owner

@Yamakasi commented on GitHub (Jun 19, 2020):

This is a complicated request and maybe outside the scope of a webmail project? I understand the need but not sure it's the right place for this kind of functionality.

I'm trying to find a decent way from a middle-ware point of view. Not that Cypht has lack on it but more to see if there are standards.

Extra accounts adding could be actually an automated ways, API end point or even direct SQL inserts, like the user does it by himself in Cypht. Issue there is the serialization of settings and such. Can't we "outscope" that process to a simple API ?

Just thinking loudly :)

<!-- gh-comment-id:646870506 --> @Yamakasi commented on GitHub (Jun 19, 2020): > > > This is a complicated request and maybe outside the scope of a webmail project? I understand the need but not sure it's the right place for this kind of functionality. I'm trying to find a decent way from a middle-ware point of view. Not that Cypht has lack on it but more to see if there are standards. Extra accounts adding could be actually an automated ways, API end point or even direct SQL inserts, like the user does it by himself in Cypht. Issue there is the serialization of settings and such. Can't we "outscope" that process to a simple API ? Just thinking loudly :)
Author
Owner

@marclaporte commented on GitHub (Oct 29, 2020):

@Yamakasi which mail servers do you use?

<!-- gh-comment-id:718290081 --> @marclaporte commented on GitHub (Oct 29, 2020): @Yamakasi which mail servers do you use?
Author
Owner

@Yamakasi commented on GitHub (Nov 2, 2020):

@Yamakasi which mail servers do you use?

I suppose you mean IMAP servers ?

Storage: Dovecot
MTA: Postfix

I can do do some magic with SQL if needed.

What are you suggesting then ?

<!-- gh-comment-id:720760357 --> @Yamakasi commented on GitHub (Nov 2, 2020): > > > @Yamakasi which mail servers do you use? I suppose you mean IMAP servers ? Storage: Dovecot MTA: Postfix I can do do some magic with SQL if needed. What are you suggesting then ?
Author
Owner

@marclaporte commented on GitHub (Nov 2, 2020):

I have no clear plan yet but just some ideas. I would like ad hoc creation of email addresses. Ex.: A team member starts a new project and creates a mailbox and sets permissions for it.

I have no idea how we can make this generic. I suspect it will end up being a specific process for each server.

<!-- gh-comment-id:720764752 --> @marclaporte commented on GitHub (Nov 2, 2020): I have no clear plan yet but just some ideas. I would like ad hoc creation of email addresses. Ex.: A team member starts a new project and creates a mailbox and sets permissions for it. I have no idea how we can make this generic. I suspect it will end up being a specific process for each server.
Author
Owner

@Yamakasi commented on GitHub (Nov 3, 2020):

I have no clear plan yet but just some ideas. I would like ad hoc creation of email addresses. Ex.: A team member starts a new project and creates a mailbox and sets permissions for it.

I have no idea how we can make this generic. I suspect it will end up being a specific process for each server.

Yes sounds like custom. That's why I don't like glue things together as in your wiki, I write such things from scratch, webmail is just a client.

<!-- gh-comment-id:721340139 --> @Yamakasi commented on GitHub (Nov 3, 2020): > > > I have no clear plan yet but just some ideas. I would like ad hoc creation of email addresses. Ex.: A team member starts a new project and creates a mailbox and sets permissions for it. > > I have no idea how we can make this generic. I suspect it will end up being a specific process for each server. Yes sounds like custom. That's why I don't like glue things together as in your wiki, I write such things from scratch, webmail is just a client.
Author
Owner

@marclaporte commented on GitHub (Jul 31, 2022):

Related: https://github.com/jasonmunro/cypht/issues/470

<!-- gh-comment-id:1200483851 --> @marclaporte commented on GitHub (Jul 31, 2022): Related: https://github.com/jasonmunro/cypht/issues/470
Author
Owner

@marclaporte commented on GitHub (Sep 4, 2025):

Closing this. Import tool has been done: https://github.com/cypht-org/cypht/pull/976

And discussions on "Declarative config for multiple accounts" continues here: https://github.com/cypht-org/cypht/issues/974

<!-- gh-comment-id:3253510678 --> @marclaporte commented on GitHub (Sep 4, 2025): Closing this. Import tool has been done: https://github.com/cypht-org/cypht/pull/976 And discussions on "Declarative config for multiple accounts" continues here: https://github.com/cypht-org/cypht/issues/974
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#338
No description provided.