• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Emails are stucked

D

dwjrfernandes

Guest
Hello,

I had a problem with my server (Plesk 8.2.1 Linux) this weekend and when it came back on all emails are stucked in the server. I tried to send a mail both from outside as inside and I don't receive anything, however, there's no returning error.

this is what I get from /usr/local/psa/var/log/maillog:

Dec 12 00:19:31 ds9 qmail: 1197418771.383569 status: local 5/10 remote 0/20
Dec 12 00:19:31 ds9 qmail: 1197418771.383603 delivery 286: deferral: qmail-local_crashed./
Dec 12 00:19:31 ds9 qmail: 1197418771.383637 status: local 4/10 remote 0/20
Dec 12 00:19:31 ds9 qmail: 1197418771.383678 delivery 287: deferral: qmail-local_crashed./
Dec 12 00:19:31 ds9 qmail: 1197418771.383713 status: local 3/10 remote 0/20
Dec 12 00:19:31 ds9 qmail: 1197418771.383747 delivery 288: deferral: qmail-local_crashed./

I really, REALLY need help on this!

Thanks in advance
 
qmail-local is a process that takes a message from qmail-lspawn and places the message into appropriate folder of local mail account on this server.. it is hard to say what can be a reason of this, but first of all check does it happen with all the local mail accounts or not..

if it is global problem and no other errors or reason explanations are reported in logs, then probably the easiest way would be to forcibly reinstall psa-qmail and corresponding plesk mail packages..

if it is one mail account problem only, then it's needed to check integrity of this mail account folders imho.
 
This is a global issue, no one is receiving mail and my queue has >1600 local messages...

I just don't know what to do, I've been searching all over the place and can't find anything.
 
That will not empty the current queue? I'm afraid to loose the mails that are in there, it's about 2 days of mails.
 
it will not... or just make a backup dump of /var/qmail folder to feel you absolutely safe :)
 
I don't use psa-spamassassin, but the ART's SpamAssassin (with clamav and qmail-scanner).

what is the process to re-install all this?

service qmail stop
service spamassassin stop
service clamd stop
rpm -Uvh --force psa-qmail...
service qmail start
service spamassassin start
service clamd start

?
 
well, just reinstalled qmail and that message don't appear in the log anymore, however, I'm not receiving any mails...

I watched the queue dropped, all mails where gone from the queue in 4 minutes, however, I don't know where they went.. I've tried to send a email (from a local account to another) and nothing..

here's a piece of my log:

Dec 12 11:56:27 ds9 qmail-queue-handlers[17949]: Handlers Filter before-queue for qmail started ...
Dec 12 11:56:27 ds9 qmail-queue-handlers[17949]: from=
Dec 12 11:56:27 ds9 qmail-queue-handlers[17949]: [email protected]
Dec 12 11:56:27 ds9 qmail-queue-handlers[17949]: hook_dir = '/var/qmail//handlers/before-queue'
Dec 12 11:56:27 ds9 qmail-queue-handlers[17949]: recipient[3] = '[email protected]'
Dec 12 11:56:27 ds9 qmail-queue-handlers[17949]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Dec 12 11:56:27 ds9 qmail-queue-handlers[17949]: starter: submitter[17950] exited normally
Dec 12 11:56:27 ds9 qmail-scanner[17942]: Clear:RC:1(127.0.0.1): 0.035811 1935 <> [email protected] failure_notice <[email protected]> 1197460586.17944-0.ds9.serverchoice.com:1742
Dec 12 11:56:27 ds9 qmail: 1197460587.030094 bounce msg 16089092 qp 17942
Dec 12 11:56:27 ds9 qmail: 1197460587.030262 end msg 16089092
Dec 12 11:56:27 ds9 qmail: 1197460587.032079 new msg 16089094
Dec 12 11:56:27 ds9 qmail: 1197460587.032180 info msg 16089094: bytes 2263 from <> qp 17950 uid 10068
Dec 12 11:56:27 ds9 qmail: 1197460587.037083 starting delivery 413: msg 16089094 to remote [email protected]
Dec 12 11:56:27 ds9 qmail: 1197460587.037199 status: local 0/10 remote 1/20
Dec 12 11:56:27 ds9 qmail-remote-handlers[17952]: Handlers Filter before-remote for qmail started ...
Dec 12 11:56:27 ds9 qmail-remote-handlers[17952]: from=
Dec 12 11:56:27 ds9 qmail-remote-handlers[17952]: [email protected]
Dec 12 11:56:33 ds9 qmail: 1197460593.774610 delivery 413: failure: 64.202.166.12_failed_after_I_sent_the_message./Remote_host_said:_554_The_message_was_rejected_because_it_contains_prohibited_virus_or_spam_content/
Dec 12 11:56:33 ds9 qmail: 1197460593.774676 status: local 0/10 remote 0/20
Dec 12 11:56:33 ds9 qmail-queue-handlers[17961]: Handlers Filter before-queue for qmail started ...
Dec 12 11:56:33 ds9 qmail-queue-handlers[17961]: from=#@[]
Dec 12 11:56:33 ds9 qmail-queue-handlers[17961]: [email protected]
Dec 12 11:56:33 ds9 qmail-queue-handlers[17961]: hook_dir = '/var/qmail//handlers/before-queue'
Dec 12 11:56:33 ds9 qmail-queue-handlers[17961]: recipient[3] = '[email protected]'
Dec 12 11:56:33 ds9 qmail-queue-handlers[17961]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Dec 12 11:56:33 ds9 qmail-queue-handlers[17961]: starter: submitter[17962] exited normally
Dec 12 11:56:33 ds9 qmail-scanner[17954]: Clear:RC:1(127.0.0.1): 0.037359 2830 #@[] [email protected] failure_notice <[email protected]> 1197460593.17956-0.ds9.serverchoice.com:2633
Dec 12 11:56:33 ds9 qmail: 1197460593.965567 bounce msg 16089094 qp 17954
Dec 12 11:56:33 ds9 qmail: 1197460593.965639 end msg 16089094
Dec 12 11:56:33 ds9 qmail: 1197460593.967565 new msg 16089092
Dec 12 11:56:33 ds9 qmail: 1197460593.967611 info msg 16089092: bytes 3162 from <#@[]> qp 17962 uid 10068
Dec 12 11:56:33 ds9 qmail: 1197460593.970559 starting delivery 414: msg 16089092 to local [email protected]
Dec 12 11:56:33 ds9 qmail: 1197460593.970610 status: local 1/10 remote 0/20
Dec 12 11:56:33 ds9 qmail-local-handlers[17964]: Handlers Filter before-local for qmail started ...
Dec 12 11:56:33 ds9 qmail-local-handlers[17964]: from=#@[]
Dec 12 11:56:33 ds9 qmail-local-handlers[17964]: [email protected]
Dec 12 11:56:33 ds9 qmail-local-handlers[17964]: starter: submitter[17965] exited on signal 11
Dec 12 11:56:33 ds9 qmail-local-handlers[17964]: starter: submitter[17965] terminates abnormally with status 0
Dec 12 11:56:33 ds9 qmail-local-handlers[17964]: cannot reinject message to '[email protected]'
Dec 12 11:56:33 ds9 qmail: 1197460593.977069 delivery 414: failure:
Dec 12 11:56:33 ds9 qmail: 1197460593.977124 status: local 0/10 remote 0/20
Dec 12 11:56:33 ds9 qmail: 1197460593.977159 triple bounce: discarding bounce/16089092
Dec 12 11:56:33 ds9 qmail: 1197460593.977192 end msg 16089092
Dec 12 11:56:35 ds9 pop3d: 1197460595.824447 LOGOUT, user=info, ip=[81.193.181.205], top=0, retr=0, time=0, rcvd=12, sent=39, maildir=/var/qmail/mailnames/materiactiva.com/info/Maildir
Dec 12 11:56:57 ds9 pop3d: 1197460617.8768 LOGOUT, user=geral, ip=[89.180.117.123], top=0, retr=0, time=1, rcvd=12, sent=39, maildir=/var/qmail/mailnames/enterprom.pt/geral/Maildir
Dec 12 11:56:57 ds9 pop3d: 1197460617.567987 LOGOUT, user=comercial, ip=[89.180.117.123], top=0, retr=0, time=0, rcvd=12, sent=39, maildir=/var/qmail/mailnames/enterprom.pt/comercial/Maildir


I don't know what to do... :(
 
I didn't use art's one... if it was plesk's original one, I would say "service psa-spamassassin(!) stop/start, not just spamassassin".. also I think it is better to start spamassassin and clamav before qmail -- because as soon as you start qmail, it will start processing messages immediatelly...
 
such messages to postmaster:

from=#@[]
[email protected]

may simply be ignored, experience shows that they are either bounces or bounced spam

check in log what happens with messages to real local acconts
 
Dec 12 12:12:49 ds9 qmail-queue-handlers[28386]: Handlers Filter before-queue for qmail started ...
Dec 12 12:12:49 ds9 qmail-queue-handlers[28386]: [email protected]
Dec 12 12:12:49 ds9 qmail-queue-handlers[28386]: [email protected]
Dec 12 12:12:49 ds9 qmail-queue-handlers[28386]: hook_dir = '/var/qmail//handlers/before-queue'
Dec 12 12:12:49 ds9 qmail-queue-handlers[28386]: recipient[3] = '[email protected]'
Dec 12 12:12:49 ds9 qmail-queue-handlers[28386]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Dec 12 12:12:49 ds9 qmail: 1197461569.665691 new msg 16089090
Dec 12 12:12:49 ds9 qmail: 1197461569.665754 info msg 16089090: bytes 935 from <[email protected]> qp 28387 uid 10068
Dec 12 12:12:49 ds9 qmail-queue-handlers[28386]: starter: submitter[28387] exited normally
Dec 12 12:12:49 ds9 qmail: 1197461569.670407 starting delivery 53: msg 16089090 to local [email protected]
Dec 12 12:12:49 ds9 qmail: 1197461569.670640 status: local 1/10 remote 1/20
Dec 12 12:12:49 ds9 qmail-scanner[28366]: Clear:RC:1(127.0.0.1): 0.025877 565 [email protected] [email protected] Vamos_ver_o_que_=?ISO-8859-1?Q?d=E1?= <[email protected]> 1197461569.28379-0.ds9.serverchoice.com:48
Dec 12 12:12:49 ds9 qmail-local-handlers[28388]: Handlers Filter before-local for qmail started ...
Dec 12 12:12:49 ds9 qmail-local-handlers[28388]: [email protected]
Dec 12 12:12:49 ds9 qmail-local-handlers[28388]: [email protected]
Dec 12 12:12:49 ds9 qmail-local-handlers[28388]: starter: submitter[28390] exited on signal 11
Dec 12 12:12:49 ds9 qmail-local-handlers[28388]: starter: submitter[28390] terminates abnormally with status 0
Dec 12 12:12:49 ds9 qmail-local-handlers[28388]: cannot reinject message to '[email protected]'
Dec 12 12:12:49 ds9 qmail: 1197461569.676896 delivery 53: failure:
Dec 12 12:12:49 ds9 qmail: 1197461569.676954 status: local 0/10 remote 1/20

just send one message from one local account to another...
didn't received anything and thunderbird didn't got any error while sending
 
again segfault.. now I have no idea what may cause this, but as a dirty fix try the following:

# cd /var/qmail/bin
# cp -a ./qmail-local.moved ./qmail-local

meaning is that original qmail's qmail-local is restored and messages will not pass through plesk's mail-handlers...
 
well.. new messages are now beeing delivered, however, since the last queue list for local messages had dissapeared, I've copy the backup back in (uff, good thing I did a backup)., however, can't make it beeing processed, everything is stuck in it

qmhandle.pl -s Wed Dec 12 12:39:05 2007

Total messages: 1852
Messages with local recipients: 1846
Messages with remote recipients: 5
Messages with bounces: 0
Messages in preprocess: 0

.... but, new messages are immediately delivered...
any sugestion on how to deliver this queue? I've tried forcing with qmHandle, but nothing.. :/
 
if a message was not delivered immediately, qmail-send continue deliver attempts within 'queuelifetime' period and interval between attempts increases every time.. for example, it tries 1 minute later, then 5 min, then 20 min and so on.. one by one, but all these messages will be processed at last..

but if you need to forcibly re-process all the stalled messages, run

# kill -ALRM <PID of qmail-send process>
 
I already tried to send ALRM to qmail-send... still the same.. :/
 
Back
Top