diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-11-15 16:26:56 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-04 10:49:38 +0300 |
commit | ad29c8a46cc0bc6e783e82cc81ea5c701c66fb98 (patch) | |
tree | e4f2c3c193747b84c4e8e6145531b204a55c3ff5 /doc | |
parent | 26c13bc035177ae100054e21ba97f61f6d8d5c50 (diff) |
Persist provisioned accounts
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/admin.md | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/doc/admin.md b/doc/admin.md index acebe76bf..9496b43ee 100644 --- a/doc/admin.md +++ b/doc/admin.md @@ -9,52 +9,6 @@ Then open the Mail app from the app menu. Put in your mail account credentials a Certain advanced or experimental features need to be specifically enabled in your `config.php`: -### Automatic account creation - -In cases where an external user back-end is used for both your Nextcloud and your mail server you may want to have imap accounts set up automatically for your users. - -### Available patterns - -Two patterns are available to automatically construct credentials: -* `%USERID%`, e.g. `jan` -* `%EMAIL%`, e.g. `jan@domain.tld` - -### Minimal configuration - -The following minimal configuration will add such an account as soon as the user logs in. The login password is used for the IMAP and SMTP authentication. - -Note: Valid values for SSL are `'none'`, `'ssl'` and `'tls'`. - -``` - 'app.mail.accounts.default' => [ - 'email' => '%USERID%@domain.tld', - 'imapHost' => 'imap.domain.tld', - 'imapPort' => 993, - 'imapSslMode' => 'ssl', - 'smtpHost' => 'smtp.domain.tld', - 'smtpPort' => 486, - 'smtpSslMode' => 'tls', - ], -``` - -### Advanced configuration - -In case you have to tweak IMAP and SMTP username, you can do that too. - -``` - 'app.mail.accounts.default' => [ - 'email' => '%USERID%@domain.tld', - 'imapHost' => 'imap.domain.tld', - 'imapPort' => 993, - 'imapUser' => '%USERID%@domain.tld', - 'imapSslMode' => 'ssl', - 'smtpHost' => 'smtp.domain.tld', - 'smtpPort' => 486, - 'smtpUser' => '%USERID%@domain.tld', - 'smtpSslMode' => 'tls', - ], -``` - ### Timeouts Depending on your mail host, it may be necessary to increase your IMAP and/or SMTP timeout threshold. Currently IMAP defaults to 20 seconds and SMTP defaults to 2 seconds. They can be changed as follows: |