> I am newbie of qmail, but I noticed some emails in my qmail
> server queue have been there more than 2 weeks.
Mail that cannot be delivered will be retried for
/var/qmail/control/queuelifetime seconds, which defaults to one week (604800
seconds). After that, it will bounce. (man qmail-send)
> I found some useful tools to check the delayed email in the queue from
> the qmail homepage, but I have no idea how I can force qmail deliver
> them right away or backup and delete them from queue.
If the mail has been delayed, then most likely the destination host
is not responding, and therefore forcing the queue will not cause it to be
delivered.
In order to see why mail isn't getting delivered, look at the logs.
Get the queue id using qmail-qread:
# qmail-qread
5 Nov 2000 00:32:30 GMT #716722 2940 <>
remote [EMAIL PROTECTED]
In this case, 716722. Now grep to get the last delivery attempt:
# grep 716722 /var/log/maillog | tail -1
Nov 8 04:32:31 zephyr qmail: 973675951.152330 starting delivery 46683: msg
716722 to remote [EMAIL PROTECTED]
Now grep for the details of that delievery attempt:
# grep 46683 /var/log/maillog
Nov 8 04:32:31 zephyr qmail: 973675951.152330 starting delivery 46683: msg
716722 to remote [EMAIL PROTECTED]
Nov 8 04:33:31 zephyr qmail: 973676011.198378 delivery 46683: deferral:
Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
so, the mail server for thegamblingreport.com isn't responding.
Now, you could look it up to figure out what the IP is (209.67.50.203), and
telnet to port 25, and verify by hand that it isn't responding... but it
isn't really worth the trouble.
Having said all that, to force the queue to retry, send a kill -HUP
to the qmail-send process (this is in the FAQ, I forget the number.
--
gowen -- Greg Owen -- [EMAIL PROTECTED]