Find email account password in Plesk

5

Find email account password in Plesk

1) To find the mail account information.

root@[# /usr/local/psa/bin/mail –info email@domain.com

Example :

Mailname: username
Domain: domain.com
Mailbox: true
Password: password
Password type: plain
Mbox quota: Unlimited
Mailgroup: false
Attachment files:
Autoresponders: Disabled
Antivirus mail checking: Disabled

SUCCESS: Gathering information for ’email@domain.com’ complete

2) To find the email account passwords for a domain

root@[#] /usr/local/psa/admin/bin/mail_auth_view | grep domain.com

| email@domain.com | | password |

3) The below command will list passwords for all email accounts in plesk.

root@server[#] /usr/local/psa/admin/bin/mail_auth_view
OR

root@[#]mysql -uadmin -p` cat /etc/psa/.psa.shadow` -Dpsa -e”select mail_name,name,password from mail left join domains on mail.dom_id = domains.id inner join accounts where mail.account_id = accounts.id;”
——————————————————>

Mail server doesn’t work

1

How to repair mail server configuration?

Use mchk utility to repair/rebuild mail server configuration and restore settings for all mailboxes created in Plesk Panel.

For Linux:

~[# /usr/local/psa/admin/sbin/mchk –help

Usage: /usr/local/psa/admin/sbin/mchk [OPTION]

OPTIONS:
–without-spam restore all settings except for SpamAssassin configuration
–with-spam restore all settings
–spam-only restore only SpamAssassin settings

~[# /usr/local/psa/admin/sbin/mchk –with-spam

For Windows:

Warning! Only settings that were applied to mailboxes through Parallels Plesk Panel interface or command-line utilities will be restored by mchk. Any custom configuration options, applied by other means (e.g. through mail server’s configuration console), will be lost.

C:\>”%plesk_bin%\mchk” –help
usage: mchk [options] …

–help
–all [–fix=all|local]
–domain –domain-name= [–fix=local]
–domains –domain-names=| [–via-file] [–fix=local]
–all-domains [–fix=local]
–global-settings

[C:\>”%plesk_bin%\mchk” –all
———————————–>