Forum Moderators: bakedjake

Message Too Old, No Replies

Qmail queue

Is there a way i can access the queue

         

DaSingh

3:47 pm on Sep 26, 2005 (gmt 0)

10+ Year Member



Hi guys,

Is there a way I can access the qmail queue on my linux server?

I have stopped it but want to know what is in the queue?

Also is there a way to check messages that have been sent?

Thanks

Angelis

3:54 pm on Sep 26, 2005 (gmt 0)

10+ Year Member



Dont know what type of Linux box oyu are on but try.

/var/spool/mail

bakedjake

4:02 pm on Sep 26, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I use a utility called qmhandle.

For sent messages, you'll have to check the logs.

DaSingh

4:15 pm on Sep 26, 2005 (gmt 0)

10+ Year Member



Thanks angelis, that directory works but I've got 2 items in there but dont know how to view those (sorry I know only basic linux)

I've got:

total 0
-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?

DaSingh

4:16 pm on Sep 26, 2005 (gmt 0)

10+ Year Member



bakedjake,

Where are the mail logs kept?

bakedjake

4:27 am on Sep 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Depends, but if you followed the life with qmail installation method, they're in /var/log/qmail

DaSingh

8:28 am on Sep 27, 2005 (gmt 0)

10+ Year Member



bakedjake, I have checked and there isnt the var/log/qmail folder. Does this mean that the mails sent were not logged?

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

DaSingh

8:25 am on Sep 28, 2005 (gmt 0)

10+ Year Member



Is there anyway I can reset qmail...i.e. clear any mails that are queued

Thanks

424Boyz

9:27 am on Oct 4, 2005 (gmt 0)

10+ Year Member



There is a built-in utility to control Qmail called qmailctl. LifeWithQmail will put the file in /usr/bin/qmailctl.

'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