Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung |
dovecot [17/10/2021 - 06:48] – thommie4 | dovecot [05/03/2024 - 10:52] (aktuell) – Externe Bearbeitung 127.0.0.1 |
---|
=====User anlegen ===== | =====User anlegen ===== |
| |
Dovecot selber kannt auch Blowfish (BLF-CRYPT), allerdings nicht die glibc, die in Ubuntu Server 14 bis 18 verbaut ist. Siehe auch [[https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349252|https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349252]] | **Verfügbare Password Hashes testen** |
| |
**Verfügbare Hashes testen** | |
| |
Liste der verfügbaren Hashes (abhängig von glibc) | |
| |
''doveadm pw -l '' | ''doveadm pw -l '' |
| |
| Dovecot selber kann Blowfish (BLF-CRYPT), allerdings nicht die glibc, die in Ubuntu Server 14 bis 18 verbaut war(siehe auch [[https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349252|https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1349252]]). Das ist Ubuntu 20 mit GLIBC 2.31 gelöst. |
| |
Beispiele zum Erzeugen eines Hashes: | Beispiele zum Erzeugen eines Hashes: |
| |
blowfish (blf-crypt) | mit blowfish (blf-crypt) |
| |
''doveadm pw -s BLF-CRYPT -p secret '' | ''doveadm pw -s BLF-CRYPT -u thomas.rother@miteinander-esslingen.de -p XXXXXxxxxxx '' |
| |
SHA512 | mit SHA512 |
| |
''doveadm pw -s SHA512-CRYPT -u thomas.rother@miteinander-esslingen.de -p XXXXXxxxxxx '' | ''doveadm pw -s SHA512-CRYPT -u thomas.rother@miteinander-esslingen.de -p XXXXXxxxxxx '' |
| |
Vom Ergebnis-String alles ab $6$… in die DB schreiben | Vom Ergebnis-String alles ab $6$ bzw. $2y$ in die Datenbank schreiben |
| |
**Login-Test** | **Login-Test** |
| |
doveadm pw -t '{SHA512-CRYPT}$xxxxxxxxxxxxxxxxxxxx' -p "xxxxxxxxxxxxxxxxx" (verified) | ''doveadm pw -t '{SHA512-CRYPT}$hashash' -p "xxxxxxxxxxx" (verified)'' |
| |
| ''doveadm pw -t '{BLF-CRYPT}$2y$hashash' -p "xxxxxxxxxxx" (verified)'' |
| |
| Oder bei Fehler |
| |
| ''Fatal: reverse password verification check failed: Password mismatch'' |
| |
Sobald BCRYPT mal tut: [[https://kaworu.ch/blog/2016/04/20/strong-crypt-scheme-with-dovecot-postfixadmin-and-roundcube/|https://kaworu.ch/blog/2016/04/20/strong-crypt-scheme-with-dovecot-postfixadmin-and-roundcube/]] | Sobald BCRYPT mal tut: [[https://kaworu.ch/blog/2016/04/20/strong-crypt-scheme-with-dovecot-postfixadmin-and-roundcube/|https://kaworu.ch/blog/2016/04/20/strong-crypt-scheme-with-dovecot-postfixadmin-and-roundcube/]] |
| |
====== Grundkonfiguration ====== | ====== Grundkonfiguration ====== |
| |