remove debuging config

This commit is contained in:
Sebastian Hugentobler 2021-08-23 19:31:54 +02:00
parent e65967abcf
commit c147ac4700
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
5 changed files with 22 additions and 12 deletions

View File

@ -1,4 +1,4 @@
[Dovecot](http://www.dovecot.org/) with imap, starttls, oauth2 and sieve rules.
[Dovecot](http://www.dovecot.org/) with imap, starttls, oauth2 proxy auth and sieve rules.
Uses [SSMTP](https://packages.debian.org/stable/mail/ssmtp) to send mails (for example if you have a redirect sieve rule).
@ -9,6 +9,27 @@ Uses [SSMTP](https://packages.debian.org/stable/mail/ssmtp) to send mails (for e
## HOSTNAME
Fully qualified name of the mail host.
## GRANT_URL
OAuth2 url for token grants (password grant type).
## INTROSPECTION_URL
OAuth2 url for token information.
## USER_URL
OAuth2 url for getting available users, the username will be appended to the end.
## CLIENT_ID
Id of the OAuth2 application.
## CLIENT_SECRET
Secret of the OAuth2 application.
## OAUTH_ADMIN_USER
User with which to perform user lookups (does not have to be an admin, but needs enough rights for that).
## OAUTH_ADMIN_PASSWORD
Password for the `OAUTH_ADMIN_USER`.
## SSMTP_MAIL_RELAY
Hostname and port for the used smtp relay (for example `mail.example.com:587`).

View File

@ -2,6 +2,3 @@ auth_username_chars = {{getenv "ALLOWED_USERNAME_CHARS" "äöüabcdefghijklmnopq
auth_username_format = %n
auth_mechanisms = {{getenv "AUTH_MECHANISMS" "plain login oauthbearer xoauth2"}}
!include auth-oauth2.conf.ext
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes

View File

@ -10,11 +10,6 @@ passdb {
args = /etc/dovecot/dovecot-oauth2.plain.conf.ext
}
#userdb {
# driver = static
# args = uid=vmail gid=vmail username_format=%n home=/var/lib/vmail/mail/%n
#}
userdb {
driver = lua
args = file=/etc/dovecot/oauth2-userdb.lua blocking=yes

View File

@ -7,4 +7,3 @@ username_attribute = username
tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt
use_grant_password = yes
pass_attrs = host=127.0.0.1 proxy=y proxy_mech=xoauth2 pass=%{oauth2:access_token}
debug = yes

View File

@ -7,6 +7,4 @@ username_attribute = username
tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt
use_grant_password = no
pass_attrs = pass=%{oauth2:access_token}
debug = yes
username_format = %n