Article ID: 126429, created on Aug 3, 2015, last review on Jun 12, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux


How to reset passwords for all mail accounts in Plesk if the solution from Plesk Mass Password Reset Script did not reset passwords for all mail accounts.


  1. Get the list of all mail accounts registered in Plesk database:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -Ne"select concat (mail.mail_name,'@', from domains,mail where" > mailboxes.txt
  2. Reset passwords using the following command:

    cat mailboxes.txt | while read LINE; do /usr/local/psa/bin/mail --update $LINE -passwd `cat /dev/urandom | tr -dc 'a-zA-Z0-9-!@#$%^&*()_+' | fold -w 10 | head -n1`; done

Search Words

mail passwords reset

reset passwords of all mail accounts

mail_auth non work

update empty passwords

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 29d1e90fd304f01e6420fbe60f66f838 aea4cd7bfd353ad7a1341a257ad4724a 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e 01bc4c8cf5b7f01f815a7ada004154a2

Email subscription for changes to this article
Save as PDF