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

mail stopped working after clamd

Discussion in 'Plesk for Linux - 8.x and Older' started by AlbertS, Jun 8, 2006.

  1. AlbertS

    AlbertS Guest

    0
     
    Hello,

    Installed a new box with

    plesk 7.5.4 (to be updated and this problem does occur asswell with plesk 8 so plz help)
    centos 4.x (updated)

    yum Rhel4 update(art)
    Rhel 4 plesk pack

    My cliënts cant reveice e-mails, the problem seems to be
    setuidgid: fatal: unable to run /var/qmail/bin/qmail-scanner-queue.pl: access denied

    This error keeps popping up too...
    qmail-inject: fatal: qq temporary problem (#4.3.0)

    I used the search, wich did not come with a solution, however much ppl had this?!

    I remoeved clamav, spamassasin....

    removed qmail-scanner and reinstalled the qmail packages (after that reinstall qmail-scanner) does not work either... He keeps crying about the premission problem...

    Some one plz help me!


    -rwxr-xr-x 1 root root 129349 Jun 8 18:02 qmail-scanner-queue.pl
    That looks ok?!

    -rwxr-xr-x 1 qmailq qmail 129349 Jun 8 18:24 /var/qmail/bin/qmail-scanner-queue.pl


    ** im seeing that there are more qmail-scanner files ..?!
    [root@ownserver ~]# locate qmail-scanner-reconfigure
    /usr/share/qmail-scanner/qmail-scanner-reconfigure.project-gamera
    /usr/share/qmail-scanner/qmail-scanner-reconfigure.psa
    /usr/bin/qmail-scanner-reconfigure
    [root@ownserver ~]#
     
  2. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    I have boxes with Plesk 7.5.4 and 8.0 running Centos 4.2 and in all instances qmail-scanner-queue.pl is in the directory /usr/bin.

    It seems that you have installed project-gamera, however ART tells you to never install project-gamera on a Plesk box. You should only run

    #yum install spamassassin clamd qmail-scanner
     
  3. AlbertS

    AlbertS Guest

    0
     
    Did not install project-gamera....

    Files are

    [root@ownserver qmail-scanner]# locate qmail-scanner-reconfigure
    /usr/share/qmail-scanner/qmail-scanner-reconfigure.project-gamera
    /usr/share/qmail-scanner/qmail-scanner-reconfigure.psa
    /usr/bin/qmail-scanner-reconfigure


    [root@ownserver qmail-scanner]# locate qmail-scanner-queue.pl
    /var/qmail/bin/qmail-scanner-queue.pl
    /usr/share/qmail-scanner/qmail-scanner-queue.pl
     
  4. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    Still, your qmail-scanner-queue.pl file is in the wrong directory

    And be sure that the ownership for qmail-scanner-queue.pl is set to:
    User - qmailq
    Group qmail
     
  5. AlbertS

    AlbertS Guest

    0
     
    With rebuilding the .pl file with the ./configure option this error comes out....
    --------------------------------------------------------------
    Testing suid nature of /usr/bin/perl...
    Whoa - broken perl install found.
    Cannot even run a simple script setuid

    You will either have to correct this
    or use the C-wrapper within the ./contrib dir

    Error was:
    setuidgid: fatal: unable to run ./.perl-test.pl: access denied

    Redhat hosts need to have perl-suidperl installed to get setuid support
    See FAQ for further details

    -------------------------------------------------------------------

    Broken perl?! It more seems like one big owner problem?!
     
  6. AlbertS

    AlbertS Guest

    0
     
    #
    ./configure --qs-user qscand --qs-group qscand --spooldir /var/spool/qmailscan --qmaildir /var/qmail --bindir /var/qmail/bin --qmail-queue-binary /var/qmail/bin/qmail-queue.orig > and much more <<

    This is in the .pl file marked as what command is used to generete it.... with qmailq or qmail as user/group same effect...
     
  7. AlbertS

    AlbertS Guest

    0
     
    Seemed my /usr/bin got chmodded.... Everything works fine now, thx phoenix for ur reply...
     
  8. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    Glad it worked out!
     
  9. AlbertS

    AlbertS Guest

    0
     
    ye me too, box worked well, so changed the dns, all domains got resolving to new box and mail did not work (I freaked out ;) )...

    Thx to á howto I used to follow... :)

    Course nothing to blame on the howto :rolleyes:
     
  10. ZopfWare

    ZopfWare Regular Pleskian

    25
    57%
    Joined:
    May 30, 2004
    Messages:
    215
    Likes Received:
    0
    Plesk 8.0.1 issues w/qmail-scanner??

    I have been running qmail-scanner and clamd for about a year now and it somehow got broken after installing the latest (8.0.1) Plesk update.

    I then uninstalled it and re-installed it but it returns the following error when installing:

    Running test transaction:
    Test transaction complete, Success!
    qmail-scanner 100 % done 1/1
    cannot write to /var/spool/qmailscan/qmail-scanner-queue-version.txt.tmp - Permission denied at /var/qmail/bin/qmail-scanner-queue.pl line 2089.
    Installed: qmail-scanner 1:2.01-9.rhfc2.art.noarch
    Transaction(s) Complete

    All the files in the /usr/share/qmail-scanner directory are owned by root:root


    What could be happening here? This has been such a good solution for us and now we are having so much trouble getting it running again.
     
  11. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    That file, /var/spool/qmailscan/qmail-scanner-queue-version.txt.tmp, is supposed to be owned by:

    User - qmailq
    Group qmail
     
  12. ZopfWare

    ZopfWare Regular Pleskian

    25
    57%
    Joined:
    May 30, 2004
    Messages:
    215
    Likes Received:
    0
    Hmm just doesn't seem to be working.... I also get this error when trying to send mail:

    There was an error sending your message: Failed to send data [SMTP: Invalid response code received from server (code: 451, response: qq temporary problem (#4.3.0))]

    everything was working fine until 2 things happened.... 1) I upgraded to 8.0.1, and 2) I updated qmail-scanner from qmail-scanner-1.25-9.rhfc2.art.noarch.rpm to qmail-scanner-2.01-9.rhfc2.art.noarch.rpm

    HAve now spent 6 hours trying to reconfigur and get my scanning ability running again....


    Will just have to uninstall qmail-scanner so customers will stop calling me.

    :confused:
     
  13. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    After you upgraded qmail-scanner did you run qmail-scanner-reconfigure?
     
  14. ZopfWare

    ZopfWare Regular Pleskian

    25
    57%
    Joined:
    May 30, 2004
    Messages:
    215
    Likes Received:
    0
    Ok I reinstalled the Plesk qmail rpms and I deleted all references to qmail-scanner from the server (after a yum remove qmail-scanner) Next I did a yum install qmail-scanner.

    It completes with the following error now:

    Downloading Packages
    Running test transaction:
    Test transaction complete, Success!
    qmail-scanner 100 % done 1/1
    install: cannot stat `qmail-scanner-queue.pl': No such file or directory
    setuidgid: fatal: unable to run /var/qmail/bin/qmail-scanner-queue.pl: file does not exist
    setuidgid: fatal: unable to run /var/qmail/bin/qmail-scanner-queue.pl: file does not exist
    Installed: qmail-scanner 1:2.01-9.rhfc2.art.noarch
    Transaction(s) Complete


    I'm really lost on this one and have never had so much trouble with installing this solution from art's repository.


    Also if I locate the qmail-queue-reconfigure script and run it I get the same error as above.
     
  15. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    You may want to post this on ART's forum, Scott is pretty good about answering posts.
     
  16. ZopfWare

    ZopfWare Regular Pleskian

    25
    57%
    Joined:
    May 30, 2004
    Messages:
    215
    Likes Received:
    0
    Just a note to recap this thread.....


    It appears that to install the latest version of qmail-scanner and clamd requires that you stop psa-spamassassin.

    If you stop psa-spamassassin and then do the yum install it works perfectly (knock on wood it's still working.)

    Of course I'll see what happens when 8.1 is released... lol
     
Loading...