nextcloud / user_external

👥 External user authentication methods like IMAP, SMB and FTP
https://apps.nextcloud.com/apps/user_external
109 stars 65 forks source link

Better IMAP and Mail app integration #120

Open republicus opened 4 years ago

republicus commented 4 years ago

Is your feature request related to a problem? Please describe. Users are able to log in against my IMAP server. In using Nextcloud Mail app, I have configured the app to provision IMAP/SMTP settings for every user.

1) I have several domains hosted on my mail server and successfully authenticating with user_external. I wish to provision all of them.

This is more easily done by using %EMAIL% instead of %USERID%@domain.com because the domain may vary. But new accounts are not auto populating the user's Email details.

My mail server's logon username credentials is the user's full email -- so the user's email is already known and passed on the first login with user_external.

2) New accounts have not their email accounts auto provisioned according to details in: Admin Settings > Groupware > Mail app > Provision an account for every user. Currently I am required to Apply and create/update for all users after each user's initial logon.

Describe the solution you'd like 1) Possible that new OC_User_IMAP backend users auto populate Nextcloud users' Email field? Perhaps another parameter to import username as Nextcloud user's email details..

2) Possible to hook the Apply and create/update for all users after initial OC_User_IMAP backend user creation?

violoncelloCH commented 4 years ago

thanks for the suggestion! The first part is already covered by #12 ... for the second part we'd probably need some assistance from on of the mail devs (cc @ChristophWurst ?) because I've no idea how this auto provisioning works...

ChristophWurst commented 4 years ago

New accounts have not their email accounts auto provisioned according to details in: Admin Settings > Groupware > Mail app > Provision an account for every user. Currently I am required to Apply and create/update for all users after each user's initial logon.

Fixed by https://github.com/nextcloud/mail/pull/2403