Forum Moderators: bakedjake
I didnt actually install anything on our server as we hire a virtual private server from Hostway and I have root access to it
The reason I need this is because I wrote a PHP mail script which sent a batch email to addresses pulled out of a mysql table. The problem was that some people got the email more than once even though the address is in the table only once. So I wanted to check the mails sent or ones waiting to be sent
'qmailctl help' will give you the general help output displaying the available commands. The following pertain to your question:
/usr/bin/qmailctl queue
This will show you the status of your queue, if messages are queued, run:
/usr/bin/qmailctl doqueue
This will deliver the queued messages for 'immediate' delivery
If you are curious on the messages being sent as you send them, locate the path of your log files and run a tail -f on the qmail-smtpd/current file. Below is an example:
/usr/bin/tail -f /var/log/qmail/qmail-smtpd/current
The -f flag will continue to monitor the file mentioned, displaying new data as it is being written to the file.
424Boyz