THIS IS NOT a be-all end-all config guide. This will, however, probably get you going. If this doesn’t work out for you- go Google. You’ll find tutorials out there for just about any version of UNIX / Linux you want to use.
To do a basic RH 9.0 Linux installation:
Select custom
Automatically partition
After partitioning- you will need to provide an IP address- Use a static. REMEMBER- this box should:
1. Live behind the corporate firewall,
2. Be on the same subnet as your Exchange box
After network, it will ask about firewall- set to No Firewall
Package selection (select the following, all else off):
XWindow System
Gnome Desktop Environment
Editors
Graphical Internet
Server Config Tools
Network Servers
Development Tools
Admin Tools
System Tools
Let the install complete
SET THE LOGIN TYPE TO TEXT! Then reboot.
Login to the system as root, type STARTX.
Start the user manager -> Click the hat -> System Settings -> Users and Groups
Add a user account- This will be used to access the system from the network via telnet.
Go to Hat -> System Settings -> Services
Turn OFF Sendmail
Turn ON Telnet
Reboot.
Login from a telnet session (you REALLY want to do this so you can copy/paste). SU and enter root password. Then type:
set LANG=en_US
Type SET and check to make sure the variable stuck. You may have to do it once or twice.
IMPORTANT! If LANG is not set to en_US, the installation will fail!
Run the perl shell using the command:
perl -MCPAN -e shell
It may ask if you want manual configuration- type No and press enter. A whole bunch of stuff will scroll by.
then type- ALWAYS AGREE WITH DEFAULTS:
install Bundle::CPAN
install Mail::SpamAssassin
install Time::HiRes
install Mail::SPF::Query
install IP::Country::Fast
If you are asked if you want to run the Razor2 or DCC tests, just press enter to select NO. When finished type q and press enter to quit.
Edit the /etc/mail/spamassassin/local.cf file and make the following settings:
rewrite_header Subject *****SPAM*****
use_razor2 1 (<- ONLY IF YOU INSTALL RAZOR BELOW)
Edit the /usr/share/spamassassin/10_misc.cf and edit the report and report contact sections as such:
clear_report_template
report Your company or ISP is using an advanced spam filtering product called
report ExchangeSpamC. This product uses SpamAssassin and has identified
report this incoming email as probable spam.
report The original message has been attached to this so you can view it (if it
report isn't spam) or label similar future email. If you have any questions,
report please contact admin@yourcompany.com, or call support at 555-1212 for
report further assistance.
report
report Content preview: _PREVIEW_
report
report Content analysis details: (_SCORE_ points, _REQD_ required)
report
report " pts rule name description"
report ---- ---------------------- --------------------------------------------------
report _SUMMARY_
report_contact admin@yourcompany.com
Edit /etc/rc.local and add the following line:
spamd -d -c -A 0.0.0.0/0 -i 0.0.0.0
(Optional) Installing Razor
Download, untar and compile razor:
http://aleron.dl.sourceforge.net/sourceforge/razor/razor-agents-2.67.tar.gz
cd /root
tar -zxvf
razor-agents-2.67.tar.gz
cd
razor-agents-2.67
perl Makefile.PL
make
make test
make install
Create the default configuration files in /etc/razor:
razor-client
razor-admin
-home=/etc/razor -d -create
razor-admin
-home=/etc/razor -d -register
(Optional) Go to http://www.rulesemporium.com and download the following rulesets:
70_sare_adult.cf
70_sare_bayes_poison_nxm.cf
70_sare_header1.cf
70_sare_html0.cf
70_sare_oem.cf
70_sare_ratware.cf
70_sare_specific.cf
70_sare_spoof.cf
70_sare_unsub.cf
70_sare_uri.cf
71_sare_redirect_pre3.0.0.cf
72_sare_bml_post25x.cf
99_sare_fraud_post25x.cf
bigevil.cf
evilnumbers.cf
Download and save them all to /usr/share/spamassassin.
Reboot. Yer done.