AUTH_PASSWD(3)
π
AUTH_PASSWD β the auth_passwd(3) glow-up
okay bestie, so this is auth_passwd from the Courier authentication library (courierauth.h), and it does exactly one dramatic thing: it changes an account's password. no cap. let's get into it β¨
π NAME
auth_passwd β change an account's password π
like. it rotates the password. that's the whole job. iconic behaviour honestly.
β¨ SYNOPSIS
#include <courierauth.h>
int rc=auth_passwd(const char *service, const char *username,
const char *oldpassword, const char *newpassword);
so yeah, you pull in <courierauth.h>, you call auth_passwd with four things, and it hands you back an int that you catch in rc. that's the whole vibe check π«Ά
πΈ DESCRIPTION
okay so here's the tea β β if username's current password is genuinely oldpassword, then it gets swapped out for newpassword. old one out, new one in, slay π
and service is the lil' label for which so-called "service"'s password is getting changed β think stuff like βimapβ or βpop3β. some of the Courier authentication library's back-end modules lowkey keep different passwords for different services, which is a whole situation, but they do it.
heads up bestie: service gets ignored if the back-end doesn't do that per-service thing. so don't spiral if it seems like it's not doing anything β for some modules it literally just doesn't matter π
π¦ RETURNS
auth_passwd returns 0 when the password was successfully changed β that's the win, that's the moment, we love to see it π
a non-0 error code means a failure. not the serve. not the moment. π
π SEE ALSO
π NOTES
authlib(3)https://www.courier-mta.org/authlib/authlib.htmlauth_generic_meta(3)https://www.courier-mta.org/authlib/auth_generic.htmlauth_login_meta(3)https://www.courier-mta.org/authlib/auth_login.htmlauth_getuserinfo_meta(3)https://www.courier-mta.org/authlib/auth_getuserinfo.htmlauth_enumerate(3)https://www.courier-mta.org/authlib/auth_enumerate.html
and that's the page!! written by S. Varshavchik, dated 06/18/2026, and it's the AUTH_PASSWD(3) manpage, periodt πβ¨ go change a password, bestie, you've got this π
π¦ where this page comes from
- ubuntu stonking: courier-authlib-dev 0.73.1-2ubuntu1 Β· GPL-3+~with-OpenSSL-exception
- Copyright 2004 S. Varshavchik. See COPYING for -->
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms