Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

spamassassin

Posted on 2009-05-19
1
Medium Priority
?
778 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 1500 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

Ready for your healthcare security check-up?

In the past few years, healthcare organizations have become a prime target for advanced attacks. Does your organization have what it needs to defend itself? Schedule your healthcare security check-up today and download our free Healthcare Security Resource Kit today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Phishing emails are a popular malware delivery vehicle for attack.  While there are many ways for an attacker to increase the chances of success for their phishing emails, one of the most effective methods involves spoofing the message to appear to …
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month10 days, 17 hours left to enroll

885 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