HP-UX Mailing Solutions White Paper

By default, spamd listens on the TCP port 783. You can verify if spamd is listening properly
on this port:
# netstat -an | grep 783
tcp 0 0 127.0.0.1.783 *.* LISTEN
2. Follow this procedure to setup spamc the SpamAssassin client:
NOTE: The following sample setup is for the user abtuser with user ID (uid) 7140
(abtuser) and group ID (gid) 714(abt).
a. Login as abtuser.
b. Change the directory to the root directory:
# cd ~
c. Create the .spamassassin directory and change to that directory:
# mkdir .spamassassin
# cd .spamassassin
d. Copy the /opt/iexpress/spamassassin/share/spamassassin/
user_prefs.template file as user_prefs:
# cp p /opt/iexpress/spamassassin/share/spamassassin/user_prefs.template user_prefs
e. Append the following to the user_prefs file:
rewrite_subject 1
report_header 1
use_terse_report 1
defang_mime 0
report_safe 0
use_bayes 1
auto_learn 1
ok_locales en
f. Change the permission for the .spamassasin directory:
# cd ..
# chmod -R 644 .spamassassin
g. Check if SpamAssassin is working:
# spamc -R < sample_spam.txt
where sample_spam.txt is a spam mail, the output may vary based on the spam content)
where, sample_spam.txt specifies the spam mail. The output varies based on the
spam content.
6.0/5.0
Spam detection software, running on the system "itanika6.ind.hp.com", has identified this incoming
email as possible spam. The original message has been attached to this so you can view it (if it
isn't spam) or label similar future email. If you have any questions, see the administrator of that
system for details.
Content preview: THIS ENTERPRISE IS AWESOMELY FEATURED IN SEPTEMBER 2000 MILLIONAIRE,
AUGUST 2000 TYCOONS AND AUGUST 2000 ENTREPRENEUR Magazine. ====> Do you have
a burning desire to change the quality of your existing life? [...]
Content analysis details: (6.0 points, 5.0 required)
pts rule name description
--- ---------------------- --------------------------------------------------
1.7 INVALID_DATE Invalid Date: header (not RFC 2822)
1.8 DATE_IN_PAST_12_24 Date: is 12 to 24 hours before Received: date
2.6 INVALID_MSGID Message-Id is not valid, according to RFC 2822
3. Follow this procedure to setup Procmail:
a. Change the directory to the root directory:
# cd ~
b. Append the following SpamAssassin-specific directives to the .procmailrc file:
#Spamassassin start
:0fw: spamassassin.lock
Anti-Spam and Anti-Virus Solutions in HP-UX Sendmail 37