Solved

spamassassin

Posted on 2009-05-19
1
756 Views
Last Modified: 2013-12-16
Dear Sir:

I have rhel5 mail server with mailscanner and with install-Clam-0.95.1-SA-3.2.5
with this /etc/mail/spamassassin directory was created with files inside by mistake i deleted the /etc/mail/spamassassin directory , i tried installing install-Clam-0.95.1-SA-3.2.5 but still the directory spamassassin did not get created with files inside please help
only i have is mailscanner backup
i deleted using rm -rf , hence it is not available in trash
when tried to install again  bu cd to insatll-Clam-0.95.1-SA-3.2.5 and execute ./install.sh
finally the following is the message
spam.assassin.prefs.conf is read directly by the SpamAssassin startup
code, so make sure you have a link from the site_rules directory to
this file in your MailScanner/etc directory.
Perl could not find your SpamAssassin installation.
Strange, I just installed it.
You should fix this!

Making backup of pre files to /tmp/backup.pre.26393.tar
tar: *pre: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Now go and find your v310.pre and v320.pre files,
    echo which may well be in the /etc/mail/spamassassin directory.
You need to save a copy of your old v320.pre file and rename
the v320.pre file to v320.pre.

You then need to edit the new v320.pre file and uncomment
(remove the #) the loadplugin lines for DCC.

Also add these lines to the end of it:
loadplugin Mail::SpamAssassin::Plugin::RelayCountry
loadplugin Mail::SpamAssassin::Plugin::SPF
loadplugin Mail::SpamAssassin::Plugin::URIDNSBL
loadplugin Mail::SpamAssassin::Plugin::Razor2
Now go and find your v310.pre and v320.pre files,
    echo which may well be in the /etc/mail/spamassassin directory.
You need to save a copy of your old v310.pre file and rename
the v310.pre file to v320.pre.

You then need to edit the new v310.pre file and uncomment
(remove the #) the loadplugin lines for DCC.

Also add these lines to the end of it:
loadplugin Mail::SpamAssassin::Plugin::RelayCountry
loadplugin Mail::SpamAssassin::Plugin::SPF
loadplugin Mail::SpamAssassin::Plugin::URIDNSBL
loadplugin Mail::SpamAssassin::Plugin::Razor2
Now go and find your v310.pre and v320.pre files,
    echo which may well be in the /etc/mail/spamassassin directory.
You need to save a copy of your old init.pre file and rename
the init.pre file to v320.pre.

You then need to edit the new init.pre file and uncomment
(remove the #) the loadplugin lines for DCC.

Also add these lines to the end of it:
loadplugin Mail::SpamAssassin::Plugin::RelayCountry
loadplugin Mail::SpamAssassin::Plugin::SPF
loadplugin Mail::SpamAssassin::Plugin::URIDNSBL
loadplugin Mail::SpamAssassin::Plugin::Razor2

Make sure your MailScanner.conf says "Use SpamAssassin = yes"

Now you need to install:
1) Razor-agents-sdk and Razor2 from http://razor.sourceforge.net/ and
2) DCC from http://www.rhyolite.com/anti-spam/dcc/ and
---------------end------------
please help




please help me
0
Comment
Question by:D_wathi
1 Comment
 
LVL 5

Accepted Solution

by:
random_ru earned 500 total points
ID: 24422188
D_wathi,

Seems as you are thinking about the Spamassassin and Clam AV as one program, which they are not. They serve similar purposes of detecting spam and other malware in mail (Spamassassin) and system files (Clam).
Back to your issue...since the /etc/mail/spamassassin has been deleted, spam assassin needs to be reinstalled. Before reinstalling it, I would check the Add/Remove Software in the graphical interface under Administration to check if the system will let you remove Spamassassin first. Since it sounds as you did not use rpm, Add/Remove software may be your only way to uninstall it, which is a good aidea in this case (if you cannot uninstall it, that's fine, just continue with the reinstall)  Here is a site to the download links and RPM creation instructions:
 - http://spamassassin.apache.org/downloads.cgi?update=200806121419

I always try to install via rpm first if it is a basic install, since it is then easier to get rid of it as RPM keep track of files when they are being installed (us -vv option for rpm install to get more info). If RPM installation does not go through, then try compiling from source.

After the Spamassassin is installed, make sure clam is functioning properly, otherwise try to uninstall it first as in the case with the Spamassassin and reinstal using:
 - http://www.clamav.net/download/packages/packages-linux

Make sure both programs are installed and functioning correctly before continuing with further installations. Good luck!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Ransomware continues to be a growing problem for both personal and business users alike and Antivirus companies are still struggling to find a reliable way to protect you from this dangerous threat.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now