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

qmail broken on 10.4.4

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by SteveA, Apr 18, 2012.

  1. SteveA

    SteveA Guest

    0
     
    I have searched diligently through these forums for a solution. I hope someone here has also run into this issue or knows how to fix this problem.

    After the upgrade to 10.4.4 it seems that qmail is stalled. Messages just sing in the queue and do not ever send.

    The maillog has this in it over and over....

    qmail: 1334791629.631439 warning: trouble injecting bounce message, will try later
    qmail-queue-handlers[7606]: Handlers Filter before-queue for qmail started ...
    qmail-queue-handlers[7606]: cannot create temporary file - (13) Permission denied
    qmail-queue-handlers[7606]: cannot read message from stdin

    I have check the permissions as far as I know to:

    -r-xr-xr-x 1 root qmail 14240 Jan 25 20:44 /var/qmail/bin/qmail-clean
    -r-xr-xr-x 1 root qmail 8064 Jan 25 20:44 /var/qmail/bin/qmail-getpw
    -r-xr-xr-x 1 root qmail 50856 Jan 25 20:44 /var/qmail/bin/qmail-inject
    -r-x--s--x 1 mhandlers-user popuser 45512 Jan 25 20:34 /var/qmail/bin/qmail-local
    -r-xr-xr-x 1 root qmail 43248 Jan 25 20:44 /var/qmail/bin/qmail-local.moved
    -r-xr-xr-x 1 root qmail 21616 Jan 25 20:44 /var/qmail/bin/qmail-lspawn
    -r-xr-xr-x 1 root qmail 20672 Jan 25 20:44 /var/qmail/bin/qmail-newmrh
    -r-xr-xr-x 1 root qmail 16528 Jan 25 20:44 /var/qmail/bin/qmail-newu
    -r-xr-xr-x 1 root qmail 25592 Jan 25 20:44 /var/qmail/bin/qmail-pop3d
    -r-xr-xr-x 1 root qmail 16744 Jan 25 20:44 /var/qmail/bin/qmail-popup
    -r-xr-xr-x 1 root qmail 21904 Jan 25 20:44 /var/qmail/bin/qmail-pw2u
    -r-xr-xr-x 1 root qmail 21136 Jan 25 20:44 /var/qmail/bin/qmail-qmqpc
    -r-xr-xr-x 1 root qmail 20736 Jan 25 20:44 /var/qmail/bin/qmail-qmqpd
    -r-xr-xr-x 1 root qmail 29496 Jan 25 20:44 /var/qmail/bin/qmail-qmtpd
    -r-xr-xr-x 1 root qmail 21104 Jan 25 20:44 /var/qmail/bin/qmail-qread
    -r-xr-xr-x 1 root qmail 375 Jan 25 20:44 /var/qmail/bin/qmail-qstat
    -r-x--s--x 1 mhandlers-user popuser 45600 Jan 25 20:34 /var/qmail/bin/qmail-queue
    -r-s--x--x 1 qmailq qmail 20880 Jan 25 20:44 /var/qmail/bin/qmail-queue.moved
    -r-x--s--x 1 mhandlers-user popuser 45496 Jan 25 20:34 /var/qmail/bin/qmail-remote
    -r-xr-xr-x 1 root qmail 47072 Jan 25 20:44 /var/qmail/bin/qmail-remote.moved
    -r-xr-xr-x 1 root qmail 16952 Jan 25 20:44 /var/qmail/bin/qmail-rspawn
    -r-xr-xr-x 1 root qmail 51968 Jan 25 20:44 /var/qmail/bin/qmail-send
    -r-xr-xr-x 1 root qmail 20872 Jan 25 20:44 /var/qmail/bin/qmail-showctl
    -rwxr-xr-x 1 root root 60248 Apr 13 01:25 /var/qmail/bin/qmail-smtpd
    -r-xr-xr-x 1 root qmail 7984 Jan 25 20:44 /var/qmail/bin/qmail-start
    -r-xr-xr-x 1 root qmail 11680 Jan 25 20:44 /var/qmail/bin/qmail-tcpok
    -r-xr-xr-x 1 root qmail 15944 Jan 25 20:44 /var/qmail/bin/qmail-tcpto

    I have been working at this for hours now, an can not seem to find what is causing the issue.

    Thanks for any help.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Did you try to fix it with mchk?
     
  3. SteveA

    SteveA Guest

    0
     
    Yes I did. But that did not work. I tried it with and without the spam tag.

    # mchk
    ==> Checking for: mailsrv_conf_init... ok
    ==> Checking for: mail_handlers_init... ok
    ==> Checking for: mailsrv_entities_dump... ok
    ==> Checking for: mail_admin_aliases... ok
    ==> Checking for: mail_auth_dump... ok
    ==> Checking for: mailman_lists_dump... ok
    ==> Checking for: mail_kav8_restore... ok
    ==> Checking for: mail_responder_restore... ok
    ==> Checking for: mail_spam_restore... ok
    ==> Checking for: mail_grey_restore... ok
    ==> Checking for: mail_mailbox_restore... ok
    ==> Checking for: mail_spf_restore... ok
    ==> Checking for: mail_dk_restore... ok
    ==> Checking for: mail_drweb_restore... not exists

    The mail log is full of the same 4 lines:

    Apr 19 05:14:38 qmail: 1334837678.338124 warning: trouble injecting bounce message, will try later
    Apr 19 05:14:54 qmail-queue-handlers[15700]: Handlers Filter before-queue for qmail started ...
    Apr 19 05:14:54 qmail-queue-handlers[15700]: cannot create temporary file - (13) Permission denied
    Apr 19 05:14:54 qmail-queue-handlers[15700]: cannot read message from stdin
     
  4. SteveA

    SteveA Guest

    0
     
    Any help on this would be greatly appreciated, I have a very angry client, the host is telling me to call Parallels, and Parallels is telling me that because the Plesk was resold through the host that the host is suppose to support it...

    Meanwhile, I can not find anything that might have caused this or information on how to fix it.
     
  5. SteveA

    SteveA Guest

    0
     
    ---------------------------------------------------------------
    psa-10.4.4-cos5.build1013120126.11, Linux 2.6.18-028stab095.1, MSD 2011 x86_64 x86_64 x86_64 GNU/Linux

    PROBLEM DESCRIPTION: After microupdate to 10.4.4 qmail not sending mail, queue stalled.

    STEPS TO REPRODUCE: microupdate to 10.4.4

    ACTUAL RESULT: qmail fails

    EXPECTED RESULT: qmail functions normally

    ANY ADDITIONAL INFORMATION: See previous posts

    --------------------------------------------------------------
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Do you have the same permissions for /usr/lib64/plesk-9.0/handlers-tmpfs file?

    Any errors if you restart it?
    Looks like somewhere permissions are incorrect. You can try to switch from Qmail to Postfix and then back to Qmail MTA for fixing this issue. How to switch you can find in KB articles.
     
  7. donthateonme

    donthateonme Guest

    0
     
    Same issue

    Hello,

    I am having the same issue since the same time.

    The best I could find was this:

    http://www.linuxweblog.com/blog-tags/qmail

    I will copy the messages out, install postfix and then install qmail again, hoping this fixes the permission issues. Using the below:

    /usr/local/psa/admin/sbin/autoinstaller --select-release-current --install-component postfix

    /usr/local/psa/admin/sbin/autoinstaller --select-release-current --install-component qmail


    Then move the messages back in for processing.

    I will post back if it works -- please post back if you solve this in the meantime.

    Thanks.
     
  8. donthateonme

    donthateonme Guest

    0
     
    Update

    Igor,

    My "handlers-tmpfs" file looks the same as yours above.

    No errors on starting and stopping.

    After running the changes, I was able to send mail during postfix, after reinstalling back to qmail same deal:

    Key Entries below:

    Apr 23 16:41:16 XXXXXXXXXXX qmail-queue-handlers[16334]: Handlers Filter before-queue for qmail started ...
    Apr 23 16:41:16 XXXXXXXXXXX qmail-queue-handlers[16334]: cannot create temporary file - (13) Permission denied
    Apr 23 16:41:16 XXXXXXXXXXX qmail-queue-handlers[16334]: cannot read message from stdin
    Apr 23 16:41:16 XXXXXXXXXXX qmail: 1335224476.440699 warning: trouble injecting bounce message, will try later
     
  9. donthateonme

    donthateonme Guest

    0
     
    When I send or receive email and run the qmHandle -s command

    I get the following:

    Total messages: 74
    Messages with local recipients: 0
    Messages with remote recipients: 0
    Messages with bounces: 74
    Messages in preprocess: 0

    This goes up by one whenever I send an email to or from the affected domain.
     
  10. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
  11. Lorenz-IT

    Lorenz-IT Guest

    0
     
    The last MU seems to be an improvement to worse for qmail users. I'd send a bug report myself, if the bugs I see would be reproducable easily (Messages to multiple recipients are repeatedly send, in some special cases; the postfix virtual.de accesses on qmail driven mail systems; aso.)

    Well, knowing Plesk since version 7, I have a look here to get an impression, which problems I have to expect after installing the next MU first, not to get a victim of development circumstances.

    In your case, maybe installing postfix and reinstalling qmail will be the only available workaroud try, if you don't have the time to wait and hope.

    It's so sad, that a in general phantastic tool ends up in such development related customer dissatisfaction.
     
  12. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
  13. donthateonme

    donthateonme Guest

    0
     
    Solved

    Igor (et al)

    I got it solved with MU 28 etc.

    I found the reason of the issue, mail handlers could not create temporary file in directory /usr/local/psa/handlers/spool
    In order to fix it I have changed permissions on directory /usr/local/psa/handlers/spool to 770 as it was set on our test server:

    CODE Below:

    [root@********** bin]# chmod 770 /usr/local/psa/handlers/spool
    [root@********** bin]# ls -lda /usr/local/psa/handlers/spool
    drwxrwx--- 2 popuser popuser 4096 May 2 21:43 /usr/local/psa/handlers/spool
     
  14. DeaneM

    DeaneM Guest

    0
     
    That does not fix the problem for me

    My spool directory looks like yours:
    drwxrwx--- 2 popuser popuser 4096 Jun 1 15:17 /usr/local/psa/handlers/spool/

    Also, I tried the "Johannes Frank" fix, to no avail.

    (chown mhandlers-user:popuser qmail-local; chmod g+s,g-r,o-r qmail-local; /etc/init.d/qmail restart)



    When sending to the account, I get:

    Jun 1 15:17:06 mydomain /var/qmail/bin/relaylock[26054]: /var/qmail/bin/relaylock: mail from 2.3.4.5:65049 (someother.server.com)
    Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: Handlers Filter before-queue for qmail started ...
    Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: from=person@someotherdomain.com
    Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: to=person@mydomain.com
    Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: handlers_stderr: SKIP
    Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: SKIP during call 'check-quota' handler
    Jun 1 15:17:06 mydomain qmail: 1338589026.699782 new msg 112152727
    Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: starter: submitter[26058] exited normally
    Jun 1 15:17:06 mydomain qmail: 1338589026.699827 info msg 112152727: bytes 1269 from <person@someotherdomain.com> qp 26058 uid 2020
    Jun 1 15:17:06 mydomain qmail: 1338589026.702225 starting delivery 2: msg 112152727 to local 1-person@mydomain.com
    Jun 1 15:17:06 mydomain qmail: 1338589026.702261 status: local 1/10 remote 0/20
    Jun 1 15:17:06 mydomain qmail-local-handlers[26059]: Handlers Filter before-local for qmail started ...
    Jun 1 15:17:06 mydomain qmail-local-handlers[26059]: cannot create temporary file - (13) Permission denied
    Jun 1 15:17:06 mydomain qmail-local-handlers[26059]: cannot read message from stdin
    Jun 1 15:17:06 mydomain qmail: 1338589026.705026 delivery 2: failure:
    Jun 1 15:17:06 mydomain qmail: 1338589026.705078 status: local 0/10 remote 0/20
    Jun 1 15:17:06 mydomain qmail-queue-handlers[26060]: Handlers Filter before-queue for qmail started ...
    Jun 1 15:17:06 mydomain qmail-queue-handlers[26060]: cannot create temporary file - (13) Permission denied
    Jun 1 15:17:06 mydomain qmail-queue-handlers[26060]: cannot read message from stdin
    Jun 1 15:17:06 mydomain qmail: 1338589026.706767 warning: trouble injecting bounce message, will try later


    When sending from the account, I get:

    Jun 1 15:17:55 mydomain /var/qmail/bin/relaylock[26163]: /var/qmail/bin/relaylock: mail from 1.2.3.4:53533 (my.dsl.address.net)
    Jun 1 15:17:56 mydomain cmd5checkpw: SMTP connect from my.dsl.address.net [1.2.3.4]
    Jun 1 15:17:56 mydomain cmd5checkpw: SMTP user person@mydomain.com: logged in from my.dsl.address.net [1.2.3.4]
    Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: Handlers Filter before-queue for qmail started ...
    Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: from=person@mydomain.com
    Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: to=person@someotherdomain.com
    Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: handlers_stderr: SKIP
    Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: SKIP during call 'check-quota' handler
    Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: starter: submitter[26168] exited normally
    Jun 1 15:17:56 mydomain qmail: 1338589076.594074 new msg 112152730
    Jun 1 15:17:56 mydomain qmail: 1338589076.594108 info msg 112152730: bytes 662 from <person@mydomain.com> qp 26168 uid 2020
    Jun 1 15:17:56 mydomain qmail: 1338589076.596951 starting delivery 3: msg 112152730 to remote person@someotherdomain.com
    Jun 1 15:17:56 mydomain qmail: 1338589076.596978 status: local 0/10 remote 1/20
    Jun 1 15:17:56 mydomain qmail-remote-handlers[26169]: Handlers Filter before-remote for qmail started ...
    Jun 1 15:17:56 mydomain qmail-remote-handlers[26169]: cannot create temporary file - (13) Permission denied
    Jun 1 15:17:56 mydomain qmail-remote-handlers[26169]: cannot read message from stdin
    Jun 1 15:17:56 mydomain qmail: 1338589076.599152 delivery 3: failure: handlers_permanentfail/
    Jun 1 15:17:56 mydomain qmail: 1338589076.599378 status: local 0/10 remote 0/20
    Jun 1 15:17:56 mydomain qmail-queue-handlers[26170]: Handlers Filter before-queue for qmail started ...
    Jun 1 15:17:56 mydomain qmail-queue-handlers[26170]: cannot create temporary file - (13) Permission denied
    Jun 1 15:17:56 mydomain qmail-queue-handlers[26170]: cannot read message from stdin
    Jun 1 15:17:56 mydomain qmail: 1338589076.601871 warning: trouble injecting bounce message, will try later
     
  15. TristanR

    TristanR New Pleskian

    12
    85%
    Joined:
    Dec 19, 2011
    Messages:
    5
    Likes Received:
    0
    exactly the same problem

    I've got exactly the same problem like DeaneM here. I also tried all of the available workarounds. The problem also persists when I switch to postfix.

    10.4.4 Update #32 on Centos 5.7

     
    Last edited: Jun 6, 2012
Loading...