Koozali.org: home of the SME Server

Mail stuck in queue

John Crisp

Mail stuck in queue
« on: November 06, 2001, 12:56:39 PM »
I seem to have an incorrectly addressed mail stuck in the mail queues somewhere. It was incorrectly addressed to a local user and just seems to be bouncing around.

The mail is not recognised as a local user, and so gets sent to the ISP who bounces it as it is not a recognised address.

Is there anyway you can view any of the queues and delete this mail ?

How long before the mail queue gives up sending mail, and can this timeout be changed ?


Any answers gratefully appreciated.

B. Rgds

John Crisp

guestFF

Re: Mail stuck in queue
« Reply #1 on: November 06, 2001, 01:43:04 PM »
Try to take a look at /var/qmail/queue

May it's there..

HFW

Scott Smith

Re: Mail stuck in queue
« Reply #2 on: November 06, 2001, 03:26:20 PM »
Go here:

http://www.io.com/~mick/soft/qmhandle.html

and download qmhandle and install it per the instructions on the site. To make it work for ESSG 4.1.2, edit the qmhandle script as follows:

------------------------------

Redefine $qmcmd as -- $qmcmd = '/etc/rc.d/init.d/qmail.init start';

Add a new variable -- $qmtrm = '/etc/rc.d/init.d/qmail.init stop';

Find the two 'kill' commands and comment them out and add in their place -- system($qmtrm);

------------------------------

The changes for SME 5 should be similar, just use the appropriate path in defining the qmcmd and qmtrm vars.

Scott

John Crisp

Re: Mail stuck in queue
« Reply #3 on: November 06, 2001, 08:57:40 PM »
MAny thanks for that - I'll give it a whirl tonight.

B. Rgds

John

John Crisp

Re: Mail stuck in queue
« Reply #4 on: November 07, 2001, 03:29:02 PM »
Well, I had a look with qmhandle and couldn't see anything in any of the queues. But it's still there.

To elaborate a little further :

I sent a message to anonymous@localnet - this got read as anonymous@localnet.localnet as I hadn't got the DNS right (still not sure I have but that's another story - it all works....)

So the server sends it to the ISP as it's not a local address (as far as it's concerned), the ISP bounces it to the server, as it can't find the address, and the server then bounces it to the ISP, ad infinitum.

HELP !

Any help greatly appreciated as this is driving me nuts, and filling the admin mailbox with a load of bounce messages. If need be I'll copy the headers for someone to peruse.

B. Rgds

JC

guestFF

Re: Mail stuck in queue
« Reply #5 on: November 07, 2001, 03:49:47 PM »
Did you fill out the Providers SMTP server in the manager (Other e-mail settings)?
If so, leave it blank.

HFW

sage

Re: Mail stuck in queue
« Reply #6 on: November 07, 2001, 10:30:03 PM »
For a quick fix make changes to you setup so that email to unknown users gets sent to admin rather than bounced.  That should get it delivered so it wont get bounced on your side again

Sage

Patrick Basile

more details on install/config? (Re: Mail stuck in queue)
« Reply #7 on: November 09, 2001, 07:15:12 AM »
Scott (and others),

Would you please be more specific with the instructions for installing/configuring/running qmhandle?

Thanks.

Regards,
Patrick

Scott Smith

Re: more details on install/config? (Re: Mail stuck in queue
« Reply #8 on: November 09, 2001, 04:07:11 PM »
Patrick

I'm not sure there's anything more specific to be said. Download the tar file from the site I gave and extract it, read the README file thoroughly, change the qmcmd command as instructed (I added the qmtrm command, but you can do it however you choose.) Operation is pretty straightforward once you've read the README and viewed the online help.

Scott

John Crisp

Re: Mail stuck in queue
« Reply #9 on: November 13, 2001, 03:24:51 PM »
Thanks for your replies.

1. Why leave out the ISPs SMTP address ? Is that to trap it locally ?

2. I'll check the bounce settings. Are there any directly configurable from server manager or do I have to go dig about ?

B. Rgds

John