FedoraForum.org - Fedora Support Forums and Community
Results 1 to 1 of 1
  1. #1
    Join Date
    Jun 2008
    Posts
    716
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    sendmail with MailScanner + clamav + spamassassin

    Now you have sendmail installed. How do you filter spams and viruses from the emails messages?

    Install MailScanner with spamassassin and clamav

    1. Install spamassassin
    Code:
    $ su -
    # yum install spamassassin
    No further action is necessary to integrate into MailScanner.

    2. Install clamav
    Code:
    # yum install clamav clamav-update
    Edit and enable freshclam - the clamav update module
    Code:
    # vi /etc/freshclam.conf
    .......
    # Comment or remove the line below.
    #Example
    ......
    Update clamav virus signature. (will be done automatically by MailScanner routinely when integrated.)
    Code:
    # freshclam
    Scan file or directory for virus, test clamav is working. "$ man clamscan" for more options.
    Code:
     # clamscan -v -r ~someuser
    3. Install MailScanner

    Download the latest version of MailScanner tarball from http://www.mailscanner.info/.
    At the time of writing, it is MailScanner-4.70.7-1.rpm.tar.gz
    Code:
    $ su -
    # cd /directory/that/you/saved/download
    # tar xzf MailScanner-4.70.7-1.rpm.tar.gz
    # cd MailScanner-4.70.7-1
    # ./install.sh
    It would take some time as it installs all perl prerequisite modules. When done it should install ailScanner service and turn-off sendmail service. (sendmail will be started/stopped by MailScanner).

    To ensure that sendmail service is off, and MailScanner is on,
    Code:
    # /sbin/chkconfig --list sendmail
    sendmail        0:off   1:off   2:off   3:off   4:off   5:off   6:off
    # /sbin/chkconfig --list MailScanner
    MailScanner     0:off   1:off   2:on    3:on    4:on    5:on    6:off
    # /sbin/chkconfig sendmail off
    # /sbin/chkconfig MailScanner on
    Edit /etc/MailScanner/MailScanner.conf file, MailScanner.conf file is fully commented, easy to understand. Start with simple thing such as setting site and company names. When you are more comfortable with it, work on the rules files.

    Start MailScanner (first time) with
    Code:
    # /sbin/service sendmail stop
    # /sbin/service MailScanner start
    To restart after editing MailScanner.conf
    Code:
    # /sbin/service MailScanner restart
    4. Integrate clamav with MailScanner

    Next step is optional. Can leave as "auto".
    Code:
    # vi /etc/MailScanner/MailScanner.conf
    .....
    # This *cannot* be the filename of a ruleset.
    #Virus Scanners = auto
    Virus Scanners = clamav
    .....
    Set the correct path for clamav scanner
    Code:
    # vi /etc/MailScanner/virus.scanners.conf
    ....
    #clamav         /usr/lib/MailScanner/clamav-wrapper     /usr/local
    clamav          /usr/lib/MailScanner/clamav-wrapper     /usr
    Set the correct path for freshclam
    Code:
    # vi /usr/lib/MailScanner/clamav-autoupdate
    # $PackageDir = shift || "/usr/local";
    $PackageDir = shift || "/usr";
    Restart MailScanner
    Code:
    # /sbin/service MailScanner restart
    Check /var/log/maillog for MailScanner messages, look for any errors.
    Code:
    # tail -40f /var/log/messages
    Please report any error or omission in this guide.

    Edit: I cannot find repo with MailScanner. Please post if you have information.
    Last edited by briantan; 7th August 2008 at 04:50 PM.

Similar Threads

  1. Replies: 2
    Last Post: 18th September 2007, 04:28 PM
  2. SpamAssassin + ClamAV + Sendmail + Webmin
    By wgh in forum Servers & Networking
    Replies: 3
    Last Post: 9th June 2006, 02:47 PM
  3. New RPM package(clamav, postfix, spamassassin, mailscanner) - PSCM
    By janetbindner in forum Servers & Networking
    Replies: 6
    Last Post: 9th May 2006, 06:12 AM
  4. postfix,clamav,mailscanner,spamassassin help
    By shiyunwei in forum Servers & Networking
    Replies: 4
    Last Post: 18th April 2006, 02:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •