The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exim+antivirus

Discussion in 'General Discussion' started by iDave, Jun 11, 2003.

  1. iDave

    iDave Member

    Joined:
    May 18, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I tried to install the exim+virusscan package found on layer1.cpanel.net but, once installed, the mail server stopped the mail delivery. I removed the filter from /etc/exim.conf, restarted exim and the mails began to be delivered again. How can I install the virusscan package correctly, how can I make it working?

    cPanel.net Support Ticket Number:
     
  2. SouthernWeb

    SouthernWeb Member

    Joined:
    Nov 8, 2001
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Birmingham, AL
    SSH to your box and:

    wget http://layer1.cpanel.net/exim+virusscan.tar.gz
    tar xfzv exim+virusscan.tar.gz
    cd exim+virusscan
    sh install

    it will restart exim at end.

    now you should have your mail scaned:

    "X-Virus-Scanned-By: Amavis with CLAM Anti Virus on myhostname" in incoming & outgoing mail.

    To upgrade virus database:

    manual:

    cd /usr/bin
    ./freshclam

    auto:

    cd /usr/bin
    touch /var/log/clam-update.log
    chmod 644 /var/log/clam-update.log
    chown clamav /var/log/clam-update.log
    freshclam -d -c 2 -l /var/log/clam-update.log

    To uninstall:

    edit /etc/exim.conf

    delete these lines:
    message_filter = /etc/antivirus.clam.exim
    message_filter_user = mail
    message_filter_group = mail

    cPanel.net Support Ticket Number:
     
  3. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    I tried that, and I got:

    2003-06-11 10:57:45 19Q7yr-0004Ji-00 Error in message_filter file: failed to expand "${perl{amavis_filter_scan}{$message_id}{$sender_address}{$recipients}}" in filter file: Undefined subroutine &main::amavis_filter_scan called.\n

    Nick, any idea?

    I had to take the lines out like the guy who posted this..

    cPanel.net Support Ticket Number:
     
  4. iDave

    iDave Member

    Joined:
    May 18, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    tAzMaNiAc... yeah... I'm not the only who had this problem, then!!!

    The problem is that in /var/log/maillog there seems to be no problem

    cPanel.net Support Ticket Number:
     
  5. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    Yeah!.. Weird.. I think it's a missing thing, or some bad linkage..Not sure why it would work for others.

    What's your OS?

    cPanel.net Support Ticket Number:
     
  6. iDave

    iDave Member

    Joined:
    May 18, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    RedHat 8.0

    cPanel.net Support Ticket Number:
     
  7. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    Mine's Mandrake 9.. Hmmmm..

    cPanel.net Support Ticket Number:
     
    #7 tAzMaNiAc, Jun 11, 2003
    Last edited: Jun 11, 2003
  8. iDave

    iDave Member

    Joined:
    May 18, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    When I enable the antivirus the log says
    Code:
    2003-06-12 13:16:56 19QQ4Z-0007Oq-00 Error in message_filter file: failed to expand "${perl{amavis_filter_scan}{$message_id}{$sender_address}{$recipients}}" in filter file: Undefined subroutine &main::amavis_filter_scan called.\n
    2003-06-12 13:16:59 19QQ4h-0007PC-00 <= [email]idave@idave.it[/email] H=host228-38.pool80116.interbusiness.it (idave.homeip.net) [80.116.38.228] P=smtp S=1183 id=BB0E2DC7.1AEE9%idave@idave.it
    2003-06-12 13:16:59 19QQ4h-0007PC-00 Error in message_filter file: failed to expand "${perl{amavis_filter_scan}{$message_id}{$sender_address}{$recipients}}" in filter file: Undefined subroutine &main::amavis_filter_scan called.\n
    
    What does it mean?

    cPanel.net Support Ticket Number:
     
  9. hkewell

    hkewell Well-Known Member

    Joined:
    May 17, 2002
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    0
    me too. same as problem. please help

    cPanel.net Support Ticket Number:
     
  10. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    It's like there's a undefined subroutine somewhere.

    You and I have the same problem. I'm trying to get someone to pay attention and they aren't....

    cPanel.net Support Ticket Number:
     
  11. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Do you have the /usr/share/amavis/amavis-filter
    file ? is it referenced in exim.pl ? Have you tried the other exim+viruscan package a few pages back?

    cPanel.net Support Ticket Number:
     
  12. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    Yes -- it is there. Referenced in exim.pl? Don't you mean exim.conf?

    I would thikn the other updated package has the same problems as 2 or 3 people had the same problem as us here.

    Either Rh 8 or Mandrake 9..

    Brenden

    cPanel.net Support Ticket Number:
     
  13. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    Howard,

    exim.pl has:

    if (-e "/usr/share/amavis/amavis-filter" && ! -e "/etc/noamavis") {
    do '/usr/share/amavis/amavis-filter';


    cPanel.net Support Ticket Number:
     
  14. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    -rw-r--r-- 1 root root 1113 Jun 11 10:56 amavis-filter

    cPanel.net Support Ticket Number:
     
  15. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    I tried the newer one by Elikster, and same thing..

    2003-06-12 13:26:52 19QV0y-00075S-00 Error in message_filter file: failed to expand "${perl{amavis_filter_scan}{$message_id}{$sender_address}{$recipients}}" in filter file: Undefined subroutine &main::amavis_filter_scan called.\n

    Apparently I glued my eye to the scrolling and saw one or two things were not existent so maybe some parts were not compiled. I will look at it more tonight and see what is missing and add them.

    One of them was

    CPAN.pm: Going to build K/KA/KANE/Archive-Tar-1.02.tar.gz

    You do not have IO::Zlib installed. This means you can not read or write compressed archive!
    Note: you can disable this warning by invoking Makefile.PL with '-n'

    And another was Zlib. Hmm..

    Brenden

    cPanel.net Support Ticket Number:
     
  16. iDave

    iDave Member

    Joined:
    May 18, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    root@cpanel [~]# ls -la /usr/share/amavis/amavis-filter
    -rw-r--r-- 1 root root 1113 Jun 11 16:38 /usr/share/amavis/amavis-filter
    root@cpanel [~]#

    tAzMaNiAc, it looks like we have exactly the same problem

    cPanel.net Support Ticket Number:
     
  17. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Hmm i get that error about zlib and it worked here (however that was on rh 7.3)

    You could try dumping the contents of the /usr/share/amavis/amavis-filter file into exim.pl (as that file contains the amavis_filter_scan routines etc if this doesn't work then you could check exim.conf for references to exim.pl however if that was missing i would suspect there would be more problems than just this)

    Check under strace or exim -bh to see when the error happens (as its clearly not picking up the aforemntioned amavis_filter file)

    cPanel.net Support Ticket Number:
     
  18. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    I will try and see with your suggestions. I will also look at other things. Thanks again!

    cPanel.net Support Ticket Number:
     
  19. iDave

    iDave Member

    Joined:
    May 18, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I've tried it and after restarting exim I've tail-ed the exim_maillog:

    Code:
    2003-06-13 00:04:46 failed to expand condition"${perl{checkspam}}" for lookuphost router: error in perl_startup code: Can't locate AMAVIS.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl . /usr/lib/perl5/5.8.0) at /etc/exim.pl line 417.
    BEGIN failed--compilation aborted at /etc/exim.pl line 417.
    cPanel.net Support Ticket Number:
     
  20. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    Thanks for beating me to this. :) Hmm.. Interesting.
    Seems like the Amavis Perl code isn't put in correctly?or it's not working right with perl 5.8.0???

    Brenden

    cPanel.net Support Ticket Number:
     

Share This Page