• 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.

even bigger problems - urgent!

M

manarak

Guest
even bigger MAIL problems

After upgrading to 7.5.4 I had the problem that mail was not working at all.
I uninstalled, reinstalled qmail, scanner, clamav, etc.
The smtp_psa files are OK too.
There's no watchdog, no drweb.

I rebooted the server.

Now, not only the mail doesn't work, but the Plesk control panel login has disappeared too! (yes, the one with https: and 8443)
=> page/server not found!

I tried restarting psa.
It tells PSA is down, performing full start.
I get an OK.

I retry to start psa, and it tells me PSA is down, full start again.

It seems I can never get it to run.

Can someone help me fix these 2 problems?
 
ok, a reboot solved the plesk panel problem.

now, I still have the problem that no mail, incoming and outbound is working.
 
hmmmmmm...

in /usr/local/psa/var/log/maillog

I see "deferral - sorry, message has wrong owner"

how to fix this?
 
found this in a mailinglist archive:

>Jul 28 15:21:21 tux qmail: 964790481.074367 delivery 18: deferral:
>+Sorry,_message_has_wrong_owner._(#4.3.5)/

qmail expects messages in the queue to be owned by the qmailq user.
The set of qmail UID's in compiled into the binaries at build time. It
sounds like you changed the qmail UID's after the build, or installed
binaries built on system with UID's.

does someone understand what this is about and how I can fix the mail?
 
here it is:

/var/qmail/bin:
total 4392
drwxr-xr-x 2 root qmail 4096 Oct 25 19:59 .
drwxr-xr-x 11 root qmail 4096 Aug 24 08:29 ..
-r-sr-xr-x 1 root qmail 1217616 Aug 24 08:26 autoresponder
-r-xr-xr-x 1 root qmail 9320 Aug 24 08:21 bouncesaying
-r-sr-xr-x 1 root root 999552 Aug 24 08:26 cmd5checkpw
-r-xr-xr-x 1 root qmail 15540 Aug 24 08:21 condredirect
-r-xr-xr-x 1 root qmail 126 Aug 24 08:21 datemail
-r-xr-xr-x 1 root qmail 114 Aug 24 08:21 elq
-r-xr-xr-x 1 root qmail 9256 Aug 24 08:21 except
-r-xr-xr-x 1 root qmail 15404 Aug 24 08:21 forward
-r-xr-xr-x 1 root qmail 18804 Aug 24 08:21 maildir2mbox
-r-xr-xr-x 1 root qmail 8964 Aug 24 08:21 maildirmake
-r-xr-xr-x 1 root qmail 17316 Aug 24 08:21 maildirwatch
-r-xr-xr-x 1 root qmail 179 Aug 24 08:21 mailsubj
-r-xr-xr-x 1 root qmail 34160 Aug 24 08:26 matchup
-r-xr-sr-x 1 root mail 4740 Aug 24 08:26 mm_wrapper
-r-xr-xr-x 1 root qmail 115 Aug 24 08:21 pinq
-r-xr-xr-x 1 root qmail 12800 Aug 24 08:21 predate
-r-xr-xr-x 1 root qmail 13144 Aug 24 08:21 preline
-r-xr-xr-x 1 root qmail 115 Aug 24 08:21 qail
-r-xr-xr-x 1 root qmail 11320 Aug 24 08:21 qbiff
-r-xr-xr-x 1 root qmail 9828 Aug 24 08:21 qmail-clean
-r-xr-xr-x 1 root qmail 6536 Aug 24 08:21 qmail-getpw
-r-xr-xr-x 1 root qmail 43092 Aug 24 08:21 qmail-inject
-r-xr-xr-x 1 root qmail 62507 Aug 24 08:21 qmail_install_post.sh
-r-xr-xr-x 1 root qmail 43976 Aug 24 08:21 qmail-local
-r-xr-xr-x 1 root qmail 17064 Aug 24 08:21 qmail-lspawn
-r-xr-xr-x 1 root qmail 15680 Aug 24 08:21 qmail-newmrh
-r-xr-xr-x 1 root qmail 11532 Aug 24 08:21 qmail-newu
-r-xr-xr-x 1 root qmail 20560 Aug 24 08:21 qmail-pop3d
-r-xr-xr-x 1 root qmail 12352 Aug 24 08:21 qmail-popup
-r-xr-xr-x 1 root qmail 16100 Aug 24 08:21 qmail-pw2u
-r-xr-xr-x 1 root qmail 12984 Aug 24 08:21 qmail-qmqpc
-r-xr-xr-x 1 root qmail 15776 Aug 24 08:21 qmail-qmqpd
-r-xr-xr-x 1 root qmail 25172 Aug 24 08:21 qmail-qmtpd
-r-xr-xr-x 1 root qmail 16472 Aug 24 08:21 qmail-qread
-r-xr-xr-x 1 root qmail 375 Aug 24 08:21 qmail-qstat
-rwsr-sr-x 1 qmailq qmail 4647 Oct 25 19:57 qmail-queue
-r-xr-xr-x 1 root qmail 158652 Jun 28 21:37 qmail-queue.drweb
-r-s--x--x 1 root qmail 16012 May 6 09:24 qmail-queue.orig
-r-xr-xr-x 1 root qmail 70872 Aug 24 08:21 qmail-remote
-r-xr-xr-x 1 root qmail 15896 Aug 24 08:21 qmail-rspawn
-rwxr-xr-x 1 qmailq qmail 129920 Oct 25 19:59 qmail-scanner-queue.pl
-r-xr-xr-x 1 root qmail 42988 Aug 24 08:21 qmail-send
-r-xr-xr-x 1 root qmail 17516 Aug 24 08:21 qmail-showctl
-r-xr-xr-x 1 root qmail 47852 Aug 24 08:21 qmail-smtpd
-r-xr-xr-x 1 root qmail 6216 Aug 24 08:21 qmail-start
-r-xr-xr-x 1 root qmail 10736 Aug 24 08:21 qmail-tcpok
-r-xr-xr-x 1 root qmail 10888 Aug 24 08:21 qmail-tcpto
-r-xr-xr-x 1 root qmail 24932 Aug 24 08:21 qreceipt
-r-xr-xr-x 1 root qmail 11584 Aug 24 08:21 qsmhook
-r-xr-xr-x 1 root root 981540 Aug 24 08:26 relaylock
-r-xr-xr-x 1 root qmail 9640 Aug 24 08:21 sendmail
-r-sr-xr-x 1 root root 20644 Aug 24 08:26 smtp_auth
-r-xr-xr-x 1 root qmail 7104 Aug 24 08:21 splogger
-r-xr-xr-x 1 root qmail 17176 Aug 24 08:21 tcp-env
-r-xr-xr-x 1 root qmail 2920 Aug 24 08:26 true
 
Please try the following:

chown qmailq /var/qmail/bin/qmail-queue.orig
 
ok, did that.

restarted qmail

It seems I can now receive and send mails.
Thank you!

Any idea how to get the message queue delivered?
 
with

killall -ALRM qmail-send

you can force qmail to process the queue
 
You're welcome.

I've had the same problems when starting to work with qmail 12 month ago....
 
qmailq owns clamd
qmails owns qmail-send
qmaill owns splogger qmail
root owns qmail-lspawn ./Maildir/
qmailr owns qmail-rspawn
qmailq owns qmail-clean
root owns grep qmail
 
Uhmmm - Interesting output. That's of no help. you can neither see how many of the processes are running nore since when.

However, the following should start queue processing immediately:

service qmail stop
killall -9 qmail-rspawn
killall -9 qmail-lspawn
killall -9 qmail-send
killall -9 qmail-clean
service qmail start

Please be aware that the standard settings for qmail only allow parallel processing of 10 incoming and 20 outgoing mails. So if your queue is really full and there are some lame servers you need to send to, it will take time...
 
sorry. here it is

qmailq 1722 1 0 20:33 ? 00:00:00 clamd
qmails 3953 1 0 22:20 pts/0 00:00:00 qmail-send
qmaill 3955 3953 0 22:20 pts/0 00:00:00 splogger qmail
root 3956 3953 0 22:20 pts/0 00:00:00 qmail-lspawn ./Maildir/
qmailr 3957 3953 0 22:20 pts/0 00:00:00 qmail-rspawn
qmailq 3958 3953 0 22:20 pts/0 00:00:00 qmail-clean
root 3998 2296 0 22:21 pts/0 00:00:00 grep qmail -



the killall -9 commands all resulted in "no process killed".
queue still there.
 
I guess "queue still there" means the output of /var/qmail/bin/qmail-qstat right?

I fear you've got now broken mails in the queue. There IS a way to rebuild the queue completely - but this means a total loss of all mails in the queue.

Please check with /var/qmail/bin/qmail-qread if the mails are qorth to be kept - otherwise I will tell you how to rebuild your queue
 
messages in queue: 239
not preprocessed: 0

there are messages from customers there!
you mean qmail cannot process them anymore?
 
ps ax | grep qmail-send
kill -ALRM <pid_number>

You may need to run /var/qmail/bin/qmail-tcpok before sending the ALRM signal to clear the qmail tcp timeout table, or qmail will wait till retry times are reached before it again attempts to send messages.

It's the only way I know to force qmail to process the queue immediately. If this doesn't work....

BTW: Did you remove the virusscanner from all .qmail files?
 
Back
Top