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

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