Monthly Archives: January 2014

linux du command

du -hs *

When in the folder you want to query, this command  gives you a nice list of the folders and how much space they take up

Advertisements

Plesk 11 Custom Errors (Windows Server 2008R2)

Custom errors don’t seem to work when we use a URL…

Go to the domain in plesk, click on virtual folders, and then click on the custom errors tab, find the error in question, make sure it’s set correctly.

RDP to machine, open IIS, find domain, open IIS error pages, ‘Edit Feature Settings’

Set to ‘custom errors’

🙂

sendmail postfix qmail , some commands…

Here are some commands for qmail

get mail q total mail in queue

/var/qmail/bin/qmail-qstat

display all mail in queue

/var/qmail/bin/qmail-qread

delete messages by  subject line

/usr/local/psa/admin/bin/mailqueuemng -S”text here”

qmail alternate commands

this displays all the mails

mailq

this displays a total of all the mails in the q

mailq |tail -1

To remove all mail from the queue

postsuper -d ALL

where i got all this from

http://ashraflinux.wordpress.com/useful-postfix-commands-to-troubleshooting-postfix-issue/

http://www.faqforge.com/linux/server/manage-the-postfix-mailqueue-with-postsuper-postqueue-und-mailq/

http://linux-circles.blogspot.co.uk/2012/07/postfix-useful-commands.html

http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html