docker-mailserver/test/config
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
..
dovecot-lmtp 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
duplicate_config_test Fix linter issue 2020-10-20 15:02:31 +02:00
letsencrypt Fix error in python script extracting certs from the acme.json file if there are sections with null values as certs 2020-12-06 20:30:20 +01:00
opendkim formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
relay-hosts Update relayhost_map with virtual accounts too 2020-08-28 15:03:51 +02:00
sieve Implement basic sieve support using Dovecot. 2016-04-28 08:57:50 +02:00
sieve-pipe Fix shebangs 2021-01-02 14:49:35 +01:00
user-patches Fix shebangs 2021-01-02 14:49:35 +01:00
without-accounts Reinstane required (empty) folder 2020-10-18 02:25:03 +02:00
amavis.cf Allow user to provide Amavis configuration (#299) 2016-09-02 09:08:41 +02:00
before.dovecot.sieve Introducing global filters. (#934) 2018-04-05 18:54:01 +02:00
dovecot.cf Integration test for extension address delivery (#528) 2017-03-03 18:27:22 +01:00
fail2ban-fail2ban.cf Add ability to override fail2ban.conf with fail2ban.local values. (#769) 2017-12-07 19:27:31 +01:00
fail2ban-jail.cf Fail2Ban block behaviour (#1914) 2021-04-18 12:55:43 +02:00
fetchmail.cf Solve Fetchmail imap idle issue (#10) 2021-01-17 10:39:09 +01:00
ldap-aliases.cf Added support for Dovecot and Postfix LDAP TLS (#800) 2018-01-25 22:38:41 +01:00
ldap-groups.cf Added support for Dovecot and Postfix LDAP TLS (#800) 2018-01-25 22:38:41 +01:00
ldap-users.cf Added support for Dovecot and Postfix LDAP TLS (#800) 2018-01-25 22:38:41 +01:00
postfix-main.cf allow accounts which do not start with a-z (#568) 2017-04-07 22:28:19 +02:00
postfix-master.cf support comments in .cf files 2020-05-06 22:59:55 +02:00
postfix-regexp.cf support comments in .cf files 2020-05-06 22:59:55 +02:00
postfix-virtual.cf support comments in .cf files 2020-05-06 22:59:55 +02:00
user2@otherdomain.tld.dovecot.sieve Add sieve pipe and filter (#574) 2017-05-10 09:54:02 +02:00
whitelist_clients.local Include whitelist_clients.local in postgrey setup from config folder (#564) 2017-04-12 17:59:04 +02:00
whitelist_recipients Support for additional postgrey options (Close: #998, #999, #1046) 2018-11-01 19:32:36 +01:00