[GH-ISSUE #1031] Import domains and accounts #872

Closed
opened 2026-02-27 11:14:02 +03:00 by kerem · 6 comments
Owner

Originally created by @oconshaw on GitHub (Feb 14, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1031

Password problem on import of user accounts from csv file.
When I import accounts from a csv file there is a problem with authentication to webmail.

I will import a csv file and choose NOT to encrypt the password. The accounts get created OK. I can login. However, when I try to connect to webmail the password fails. I think probably because it is trying to decrypt a password that is not encrypted.

When I got into the admin interface and reset the password (to the same password) and update it fixes the problem.

I suspect this probably breaks the offline-imap extension as well.

Impacted versions

  • Modoboa: 1.6.3
  • installer used: Yes
  • Webserver: Nginx
Originally created by @oconshaw on GitHub (Feb 14, 2017). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1031 Password problem on import of user accounts from csv file. When I import accounts from a csv file there is a problem with authentication to webmail. I will import a csv file and choose NOT to encrypt the password. The accounts get created OK. I can login. However, when I try to connect to webmail the password fails. I think probably because it is trying to decrypt a password that is not encrypted. When I got into the admin interface and reset the password (to the same password) and update it fixes the problem. I suspect this probably breaks the offline-imap extension as well. # Impacted versions * Modoboa: 1.6.3 * installer used: Yes * Webserver: Nginx
kerem 2026-02-27 11:14:02 +03:00
Author
Owner

@tonioo commented on GitHub (Feb 15, 2017):

@oconshaw How did you create the CSV file?

About the password, is it already encrypted? What is its format in the file?

<!-- gh-comment-id:279946452 --> @tonioo commented on GitHub (Feb 15, 2017): @oconshaw How did you create the CSV file? About the password, is it already encrypted? What is its format in the file?
Author
Owner

@oconshaw commented on GitHub (Feb 21, 2017):

Here is an example:
for accounts;
account,test@abc.com,password123,,,TRUE,SimpleUsers,test@abc.com,0,abc.com

for domains:
domain,abc.com,0,TRUE

No, password is not encrypted.

<!-- gh-comment-id:281445543 --> @oconshaw commented on GitHub (Feb 21, 2017): Here is an example: for accounts; account,test@abc.com,password123,,,TRUE,SimpleUsers,test@abc.com,0,abc.com for domains: domain,abc.com,0,TRUE No, password is not encrypted.
Author
Owner

@tonioo commented on GitHub (Feb 21, 2017):

You need to specify the scheme used to crypt password. In your case, use the following prefix: {PLAIN}password123.

<!-- gh-comment-id:281477187 --> @tonioo commented on GitHub (Feb 21, 2017): You need to specify the scheme used to crypt password. In your case, use the following prefix: `{PLAIN}password123`.
Author
Owner

@tonioo commented on GitHub (Mar 2, 2017):

@oconshaw Have you tried again?

<!-- gh-comment-id:283620585 --> @tonioo commented on GitHub (Mar 2, 2017): @oconshaw Have you tried again?
Author
Owner

@tonioo commented on GitHub (Apr 20, 2017):

Closed for inactivity.

<!-- gh-comment-id:295654454 --> @tonioo commented on GitHub (Apr 20, 2017): Closed for inactivity.
Author
Owner

@shwetd19 commented on GitHub (May 20, 2025):

@tonioo can you pls help me with this, I've tried
for accounts;
account,test@abc.com,password123,,,TRUE,SimpleUsers,test@abc.com,0,abc.com

for domains:
domain,abc.com,0,TRUE

but it's still not working

<!-- gh-comment-id:2893138714 --> @shwetd19 commented on GitHub (May 20, 2025): @tonioo can you pls help me with this, I've tried for accounts; account,[test@abc.com](mailto:test@abc.com),password123,,,TRUE,SimpleUsers,[test@abc.com](mailto:test@abc.com),0,abc.com for domains: domain,abc.com,0,TRUE but it's still not working
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/modoboa-modoboa#872
No description provided.