• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

qmail stopped sending after upgrade

D

devindull

Guest
I upgraded from 7.5.3 to 7.5.4 and qmail-inject/sendmail stopped working for our websites. The files are still there, and when you fill out a form on the website it acts like it sends but it doesn't.

Apache Error Log:
qmail-inject: fatal: qq read error (#4.3.0)
qmail-inject: fatal: qq read error (#4.3.0)
qmail-inject: fatal: qq read error (#4.3.0)
qmail-inject: fatal: qq read error (#4.3.0)
qmail-inject: fatal: qq read error (#4.3.0)
qmail-inject: fatal: qq read error (#4.3.0)
qmail-inject: fatal: qq read error (#4.3.0)
qmail-inject: fatal: qq read error (#4.3.0)
qmail-inject: fatal: qq read error (#4.3.0)
qmail-inject: fatal: qq read error (#4.3.0)

Listing of Directory (qmai/bin)
-r-sr-xr-x 1 root qmail 2M Aug 24 09:28 autoresponder
-r-xr-xr-x 1 root qmail 8K Aug 24 09:23 bouncesaying
-r-sr-xr-x 1 root wheel 2M Aug 24 09:28 cmd5checkpw
-r-xr-xr-x 1 root qmail 14K Aug 24 09:23 condredirect
-r-xr-xr-x 1 root qmail 146B Aug 24 09:23 datemail
-r-xr-xr-x 1 root qmail 124B Aug 24 09:23 elq
-r-xr-xr-x 1 root qmail 8K Aug 24 09:23 except
-r-xr-xr-x 1 root qmail 13K Aug 24 09:23 forward
-r-xr-xr-x 1 root qmail 17K Aug 24 09:23 maildir2mbox
-r-xr-xr-x 1 root qmail 8K Aug 24 09:23 maildirmake
-r-xr-xr-x 1 root qmail 16K Aug 24 09:23 maildirwatch
-r-xr-xr-x 1 root qmail 189B Aug 24 09:23 mailsubj
-r-xr-xr-x 1 root qmail 25K Aug 24 09:28 matchup
-r-xr-sr-x 1 root popuser 4K Aug 24 09:29 mm_wrapper
-r-xr-xr-x 1 root qmail 125B Aug 24 09:23 pinq
-r-xr-xr-x 1 root qmail 12K Aug 24 09:23 predate
-r-xr-xr-x 1 root qmail 12K Aug 24 09:23 preline
-r-xr-xr-x 1 root qmail 125B Aug 24 09:23 qail
-r-xr-xr-x 1 root qmail 10K Aug 24 09:23 qbiff
-r-xr-xr-x 1 root qmail 9K Aug 24 09:23 qmail-clean
-r-xr-xr-x 1 root qmail 5K Aug 24 09:23 qmail-getpw
-r-xr-xr-x 1 root qmail 39K Aug 24 09:23 qmail-inject
-r-xr-xr-x 1 root qmail 40K Aug 24 09:23 qmail-local
-r-xr-xr-x 1 root qmail 16K Aug 24 09:23 qmail-lspawn
-r-xr-xr-x 1 root qmail 13K Aug 24 09:23 qmail-newmrh
-r-xr-xr-x 1 root qmail 10K Aug 24 09:23 qmail-newu
-r-xr-xr-x 1 root qmail 19K Aug 24 09:23 qmail-pop3d
-r-xr-xr-x 1 root qmail 11K Aug 24 09:23 qmail-popup
-r-xr-xr-x 1 root qmail 15K Aug 24 09:23 qmail-pw2u
-r-xr-xr-x 1 root qmail 12K Aug 24 09:23 qmail-qmqpc
-r-xr-xr-x 1 root qmail 14K Aug 24 09:23 qmail-qmqpd
-r-xr-xr-x 1 root qmail 21K Aug 24 09:23 qmail-qmtpd
-r-xr-xr-x 1 root qmail 15K Aug 24 09:23 qmail-qread
-r-xr-xr-x 1 root qmail 385B Aug 24 09:23 qmail-qstat
-r-xr-xr-x 1 drweb qmail 151K Aug 29 15:07 qmail-queue
-r-s--x--x 1 drweb qmail 151K Aug 29 15:07 qmail-queue.drweb
-r-s--x--x 1 qmailq qmail 12K Aug 24 09:23 qmail-queue.origin
-r-xr-xr-x 1 root qmail 12K Sep 9 00:13 qmail-queueori
-r-xr-xr-x 1 root qmail 642K Aug 24 09:23 qmail-remote
-r-xr-xr-x 1 root qmail 12K Aug 24 09:23 qmail-rspawn
-r-xr-xr-x 1 root qmail 41K Aug 24 09:23 qmail-send
-r-xr-xr-x 1 root qmail 15K Aug 24 09:23 qmail-showctl
-r-xr-xr-x 1 root qmail 661K Aug 24 09:23 qmail-smtpd
-r-xr-xr-x 1 root qmail 5K Aug 24 09:23 qmail-start
-r-xr-xr-x 1 root qmail 8K Aug 24 09:23 qmail-tcpok
-r-xr-xr-x 1 root qmail 10K Aug 24 09:23 qmail-tcpto
-r-xr-xr-x 1 root qmail 22K Aug 24 09:23 qreceipt
-r-xr-xr-x 1 root qmail 10K Aug 24 09:23 qsmhook
-r-xr-xr-x 1 root qmail 27K Aug 24 09:31 rblsmtpd
-r-xr-xr-x 1 root wheel 2M Aug 24 09:28 relaylock
-r-xr-xr-x 1 root qmail 9K Aug 24 09:23 sendmail
-r-sr-xr-x 1 root wheel 19K Aug 24 09:28 smtp_auth
-r-xr-xr-x 1 root qmail 6K Aug 24 09:23 splogger
-r-xr-xr-x 1 root qmail 16K Aug 24 09:23 tcp-env
-r-xr-xr-x 1 root qmail 2K Aug 24 09:28 true


PHP Ini
; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
sendmail_path = /usr/local/psa/qmail/bin/qmail-inject


Also, qmail Stats have tons of queue but none sending
qmail/bin/qmail-qstat
messages in queue: 53
messages in queue but not yet preprocessed: 0


ps -aux | grep qmail
qmailq 69809 0.0 0.1 896 432 p3- I 2:35PM 0:00.00 qmail-clean
qmailr 69808 0.0 0.1 932 532 p3- I 2:35PM 0:00.01 qmail-rspawn
root 69807 0.0 0.1 936 488 p3- I 2:35PM 0:00.00 qmail-lspawn ./Maildir/
qmaill 69806 0.0 0.1 904 488 p3- I 2:35PM 0:00.01 splogger qmail
qmails 69804 0.0 0.1 948 464 p3- I 2:35PM 0:00.03 qmail-send


This isn't working from CGI or PHP files. It just started happening after the upgrade. Ideas?!?!?!?

We're running the FreeBSD4.9 version of Plesk.
 
I picked this up from here. I hope it is useful. I'm afraid I'm not much of a sys admin, about all I am useful for is research at this point..so it may be totally off the mark. :)

"> qmail-inject: fatal: read error

This can happen in a number of places in the qmail-inject.c code:

- You have set the QMAILMFTFILE environment variable to point to a file that
is unreadable by qmail-inject.
- /var/qmail/control/me is unreadable.
- The input is unreadable.

Obviously the last one is unlikely in your example. The first one is
unlikely since it's a function of qmail that isn't generally used by new
users. Thus, my money is on the fact that /var/qmail/control/me is
unreadable.

Further, I'm guessing that it is owned by root.root and that the perms are
600. - Peter Green : Architekton Internet Services, LLC "
 
total 28
drwxr-xr-x 2 root qmail 512B Sep 22 12:40 .
drwxr-xr-x 12 root qmail 512B Aug 24 09:31 ..
lrwxr-xr-x 1 root qmail 43B Jul 19 23:48 clientcert.pem -> /usr/local/psa/qmail/control/servercert.pem
-rw-r--r-- 1 root wheel 1B Sep 24 14:31 databytes
-rw------- 1 qmaild wheel 245B Jul 19 23:48 dh1024.pem
-rw------- 1 qmaild wheel 156B Jul 19 23:48 dh512.pem
-rw-r--r-- 1 root wheel 10B Jul 19 23:48 locals
-rw-r--r-- 1 root wheel 14B Jul 20 00:17 me
-rw-r--r-- 1 root wheel 276B Sep 22 12:40 rcpthosts
-rw-r--r-- 1 root wheel 11B Sep 22 12:08 rejectnonexist
-rw------- 1 qmaild wheel 497B Jul 19 23:48 rsa512.pem
-rw-r--r-- 1 root wheel 3K Jul 19 23:48 servercert.pem
-rw-r--r-- 1 root wheel 25B Aug 24 09:23 smtpplugins
-rw-r--r-- 1 root wheel 344B Sep 22 12:40 virtualdomains
/usr/local/psa/qmail/control#

What username:group and what chmod setting should "me" have? The problem seemingly has stopped because maillog said that a directory for drweb was making tmp files uncreatable so I fixed that, seems to work. But if "me" may create a problem, I might as well fix it incase something else that I haven't tried is still not working. Would save my friends from jumping on me later.... Thanks a lot.
 
I have the same issue on our VPS Server included running Plesk 7.5.4

SW-Soft gots a ticket from us, they checked and have found nothing.

IT IS TIME TO CHANGE THIS BULLSHIT QMAIL TO POSTFIX!
 
I had the exact problem on my fedora box after upgrading from 7.5.3 to 7.5.4.
1. Have a look at the upgrade Page (plesk) and see if you left any (base) packages that you haven' t upgraded. If you see any perform the upgrade.
2. Stop qmail and xined. Rename the (qmail) queue directory to old_queue or something. Install (--force) qmail, drweb and all dependencies from the root (PSA) directory making shure they are the latest (7.5.4). Restart qmail, drweb and hopefully....
WARNING THIS MEANS YOY ARE GOING TO LOOSE ALL EMAILS IN QUEUE.
 
I resolved it on another way:

go to : /var/qmail/bin then ./qmail_install_post.sh

It reinstall all and after that you must restart all service with qmail, and it works again for a couple of days!
 
Yes well you two have an advantage, one being you can use RPMs and another being an INSTALL SH in your qmail/bin directories. I am using the FreeBSD version. Can someone answer my question?
::::::::::::::
What username:group and what chmod setting should "me" have? The directory "me" is found in /usr/local/psa/qmail/control or, wherever your qmail is, and then enter into the cd control.../var/qmail/control or something.
 
What username:group and what chmod setting should "me" have? The directory "me" is found in /usr/local/psa/qmail/control or, wherever your qmail is, and then enter into the cd control.../var/qmail/control or something.
The 'me' file looks like this:
Code:
ls -al /var/qmail/control/me
-rw-r--r--    1 root     root           19 May  4 22:46 me
AFAIK, this should not be *nix distro specific.

The 'me' file should contain a single line which is the primary mail server host name, such as 'mail.yourhostingdomain.com' (whichever domain name you use as the controlling host domain for the server.)
 
Back
Top