1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Emails are stucked

Discussion in 'Plesk for Linux - 8.x and Older' started by dwjrfernandes, Dec 11, 2007.

  1. dwjrfernandes

    dwjrfernandes Guest

    0
     
    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:

    I really, REALLY need help on this!

    Thanks in advance
     
  2. dirty@

    dirty@ Guest

    0
     
    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.
     
  3. dwjrfernandes

    dwjrfernandes Guest

    0
     
    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.
     
  4. dirty@

    dirty@ Guest

    0
     
    http://autoinstall.plesk.com/PSA_8.2.1/

    take psa-qmail for your os from there, if you have drweb or/and spamassassin - take their RPMs as well.. then forcibly reinstall all the RPM packages with one command: `rpm -Uvh --force rpm1 rpm2 rpm3...`
     
  5. dwjrfernandes

    dwjrfernandes Guest

    0
     
    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.
     
  6. dirty@

    dirty@ Guest

    0
     
    it will not... or just make a backup dump of /var/qmail folder to feel you absolutely safe :)
     
  7. dwjrfernandes

    dwjrfernandes Guest

    0
     
    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

    ?
     
  8. dwjrfernandes

    dwjrfernandes Guest

    0
     
    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]: to=mackey@bright-minds.com
    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] = 'mackey@bright-minds.com'
    Dec 12 11:56:27 ds9 qmail-queue-handlers[17949]: handlers dir = '/var/qmail//handlers/before-queue/recipient/mackey@bright-minds.com'
    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 <> mackey@bright-minds.com failure_notice <119746058699317942@ds9.serverchoice.com> 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 mackey@bright-minds.com
    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]: to=mackey@bright-minds.com
    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]: to=postmaster@digital-work.com
    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] = 'postmaster@digital-work.com'
    Dec 12 11:56:33 ds9 qmail-queue-handlers[17961]: handlers dir = '/var/qmail//handlers/before-queue/recipient/postmaster@digital-work.com'
    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 #@[] postmaster@digital-work.com failure_notice <119746059399317954@ds9.serverchoice.com> 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 44-postmaster@digital-work.com
    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]: to=postmaster@digital-work.com
    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 'postmaster@digital-work.com'
    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... :(
     
  9. dirty@

    dirty@ Guest

    0
     
    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...
     
  10. dirty@

    dirty@ Guest

    0
     
    such messages to postmaster:

    from=#@[]
    to=postmaster@digital-work.com

    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
     
  11. dwjrfernandes

    dwjrfernandes Guest

    0
     
    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]: from=joel@digital-work.com
    Dec 12 12:12:49 ds9 qmail-queue-handlers[28386]: to=info@digital-work.com
    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] = 'info@digital-work.com'
    Dec 12 12:12:49 ds9 qmail-queue-handlers[28386]: handlers dir = '/var/qmail//handlers/before-queue/recipient/info@digital-work.com'
    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 <joel@digital-work.com> 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 44-info@digital-work.com
    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 joel@digital-work.com info@digital-work.com Vamos_ver_o_que_=?ISO-8859-1?Q?d=E1?= <475FD091.8090103@digital-work.com> 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]: from=joel@digital-work.com
    Dec 12 12:12:49 ds9 qmail-local-handlers[28388]: to=info@digital-work.com
    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 'info@digital-work.com'
    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
     
  12. dirty@

    dirty@ Guest

    0
     
    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...
     
  13. dwjrfernandes

    dwjrfernandes Guest

    0
     
    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.. :/
     
  14. dirty@

    dirty@ Guest

    0
     
    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>
     
  15. dwjrfernandes

    dwjrfernandes Guest

    0
     
    I already tried to send ALRM to qmail-send... still the same.. :/
     
Loading...