Here is a one-liner command that will allow you to generate a new random password for an email account. Simply change the email address and hit enter.
[email protected] ; uapi --user="$(/scripts/whoowns ${email#*@})" Email passwd_pop email="${email%@*}" password="$(tr -dc 'A-Za-z0-9<=>?@[]\#)(' < /dev/urandom | head -c 64 | xargs)" domain="${email#*@}"
You can also restart Exim and Dovecot services by adding the following code to the command because changing the email password doesn’t end any open sessions with the mail server, allowing them to continue sending emails:
; /scripts/restartsrv_dovecot ; /scripts/restartsrv_exim
to also remove ALL emails in the mail queue that are from the email you are changing the password for, add:
; exim -bp|grep "$email"| awk {'print $3'}| xargs exim -Mrm

![WARNING: [pool user_USERNAME] server reached pm.max_children setting (25), consider raising it Screen Shot 2020 06 23 at 09.57.51 - WARNING: [pool user_USERNAME] server reached pm.max_children setting (25), consider raising it](https://i0.wp.com/administrator.pejcic.rs/wp-content/uploads/2026/09/Screen-Shot-2020-06-23-at-09.57.51.png?resize=344%2C194&ssl=1)

![node[175421]: pthread_create: Resource temporarily unavailable 2023 08 28 12 15 - node[175421]: pthread_create: Resource temporarily unavailable](https://i0.wp.com/administrator.pejcic.rs/wp-content/uploads/2023/08/2023-08-28_12-15.png?resize=344%2C194&ssl=1)