postfixadmin / docker

Docker Image for PostfixAdmin
https://hub.docker.com/_/postfixadmin
GNU General Public License v2.0
73 stars 21 forks source link

ARGON2 support #61

Closed bmccorm2 closed 1 year ago

bmccorm2 commented 1 year ago

Hello - i was trying to use argon2 encryption for my passwords but was having trouble getting it to work. I think the issue below said it was implemented but i'm not having any luck trying to configure it. And i was going to try with dovecot:argon2 but i'm not smart enough to tell postfixadmin where the doveadm binary is located (on a different container).

Password Hashing - attempted to use configured encrypt backend (argon2) triggered an error: unknown/invalid $CONF["encrypt"] setting: argon2

https://github.com/postfixadmin/docker/issues/49

DavidGoodwin commented 1 year ago

If you're using the latest postfixadmin (master branch) then you should be able to use 'ARGON2I' etc - see https://github.com/postfixadmin/pacrypt/blob/main/tests/CryptTest.php#L65

But I don't think this support is in the 3.3 release.

Alternatively, you could use install the doveadm binary in your docker container - it need not be the same docker binary that's used for imap/pop3 etc.

bmccorm2 commented 1 year ago

Got it thanks. I am using postfixadmin:latest so that does correspond to the 3.3.XX release. I went ahead and installed dovecot-core in the container and now it works great! (you have to add the location of your ssl certs)