1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-06-28 20:21:14 +02:00
docker-mailserver/test/config/dovecot-lmtp/conf.d
Georg Lauterbach 537247031f
fix: Make Dovecot aware of basic aliases in userdb for quota support + Use correct hash scheme in passdb configuration (#2248)
Dovecot quota support would log auth failures when Postfix validated incoming mail to accept/reject and the `check_policy_service` for `quota-status` was queried with a recipient that was an account alias.

When Dovecot is not aware of the user account, it will not be able to check a quota and inform Postfix that everything is fine, Postfix will accept the mail and send it to Dovecot, where if the quota is exceeded will result in a bounce back to the sender. This is considered "backscatter" and can be abused by spammers forging the sender address which can get your server blacklisted.

The solution is to either disable quota support `ENABLE_QUOTAS=0`, or as a workaround, add dummy accounts to Dovecot userdb for aliases in `postfix-virtual.cf` (not `postfix-aliases.cf`), these dummy accounts will map to the real user account mailbox (real users are defined in `postfix-accounts.cf`).

The workaround is naive, in that we only check for basic 1-to-1 alias mapping to real accounts. This will still be an issue for aliases that map to another alias or multiple addresses (real or alias). Unfortunately Postfix will not expand aliases until accepting mail where this would be too late.

A better solution is to proxy the `check_policy_service` from Dovecot `quota-status` that Postfix queries in `main.cf:smtpd_recipient_restrictions`, however this requires a fair amount more of additional work and still requires an implementation to recursively query aliases for nested or multiple address mappings, which can then be forwarded to the `quota-status` service configured by Dovecot in `/etc/dovecot/conf.d/90-quota.conf`.

LDAP users are unaffected as quota support is not supported/implemented with `docker-mailserver` at this time, it is always considered disabled when using LDAP.

---

Additionally Dovecot configuration for `passdb` has been fixed to use the correct password hash scheme of `SHA512-CRYPT`. 

Co-authored-by: Casper <casperklein@users.noreply.github.com>
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2021-11-01 14:20:22 +13:00
..
10-auth.conf revert nonsens changes 2020-07-14 15:23:36 +02:00
10-director.conf formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
10-logging.conf formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
10-mail.conf formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
10-master.conf formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
10-ssl.conf fix: Remove mkcert.sh usage + _setup_ssl refactor. (#2196) 2021-09-20 00:31:11 +12:00
10-tcpwrapper.conf Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
15-lda.conf revert nonsens changes 2020-07-14 15:23:36 +02:00
15-mailboxes.conf Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
20-imap.conf formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
20-lmtp.conf Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
20-managesieve.conf Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
20-pop3.conf formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
90-acl.conf Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
90-plugin.conf Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
90-quota.conf revert nonsens changes 2020-07-14 15:23:36 +02:00
90-sieve.conf Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
auth-checkpassword.conf.ext Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
auth-deny.conf.ext Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
auth-ldap.conf.ext formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
auth-master.conf.ext Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
auth-passwdfile.conf.ext fix: Make Dovecot aware of basic aliases in userdb for quota support + Use correct hash scheme in passdb configuration (#2248) 2021-11-01 14:20:22 +13:00
auth-passwdfile.inc fix: Make Dovecot aware of basic aliases in userdb for quota support + Use correct hash scheme in passdb configuration (#2248) 2021-11-01 14:20:22 +13:00
auth-sql.conf.ext Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
auth-static.conf.ext Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
auth-system.conf.ext formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
auth-vpopmail.conf.ext Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00