Get mailbox info on command line Plesk

Using the command line is sometimes a lot quicker than fannying around with a panel in the browser. So to grab a quick summary of a users mailbox, the following one-liner will show all you need:

[code]
/usr/local/psa/bin/mail -i user@domain.co.uk
[/code]

On Plesk 11

If you’re running Plesk 11 you will see:
[code gutter=”false”]
$ /usr/local/psa/bin/mail -i stuart@anotherdomain.co.uk
Mailname: stuart
Domain: anotherdomain.co.uk
Aliases: s, stew, stewart, stu
Mailgroup(s): stuart@somegroup.com
Mailbox: true
Password type: sym
Mbox quota: Unlimited
Mailgroup: false
Attachment files:
Autoresponders: Disabled
Antivirus mail checking: Can not determine

SUCCESS: Gathering information for ‘stuart@anotherdomain.co.uk’ complete
[/code]

Less than Plesk 11

And prior to Plesk 11, this is what you’ll get:

[code gutter=”false”]
/usr/local/psa/bin/mail.sh -i stuart@mydomain.co.uk
Mailname: stuart
Domain: mydomain.co.uk
Aliases: stewart, stu, stuey, stoo
CP Access: false
Mailbox: true
Password: aComplicAt3dPasswordHERE
Password type: plain
Mbox quota: Unlimited
Redirect: false
Mailgroup: false
Attachment files:
Autoresponders: Disabled
Name: holidays
Status: false
Request text: Not specified
Where: always respond
Answer with subject: Re: <request_subject>
Reply-To: not defined
Answer text: I am out of the office on holiday until Noday 1st Octember.

Please email help@mydomain.co.uk or call the office on 01230 456789 if your enquiry is of an urgent nature.

Many thanks

Stuart.
Attachment files:
Uniq email reply: 2 time(s) a day
Store up to: 100 unique e-mail addresses
Forward request:
Antivirus mail checking: Can not determine

SUCCESS: Gathering information for ‘stuart@mydomain.co.uk’ complete
[/code]




No Comments


No comments yet.



Leave a Reply

Your email address will not be published. Required fields are marked *