mail icon indicating copy to clipboard operation
mail copied to clipboard

Add %DOMAIN% as pattern to the "Add new config" section in "Administration > Groupware > Mail app"

Open dienteperro opened this issue 4 years ago • 1 comments

Feature Request

  1. In a Nextcloud instance install the Mail app
  2. Go to Settings, Administration, Groupware, Mail app
  3. Click on the "+ Add new config" button in order to create a new default Nextcloud-instace-wide setting

Summary

It would be nice to have the %DOMAIN% pattern, so, if you input "domain.com" in the "Provisioning domain" field, it can be used as follows in the rest of required fields for that config:

Email address template: %USERID%@%DOMAIN% (With the result [email protected]) IMAP/SMTP User: %EMAIL% (With the result [email protected]) IMAP Host: imap.%DOMAIN% (With the result imap.domain.com) SMTP Host: smtp.%DOMAIN% (With the result smtp.domain.com)

IMHO this pattern allows to have less repetition or input of the actual domain by the admin for the creation of the default config.

dienteperro avatar Aug 23 '21 02:08 dienteperro

Did you ever get the provisioning working with the %EMAIL% pattern? It seems broken to me:

settings

And when I go to the Mail tab it just stays loading for a very long time and ends up in this:

webmail

My Dovecot says Nextcloud is trying to login with the placeholder lol

 dovecot[9155]: imap-login: Disconnected (auth failed, 4 attempts in 35 secs): **user=<%EMAIL%>**, method=PLAIN, rip=10.10.125.7, lip=10.10.125.4, TLS, session=<AlQT2gv7JOcKCn0H>

It says that “* %USERID% and %EMAIL% will be replaced with the user’s UID and email” but apparently it doesn’t replace the %EMAIL% placeholder with the login email as we can see on the log.

Note: my users will login with 2 different domains using their full e-mail address. The IMAP and SMTP require login with the full e-mail as well.

TCB13 avatar May 06 '23 21:05 TCB13