LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-22-2005, 04:58 AM   #1
Vossy
LQ Newbie
 
Registered: Jan 2005
Location: Brisbane, Australia
Distribution: Slackware 12
Posts: 17

Rep: Reputation: 0
Qmail queue and sendmail hassels


I've just completed the QMR installation but I have a few problems with the final installation.

OK - On my Slackware 10 box, I have a new installation of Qmail running. It can recieve mails alright, but when it comes to sending them, they seem to get stuck in the mail queue.

<snip>
root@linux:/# qmailctl queue
messages in queue: 1
messages in queue but not yet preprocessed: 0
21 Feb 2005 17:43:16 GMT #814044 220 <[From address]>
remote [To address]
</snip>

That mail has been sitting there for almost 24 hours. The qmail-send/current error log is constantly growing in file size. When I opened the log, it was 1026 lines of the same thing. When I closed and reopened, it was 1078 etc.
This was what the line said when I looked at the log:
@400000004219d3c514d3fe3c alert: cannot start: qmail-send is already running

I gather that there is some king of qmail send proccess already running, so I ran # ps aux | grep sen:

qmails 1735 0.0 0.5 1388 360 ? S 17:40 0:00 qmail-send
qmaill 1736 0.0 0.5 1336 316 ? S 17:40 0:00 multilog t s100000 n20 /var/log/qmail/qmail-send
root 1744 0.0 0.4 1320 268 ? S 17:40 0:00 supervise qmail-send
qmails 21811 0.0 0.0 0 0 ? Z 22:30 0:00 [qmail-send] <defunct>
root 21817 0.0 0.9 1672 584 pts/0 R+ 22:30 0:00 grep sen

I don't know what to make of this and any help at all would be greatly appreciated.
 
Old 02-22-2005, 02:03 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You seem to have a zombie proccess (hence the Z)

I would try:
1) Stopping qmail "qmailctl stop"
2) Kill the zombie "kill -9 21811"
3) Make sure no qmail proccesses are running "ps -ef | grep qmail"
4) If none are running then try starting "qmailctl start"
5) Flush the queue "qmailctl doqueue"

If it still doesn't work can you post the output from:
qmailctl stat
ps -ef | grep read
 
Old 02-23-2005, 05:44 AM   #3
Vossy
LQ Newbie
 
Registered: Jan 2005
Location: Brisbane, Australia
Distribution: Slackware 12
Posts: 17

Original Poster
Rep: Reputation: 0
Qmail queue and Sendmail hasseles

No, that didn't work...
After I restarted qmail and flushed the queue, I attempted to send another email. Unfortunatly, the email got stuck in the queue again. *shakes fist*

Here is the output of ps -ef |grep read - What does it all mean?

root@linux:~# ps -ef |grep read
root 263 260 0 Feb20 ? 00:00:00 readproctitle service errors: .................................................................................................... ..............
.................................................................................................... ..............
.................................................................................................... ..............
..........................................................
root 3560 3219 0 20:39 pts/0 00:00:00 grep read

And qmailctl stat:

root@linux:~# qmailctl stat
/service/qmail-send: up (pid 3493) 3231 seconds
/service/qmail-send/log: up (pid 3509) 3208 seconds
/service/qmail-smtpd: up (pid 3486) 3236 seconds
/service/qmail-smtpd/log: up (pid 3512) 3208 seconds
/service/qmail-pop3d: up (pid 3494) 3231 seconds
/service/qmail-pop3d/log: up (pid 3515) 3208 seconds
messages in queue: 1
messages in queue but not yet preprocessed: 0

Last edited by Vossy; 02-23-2005 at 05:45 AM.
 
Old 02-23-2005, 01:56 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Is there still a zombie?
ps -ef | grep qmail

Are there any other errors in the log?
 
Old 02-23-2005, 11:57 PM   #5
Vossy
LQ Newbie
 
Registered: Jan 2005
Location: Brisbane, Australia
Distribution: Slackware 12
Posts: 17

Original Poster
Rep: Reputation: 0
I'm not sure....

root@linux:~# ps -ef | grep qmail
root 3485 262 0 Feb23 ? 00:00:00 supervise qmail-smtpd
vpopmail 3486 3485 0 Feb23 ? 00:00:00 /usr/local/bin/tcpserver -v -R -l domain.com -x /etc/tcp.smtp.cdb -c 30 -u 1013 -g 105 0 smtp /var/qmail/bin/qmail-smtpd domain.com /home/vpopmail/bin/vchkpw /usr/bin/true
root 3492 262 0 Feb23 ? 00:00:00 supervise qmail-pop3d
root 3494 3492 0 Feb23 ? 00:00:00 tcpserver -H -R -v -c100 0 110 qmail-popup domain.com /home/vpopmail/bin/vchkpw qmail-pop3d Maildir
qmaill 3512 267 0 Feb23 ? 00:00:00 multilog t s100000 n20 /var/log/qmail/qmail-smtpd
qmaill 3515 269 0 Feb23 ? 00:00:00 multilog t s100000 n20 /var/log/qmail/qmail-pop3d
qmails 3633 1 0 Feb23 ? 00:00:00 qmail-send
qmaill 3634 265 0 Feb23 ? 00:00:00 multilog t s100000 n20 /var/log/qmail/qmail-send
root 3637 3633 0 Feb23 ? 00:00:00 qmail-lspawn ./Maildir
qmailr 3638 3633 0 Feb23 ? 00:00:00 qmail-rspawn
qmailq 3639 3633 0 Feb23 ? 00:00:00 qmail-clean
root 3643 262 0 Feb23 ? 00:00:00 supervise qmail-send
qmails 29519 3643 1 14:55 ? 00:00:00 [qmail-send] <defunct>
root 29525 29374 0 14:55 pts/0 00:00:00 grep qmail

And as for the logs, there aren't any different entries as far as I can see. There's still the recurring entries mentioned before, though.

Last edited by Vossy; 02-27-2005 at 06:23 AM.
 
Old 02-24-2005, 12:33 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
For some reason that proccess is still hanging. Can you post the scripts that you are using to start qmail-send.
 
Old 02-24-2005, 03:18 PM   #7
Vossy
LQ Newbie
 
Registered: Jan 2005
Location: Brisbane, Australia
Distribution: Slackware 12
Posts: 17

Original Poster
Rep: Reputation: 0
Do you mean /var/qmail/bin/qmail-send?
Because that looks like a compiled binary...
Or do you mean the lines in /etc/rc.d/rc.local?

/etc/rc.d/rc.imap start
/etc/rc.d/rc.imaps start

Or the qmailctl start script?

start)
echo "Starting qmail..."
echo ""
if svok /service/qmail-send ; then
svc -u /service/qmail-send /service/qmail-send/log
echo "Starting qmail-send"
else
echo "qmail-send supervise not running"
fi
if svok /service/qmail-smtpd ; then
svc -u /service/qmail-smtpd /service/qmail-smtpd/log
echo "Starting qmail-smtpd"
else
echo "qmail-smtpd supervise not running"
fi
if svok /service/qmail-pop3d ; then
svc -u /service/qmail-pop3d /service/qmail-pop3d/log
echo "Starting qmail-pop3d"
else
echo "qmail-pop3d supervise not running"
fi
if [ -d /var/lock/subsys ]; then
touch /var/lock/subsys/qmail


Or something completly different
 
Old 02-25-2005, 12:20 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Sorry, I actually meant:
/service/qmail-send/run
 
Old 02-25-2005, 06:20 PM   #9
Vossy
LQ Newbie
 
Registered: Jan 2005
Location: Brisbane, Australia
Distribution: Slackware 12
Posts: 17

Original Poster
Rep: Reputation: 0
It seems qmail-send is already running...

root@linux:/service/qmail-send# cat run
#!/bin/sh
exec /var/qmail/rc

The file /var/qmail/rc contains the following lines:
root@linux:/var/qmail# cat rc
#!/bin/sh

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"


I tried executing it (qmail-send) but it's already running. (That would make sense....)
root@linux:~# /service/qmail-send/run
alert: cannot start: qmail-send is already running

THIS JUST IN
I can send mail internally using sendmail, from root@domail.com to postmaster@domain.com

Last edited by Vossy; 02-26-2005 at 08:10 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 12:29 PM
Deleted qmail queue /var/qmail/queue tris Linux - Software 0 10-25-2003 12:52 AM
qmail mail queue bluestorm Linux - Software 0 10-06-2003 07:52 AM
qmail queue problem ka_alucard Slackware 0 05-28-2003 09:09 PM
qmail queue buster Linux - Networking 0 10-04-2002 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration