commit 7e6eedc40d51c9cc2ddf9c76c7339a14516b2425 from: barth date: Sat Nov 02 11:21:44 2024 UTC change user email's password in dovecot commit - f9dbd79e13c0a01a38306568c8b5da0fa57e3490 commit + 7e6eedc40d51c9cc2ddf9c76c7339a14516b2425 blob - /dev/null blob + 15c0176a83e331aeb007b30aec286ea7a521550b (mode 644) --- /dev/null +++ change_email_password.org @@ -0,0 +1,34 @@ +#+TITLE: Change email password +#+DATE: <2024-11-02 Sat> + +* Preamble + +Users' password to access their inbox are stored in +/etc/mail/passwd. As this file is read-only, we first need to adjust +permissions before modifying it. + + +* Change file permission + +#+begin_quote +$ doas chgrp wheel /etc/mail/passwd +$ doas chmod g+w /etc/mail/passwd +#+end_quote + +* Backup the file + +#+begin_quote +$ doas cp /etc/mail/passwd /etc/mail/passwd.2024110201 +#+end_quote + +* Generate new password + +For that, we use the utility doveadm + +#+begin_quote +$ das doveadm pw -s blf-crypt -u ariciu +#+end_quote + +Replace the old password, in /etc/mail/passwd, by this one, without +the prefix. +