Welcome to WebmasterWorld Guest from 100.26.176.182

Forum Moderators: bakedjake

Message Too Old, No Replies

Qmail queue

Is there a way i can access the queue

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

New User

10+ Year Member

joined:Feb 14, 2005
posts:29
votes: 0


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

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

Full Member

10+ Year Member

joined:July 8, 2005
posts:348
votes: 0


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

/var/spool/mail

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

Administrator from CA 

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 8, 2003
posts:3883
votes: 61


I use a utility called qmhandle.

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

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

New User

10+ Year Member

joined:Feb 14, 2005
posts:29
votes: 0


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?

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

New User

10+ Year Member

joined:Feb 14, 2005
posts:29
votes: 0


bakedjake,

Where are the mail logs kept?

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

Administrator from CA 

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 8, 2003
posts:3883
votes: 61


Depends, but if you followed the life with qmail installation method, they're in /var/log/qmail
8:28 am on Sept 27, 2005 (gmt 0)

New User

10+ Year Member

joined:Feb 14, 2005
posts:29
votes: 0


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

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

New User

10+ Year Member

joined:Feb 14, 2005
posts:29
votes: 0


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

Thanks

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

New User

10+ Year Member

joined:July 5, 2005
posts:6
votes: 0


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members