To install MailScanner, we are going to download the latest source code from the MailScanner web site and build it. For this to work, it needs the Development Tools package. If you did not include this during installation, you must add it now. Learn how to add or remove applications here.
Getting MailScanner


1. Click the globe icon at the top near the System menu to launch the Firefox web browser.
If an error occurs, you probably did not install the Graphical Internet package. You can add it now using the Package Manager tool.

2. In the address box, type in http://www.mailscanner.info/downloads.html and press Enter. Download the stable version for RedHat, Fedora and Mandrake Linux.Building and Installing MailScanner

1. The MailScanner source code should now be on your desktop. Right click the newly downloaded file and click Extract Here.
2. After extracting, a MailScanner folder should be found on your Desktop. Double click the MailScanner folder to open it.
3. Next, double click the file install.sh. On the Run or Display window, select Run in Terminal. This will now build and install MailScanner. This will take a while so just wait until the Terminal window disappears.«« Previous: How to Configure the Firewall
Next: How to Install Clam AntiVirus »»
***
Posted on 4/23/2007 and last updated on 5/31/2008
Filed under CentOS 5 , MailScanner , Red Hat Enterprise Linux 5
Share This
January 26th, 2008 at 6:52 am
On CentOS5.1 I had to install rpm-build first. I had to open a terminal window and navigate to MailScanner-4.66.5-3 on the desktop and run ./install.sh to find this out - if done by the method above, the terminal window just opens and closes in under a second and you miss the error message.
On a Pentium 4 3GHz the MailScanner build ran about 15 minutes.
March 24th, 2008 at 8:43 am
Good. You have the patch command.
Good, you have /usr/src/redhat in place.
You are running release 5 of RedHat, or a clone.
So I will only force the installation of a very few Perl modules.
Good, unpackaged files will not break the build process.
Good, far-too-clever Perl requirements will be ignored.
Good, Fedora 8 options will be ignored.
Good, you appear to only have 1 copy of Perl installed.
I think you are running on RedHat Linux, Mandriva Linux or SuSE Linux.
Good, you appear to have the basic development tools installed.
This script will pause for a few seconds after each major step,
so do not worry if it appears to stop for a while.
If you want it to stop so you can scroll back through the output
then press Ctrl-S to stop the output and Ctrl-Q to start it again.
If this fails due to dependency checks, and you wish to ignore
these problems, you can run
./install.sh nodeps
Setting Perl5 search path
I think your system will build architecture-dependent modules for i386
Rebuilding all the Perl RPMs for your version of Perl
Oh good, module File::Spec version 0.82 is already installed.
Attempting to build and install perl-ExtUtils-MakeMaker-6.32-1
Installing perl-ExtUtils-MakeMaker-6.32-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-ExtUtils-MakeMaker-6.32-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-ExtUtils-MakeMaker-6.32-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Net-CIDR-0.11-1
Installing perl-Net-CIDR-0.11-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Net-CIDR-0.11-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Net-CIDR-0.11-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-IO-stringy-2.110-1
Installing perl-IO-stringy-2.110-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-IO-stringy-2.110-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-IO-stringy-2.110-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-MIME-Base64-3.07-1
Installing perl-MIME-Base64-3.07-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-MIME-Base64-3.07-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/i386/perl-MIME-Base64-3.07-1.i386.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-TimeDate-1.16-3
Installing perl-TimeDate-1.16-3.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-TimeDate-1.16-3.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-TimeDate-1.16-3.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Pod-Escapes-1.04-1
Installing perl-Pod-Escapes-1.04-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Pod-Escapes-1.04-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Pod-Escapes-1.04-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Pod-Simple-3.05-1
Installing perl-Pod-Simple-3.05-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Pod-Simple-3.05-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Pod-Simple-3.05-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Test-Pod-1.26-1
Installing perl-Test-Pod-1.26-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Test-Pod-1.26-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Test-Pod-1.26-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-MailTools-2.02-1
Installing perl-MailTools-2.02-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-MailTools-2.02-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-MailTools-2.02-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-IO-1.2301-1
Installing perl-IO-1.2301-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-IO-1.2301-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-IO-1.2301-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-File-Temp-0.19-1
Installing perl-File-Temp-0.19-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-File-Temp-0.19-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-File-Temp-0.19-1.noarch.rpm.
Maybe it did not build correctly?
Oh good, module HTML::Tagset version 3.03 is already installed.
Attempting to build and install perl-HTML-Parser-3.56-1
Installing perl-HTML-Parser-3.56-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-HTML-Parser-3.56-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/i386/perl-HTML-Parser-3.56-1.i386.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Convert-BinHex-1.119-2
Installing perl-Convert-BinHex-1.119-2.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Convert-BinHex-1.119-2.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Convert-BinHex-1.119-2.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-MIME-tools-5.425-1
Installing perl-MIME-tools-5.425-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-MIME-tools-5.425-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-MIME-tools-5.425-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Convert-TNEF-0.17-1
Installing perl-Convert-TNEF-0.17-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Convert-TNEF-0.17-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Convert-TNEF-0.17-1.noarch.rpm.
Maybe it did not build correctly?
Oh good, module Compress::Zlib version 1.41 is already installed.
Attempting to build and install perl-Archive-Zip-1.16-1
Installing perl-Archive-Zip-1.16-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Archive-Zip-1.16-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Archive-Zip-1.16-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Scalar-List-Utils-1.19-1
Installing perl-Scalar-List-Utils-1.19-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Scalar-List-Utils-1.19-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Scalar-List-Utils-1.19-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Storable-2.16-1
Installing perl-Storable-2.16-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Storable-2.16-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Storable-2.16-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-DBI-1.56-1
Installing perl-DBI-1.56-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-DBI-1.56-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-DBI-1.56-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-DBD-SQLite-1.13-1
Installing perl-DBD-SQLite-1.13-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-DBD-SQLite-1.13-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-DBD-SQLite-1.13-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Getopt-Long-2.36-1
Installing perl-Getopt-Long-2.36-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Getopt-Long-2.36-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Getopt-Long-2.36-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Time-HiRes-1.9707-1
Installing perl-Time-HiRes-1.9707-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Time-HiRes-1.9707-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Time-HiRes-1.9707-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Filesys-Df-0.90-1
Installing perl-Filesys-Df-0.90-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Filesys-Df-0.90-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Filesys-Df-0.90-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Test-Harness-2.64-1
Detected Compress-Zlib, building appropriately…
Installing perl-Test-Harness-2.64-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Test-Harness-2.64-1.src.rpm cannot be installed
Missing file /usr/src/redhat/RPMS/noarch/perl-Test-Harness-2.64-1.noarch.rpm.
Maybe it did not build correctly?
Attempting to build and install perl-Test-Simple-0.70-1
Detected Compress-Zlib, building appropriately…
Installing perl-Test-Simple-0.70-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: perl-Test-Simple-0.70-1.src.rpm cannot be installed
please help… thnx
March 24th, 2008 at 10:07 am
You need to logon as root to install MailScanner.
April 2nd, 2008 at 9:45 am
hello,
How to use “Fedora 8 options”? Is there any documentation?
thank you in advance.
regards,
Z
May 9th, 2008 at 7:08 am
It has started too well, but taking too much of time. I had to stop the process as it may be running in a loop after waiting for 15-20 minutes. Is this timing is OK or i m getting unneccessarily impatient?
thanks in advance,
shyam
May 9th, 2008 at 1:21 pm
I think you’ve been impatient. It really takes a while to build MailScanner. I wish a prebuilt binary is available similar to ClamAV but I can’t find any.
August 19th, 2008 at 5:33 pm
I am running Cent-OS 4.6. I really do not know a lot about Linux, but know enough that I want to stop over 100 spam per day.
If the process fails anyplace along the line, can I just re-run the install process? Will I need certain C libraries? And, does Postfix need to be running for this?
I’m not really sure what to ask before install attempt.
Much thanks!
August 19th, 2008 at 8:53 pm
Hi Art,
“If the process fails anyplace along the line, can I just re-run the install process?”
You can but you don’t have to. Setting this up only needs editing a few configuration files.
“Will I need certain C libraries?”
No. As long as you have a C compiler, you’re good to go.
“And, does Postfix need to be running for this?”
Yes. If you have an existing mail server, you can configure Postfix to be a mail gateway. Add greylisting to Postfix via Postgrey, this will really kill the spam.
If setting up the above looks complicated, I suggest you look at
Barracuda Spam Firewall