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-scanner broke qmail

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by koolnyze, Jan 21, 2009.

  1. koolnyze

    koolnyze Guest

    0
     
    Hello,

    I have plesk 9.0 on centos 5.2. I have installed qmail-scanner over it and it broke the qmail. The error in the logs was

    Jan 21 12:09:52 vps qmail-queue-handlers[15999]: Unable to change group ID: Operation not permitted
    Jan 21 12:09:52 vps X-Qmail-Scanner-2.02st: [] Unable to open pipe to /var/qmail/bin/qmail-queue.orig [255] (#4.3.0) -
    Jan 21 12:09:52 vps X-Qmail-Scanner-2.02st: [] Unable to close pipe to /var/qmail/bin/qmail-queue.orig [255] (#4.3.0) - Illegal seek

    I managed to fix the outgoing emails by changing permission but the incoming emails are still not working. I can't connect to localhost on port 25 even from the server.

    [root@vps bin]# telnet 127.0.0.1 25
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused

    I have already forced re-install of plesk-qmail but it won't fix the problem.

    Please suggest.
     
  2. TonyMoroney

    TonyMoroney Guest

    0
     
    Did you ever manage to get this solved?

    Regards

    T.
     
  3. koolnyze

    koolnyze Guest

    0
     
    Hi,

    I notice that I can send emails through webmail only which uses IMAP. However the problem still remains unsolved. Qmail SMTP is not working. Here is some info which might help linux guru to suggest a solution.

    [root@vps qscan]# ps -ef | grep qmail
    qmails 1890 1 0 Jan23 pts/0 00:00:00 qmail-send
    qmaill 1892 1890 0 Jan23 pts/0 00:00:00 splogger qmail
    root 1894 1890 0 Jan23 pts/0 00:00:00 qmail-lspawn | /usr/bin/deliverquota ./Maildir
    qmailr 1895 1890 0 Jan23 pts/0 00:00:00 qmail-rspawn
    qmailq 1896 1890 0 Jan23 pts/0 00:00:00 qmail-clean
    root 11867 7560 0 10:44 pts/0 00:00:00 grep qmail

    The netstat for port 25 does not return anything.
    [root@vps qscan]# netstat -na | grep :25
     
  4. koolnyze

    koolnyze Guest

    0
     
    I finally managed to fix it.

    I upgraded to plesk 9.0.1 and copied the /etc/xinetd.d/smtp_psa from another server. Changed the permission of files in /var/qmail/bin as below and it fixed the qmail scanner.

    -r-x--s--x 1 mhandlers-user popuser 4703 Feb 2 14:34 qmail-queue
    -r-s--x--x 1 qmailq qmail 19832 Jan 27 18:23 qmail-queue.moved
    -rwsr-xr-x 1 qmailq qmail 48772 Jan 27 18:32 qmail-queue.orig
    -r-x--s--x 1 mhandlers-user popuser 48244 Jan 27 18:32 qmail-remote
    -r-xr-xr-x 1 root qmail 49720 Jan 27 18:23 qmail-remote.moved
    -r-------- 1 mhandlers-user qmail 48180 Jan 23 13:48 qmail-remote.plesk
     
  5. CCHickman

    CCHickman Regular Pleskian

    25
    40%
    Joined:
    Oct 11, 2003
    Messages:
    112
    Likes Received:
    0
    You're talking about AtomicRocketTurtle.com's qmail-scanner, right?

    If so, wow. We have an open thread over there and none of us have figured this one out. I'm forwarding this URL to Scott =)
     
  6. ZopfWare

    ZopfWare Regular Pleskian

    25
    57%
    Joined:
    May 30, 2004
    Messages:
    215
    Likes Received:
    0
    What is the current status on this issue? I have been using Art's qmail-scanner for years and I need to find out how to get it running again.

    I tried the above fix and it still returned the same errors.

    Additionally, I don't seem to see a file/dir called qmail-remote.plesk

    Anyone have any firther information on this? or where to find the thread at atomic?
     
  7. koolnyze

    koolnyze Guest

    0
     
    The file qmail-remote.plesk was visible to me only after I upgraded to plesk 9.0.1
     
  8. koolnyze

    koolnyze Guest

    0
     
    qmail-remote.plesk was visible only after I upgraded to plesk 9.0.1
     
  9. koolnyze

    koolnyze Guest

    0
     
    qmail-remote.plesk was visible only after I upgraded to plesk 9.0.1
     
  10. Jayson

    Jayson Basic Pleskian

    26
    23%
    Joined:
    May 10, 2005
    Messages:
    95
    Likes Received:
    0
    I am running 9.0.1 and do not see qmail-remote.plesk after searching my entire system. Initially, everything was working except, after a domain would backup qmail was not restarted for that domain. Plesk support logged in to check the problem and by checking their history I find, rpm -Uvh --force psa-qmail-1.03-cos5.build90090127.18.i586.rpm

    Email is dead, incoming and outgoing with these errors in the maillog,

    cannot open /var/spool/qscan/qmail-scanner-queue-version.txt - did you initialise the system by running "qmail-scanner-queue.pl -z"? - Permission denied

    I would be happy just to remove qmail-scanner and get things working again before trying to reinstall... any ideas?

    Thanks,
     
  11. ZopfWare

    ZopfWare Regular Pleskian

    25
    57%
    Joined:
    May 30, 2004
    Messages:
    215
    Likes Received:
    0
    Previous messages...

    Apparently my posts in here are moderated now.... that's new... I want to say that when I finally got the permissions set as outlined in the previous post, (the little 's' UID bit was throwing me off) My qmail WITH Art's qmail-scanner is working like a charm..... (knock on wood I need to give it a few more days, but no more pipe errors!)
     
  12. Jayson

    Jayson Basic Pleskian

    26
    23%
    Joined:
    May 10, 2005
    Messages:
    95
    Likes Received:
    0
    Going through several README's and HOWTO's and they seem to point to a /var/qmail/supervise/qmail-smtpd/run
    saying I should remove this line:
    QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE

    qmail-smtpd is an executable on my system... How can I disable qmail-scanner?

    btw: I did rpm -e the qmail-scanner and clamav, clamd trying to disable this.
     
    Last edited: Feb 11, 2009
  13. Jayson

    Jayson Basic Pleskian

    26
    23%
    Joined:
    May 10, 2005
    Messages:
    95
    Likes Received:
    0
    Ok, had to completely remove qmail-scanner and clamav then reinstall Qmail and finally get things running again.. All this while I was sending support requests, one after another after another... Oh and after I had everything running I received a response...
     
  14. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    For the record, I still dont support Plesk 9 with qmail-scanner. Its awesome that you all are working it out on your own though
     
  15. ZopfWare

    ZopfWare Regular Pleskian

    25
    57%
    Joined:
    May 30, 2004
    Messages:
    215
    Likes Received:
    0
    Well here's an update.....

    Everything appears to be working well as far as the mail is concerned, however a new problem has arisen.

    My email pipe for my ticket system doesn't work anymore. I'm pretty sure it is a permissions problem and am trying various things out.

    Update.....

    Well it might have been a permission issue, but it would have helped if I had put in the correct path....lol I left out httpdocs!

    All is working fine now.
     
    Last edited: Feb 16, 2009
  16. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Im trying to work out the update for this right now, kind of a tricky one since youve got a different user architecture between 8 and 9. Thanks for documenting what you have so far, it really saved me a lot of time!
     
  17. albans

    albans Regular Pleskian

    26
     
    Joined:
    Nov 29, 2005
    Messages:
    173
    Likes Received:
    0
    Hello, I also tried to install qmail-scanner... Bad idea...
    - yum remove qmail-scanner didn't help
    - I also tried to install postfix via autoinstaller, and then switch back to qmail (via plesk autoinstaller)
    - it still doesn't work
    What should I do just to get back qmail working?
    Thanks for the help.
     
  18. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Was that using the 2.02 version from [atomic], or the 2.05 version from [atomic-testing]? I just did 2.05 the other week, and its the only one with support for Plesk 9.
     
  19. ghazlewood

    ghazlewood Basic Pleskian

    24
    40%
    Joined:
    Nov 15, 2004
    Messages:
    40
    Likes Received:
    0
    Location:
    London, UK
    I had lots of similar messages to the original poster of this thread when sending mail to one particular email address.

    I managed to work out that there were still entries in /usr/local/psa/handlers/before-queue/recipient which pointed to Dr Web (phtooie!). I had removed Dr Web but it clearly hadn't cleaned up after itself.

    Not sure if this helps but it might be worth checking that there aren't any dodgy hooks or handlers at play.
     
  20. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Gotcha, I thought I covered that in 2.05. Or were you using 2.02?
     
Loading...