Qmail Toaster on Centos 5.5

Saturday, July 24th, 2010

I’ve followed the steps described in here : http://wiki.qmailtoaster.com/index.php/CentOS_5_QmailToaster_Install to install Qmail Toaster on Centos 5.5.

If you access the isoqlog and get this error:
Forbidden?You don’t have permission to access /qlogs-toaster/ on this server.

After you do some email traffic run this :

sh /usr/share/toaster/isoqlog/bin/cron.sh

Commands that can be used:

qmailctl stat
/home/vpopmail/bin/vadddomain domain.com password
/home/vpopmail/bin/vadduser user@domain.com password
/home/vpopmail/bin/vmoddomlimits -S domain.com // view domain limits
/home/vpopmail/bin/vpasswd // change pass
/home/vpopmail/bin/vmoduser // modify user stats

Plesk Qmail issue regarding /etc/courier-imap/shared/index

Tuesday, April 20th, 2010

If you see in your logs:
Jun 4 16:11:18 host imapd: /etc/courier-imap/shared/index: No such file or directory

you need to check perms and ownership on /var/qmail/bin/qmail-queue

# ls -la /var/qmail/bin/qmail-queue
-r-s–x–x 1 root qmail 25828 Apr 26 15:20 /var/qmail/bin/qmail-queue
perms are fine, but ownership is not
# chown qmailq:qmail /var/qmail/bin/qmail-queue
# ls -la /var/qmail/bin/qmail-queue
-r-x–x–x 1 qmailq qmail 25828 Apr 26 15:20 /var/qmail/bin/qmail-queue
[root@host ~]# service qmail restart
Stopping : Starting qmail:

Qmail commands

Saturday, July 11th, 2009

qmail-qread – list outgoing messages and recipients

[root@server ~]# /var/qmail/bin/qmail-qread | grep remote | awk -F\@ ‘{print $2}’ |sort | uniq | sort -n
aol.com
bigpond.net.au
comcast.net
gmail.com
hotmail.com
msn.com
nc.rr.com
yahoo.com
yahoo.co.uk

qmHandle – qmail Handler

[root@server ~]# qmHandle -s
Total messages: 225
Messages with local recipients: 0
Messages with remote recipients: 225
Messages with bounces: 0
Messages in preprocess: 0

qmHandle -l                       list all emails in queue
qmHandle -mN                 show email no N from queue
qmHandle -dN                  delete email no N from queue
qmHandle -R                     show remote emails from queue
qmHandle -D                     delete all messages from queue
qmHandle -a                 try to send messages from queue

[root@server ~]# /var/qmail/bin/qmail-qstat
messages in queue: 224
messages in queue but not yet preprocessed: 0