Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 31
  1. #1
    Member
    Join Date
    May 2003
    Posts
    10

    Default Exim+antivirus

    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. #2
    Member
    Join Date
    Nov 2001
    Location
    Birmingham, AL
    Posts
    20

    Default

    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. #3
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    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. #4
    Member
    Join Date
    May 2003
    Posts
    10

    Default

    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. #5
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    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. #6
    Member
    Join Date
    May 2003
    Posts
    10

    Default

    RedHat 8.0

    cPanel.net Support Ticket Number:

  7. #7
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    Originally posted by iDave
    RedHat 8.0

    cPanel.net Support Ticket Number:
    Mine's Mandrake 9.. Hmmmm..

    cPanel.net Support Ticket Number:
    Last edited by tAzMaNiAc; 06-11-2003 at 09:35 PM.

  8. #8
    Member
    Join Date
    May 2003
    Posts
    10

    Default

    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 <= idave@idave.it 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. #9
    Member
    Join Date
    May 2002
    Posts
    170

    Default

    me too. same as problem. please help

    cPanel.net Support Ticket Number:

  10. #10
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    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. #11
    Member
    Join Date
    Apr 2003
    Posts
    243

    Default

    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. #12
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    Originally posted by howard
    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:
    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. #13
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    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. #14
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    -rw-r--r-- 1 root root 1113 Jun 11 10:56 amavis-filter

    cPanel.net Support Ticket Number:

  15. #15
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default

    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:

Similar Threads & Tags
Similar threads

  1. antivirus.exim
    By useradmin in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-25-2008, 10:24 AM
  2. Bypassing antivirus.exim and exim ACLs
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-21-2007, 02:02 PM
  3. Bypassing Exiscan / exim.antivirus from Exim for specific domain
    By tweakservers in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-19-2006, 11:50 AM
  4. antivirus.exim
    By nzservers in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-11-2005, 12:02 PM
  5. Antivirus in Exim
    By SuperBaby in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-05-2004, 01:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube