Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: bakedjake
-rw-rw---- 1 popa3d mail 0 Jul 9 2004 popa3d
-rw-rw---- 1 webadmin mail 0 Jul 9 2004 webadmin
How can view the content of these?
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:
This will show you the status of your queue, if messages are queued, run:
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.