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:
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):
Gnome Desktop Environment
Server Config 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
Login from a telnet session (you REALLY want to do this so you can copy/paste). SU and enter root password. Then type:
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:
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:
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 firstname.lastname@example.org, or call support at 555-1212 for
report further assistance.
report Content preview: _PREVIEW_
report Content analysis details: (_SCORE_ points, _REQD_ required)
report " pts rule name description"
report ---- ---------------------- --------------------------------------------------
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:
tar -zxvf razor-agents-2.67.tar.gz
Create the default configuration files in /etc/razor:
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:
Download and save them all to /usr/share/spamassassin.
Reboot. Yer done.