Home

The mail/mailscanner port

mailscanner-4.85.2.1p2 – virus/spam scanning framework (cvsweb github mirror)

Description

MailScanner is a complete e-mail security system designed for use on
e-mail gateways. It protects against viruses, and detects attacks
against e-mail client packages (such as Outlook, Outlook Express,
Eudora). It can also detect almost all unsolicited commercial e-mail
(spam) passing through it and respond to all incidents in a wide variety
of ways.

Not only can it scan for known viruses, but it can also protect against
unknown viruses hidden inside e-mail attachments by refusing entry to
attachments whose filenames match any given pattern. This can include
generic patterns that trap filenames attempting to hide the true
filename extension (e.g. ".txt.vbs").

It is superior to many commercial packages in its ability to handle
attacks against itself, such as Denial Of Service attacks caused by
messages containing the "Zip of Death". It is easy to install into an
existing e-mail gateway, requiring very little knowledge of sendmail and
no change to an existing sendmail configuration.

MailScanner itself is entirely open source, but it uses widely known
commercial virus scanning packages at its core. The other software it
uses is all high quality open source software, leading to a system that
can be trusted for performance and reliability.

Optionally, unrar, unarj, and/or unace may be installed and MailScanner
will use them if they are installed.
WWW: http://www.mailscanner.info/

Readme

+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------

The MailScanner port is using the original MailScanner tarball from 
www.mailscanner.info. This tarball puts all the MailScanner files in 
subdirectories

bin	MailScanner binary / MailScanner start script etc.
etc	MailScanner config files / rules / report templates
lib	Virus wrapper and autoupdate scripts / MailScanner Perl libraries
docs	Documentation
var	pid file

In order to make this OpenBSD compliant the port installs those files
in the following directories:

${TRUEPREFIX}/libexec/MailScanner	MailScanner binary, virus wrapper/autoupdate
${TRUEPREFIX}/lib/MailScanner		MailScanner Perl libraries
${TRUEPREFIX}/share/MailScanner		MailScanner report templates
${TRUEPREFIX}/share/doc/MailScanner	Documentation
${TRUEPREFIX}/share/examples/MailScanner Example files
${SYSCONFDIR}/MailScanner		MailScanner config files / rules

See http://www.mailscanner.info  and the sample configuration
files in ${SYSCONFDIR}/MailScanner for further instructions.

To activate this package, you must do the following for sendmail:

1. Set the following in your sendmail.mc file:

	define(`confDELIVER_MODE',`queue')
	define(`confPRIVACY_FLAGS',`noetrn')

   (if you do not have a sendmail.mc file, use
    /usr/share/sendmail/cf/openbsd-proto.mc)

   and regenerate your sendmail.cf

   (if you do not know how, try:

	m4 /usr/share/sendmail/m4/cf.m4 sendmail.mc > test.cf
   )
   

2. Put the following line in /etc/rc.conf.local:

	sendmail_flags=-L sm-mta -bd -OQueueDirectory=/var/spool/mqueue.in

3. Add the following to /etc/rc.local:

  # MailScanner
  if [ -x /usr/sbin/sendmail ]; then
        echo -n ' sm-mta-queue'; /usr/sbin/sendmail -q30s -L sm-mta-queue
  fi

4. Add "mailscanner" to your pkg_scripts line in /etc/rc.conf.local.

5. Add the following to root's crontab:

  # Check the status of MailScanner every hour
  0       *       *       *       *       ${TRUEPREFIX}/bin/check_mailscanner -q


For other MTAs, configure according to MailScanner's documentation,
and follow steps 4 and 5 above.

Maintainer

Brad Smith

Categories

mail

Run dependencies

Files

Search