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. |
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 |
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? :confused: 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 |
Is there still a zombie?
ps -ef | grep qmail Are there any other errors in the log? |
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. |
For some reason that proccess is still hanging. Can you post the scripts that you are using to start qmail-send.
|
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 :confused: |
Sorry, I actually meant:
/service/qmail-send/run |
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 |
All times are GMT -5. The time now is 03:14 AM. |