Archive | Email RSS feed for this section

Relay Control

In qmail, relaying is usually controlled by the tcpserver wrapper which uses a config file at either /etc/tcp.smtp or /home/vpopmail/etc/tcp.smtp. The config file must be compiled into a binary format – “tcp.smtp.cdb” for actual use. Here’s the command line: tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp You don’t need to restart qmail after rebuilding the database. Bookmark [...]

In qmail, relaying is usually controlled by the tcpserver wrapper which uses a config file at either /etc/tcp.smtp or /home/vpopmail/etc/tcp.smtp.

The config file must be compiled into a binary format – “tcp.smtp.cdb” for actual use. Here’s the command line:

tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp

You don’t need to restart qmail after rebuilding the database.

View Comments Continue Reading →

Spam Assassin

http://www.spamassassin.org 1. Download/unpack distribution cd /root/archive wget http://www.spamassassin.org/released/Mail-SpamAssassin-2.60.tar.gz tar -xvzf Mail-SpamAssassin-2.60.tar.gz cd Mail-SpamAssassin-2.60 2. Install perl -MCPAN -e shell o conf prerequisites_policy ask install Mail::SpamAssassin quit 3. Test > spamassassin -t < sample-nonspam.txt > nonspam.out examine nonspam.out – it should have a header that say the message is not spam X-Spam-Status: No … > spamassassin [...]

http://www.spamassassin.org

1. Download/unpack distribution

cd /root/archive
wget http://www.spamassassin.org/released/Mail-SpamAssassin-2.60.tar.gz
tar -xvzf Mail-SpamAssassin-2.60.tar.gz
cd Mail-SpamAssassin-2.60

2. Install

perl -MCPAN -e shell
o conf prerequisites_policy ask
install Mail::SpamAssassin
quit

3. Test

> spamassassin -t < sample-nonspam.txt > nonspam.out
examine nonspam.out - it should have a header that say the message is not spam
        X-Spam-Status: No ...

> spamassassin -t < sample-spam.txt > spam.out
examine spam.out
        X-Spam-Status: Yes

4. Spamd

cd spamd
cp cp redhat-rc-script.sh /etc/init.d/spamd
service spamd start

add startup symlinks

5. Integrate with qmail

cd /root/archive
wget http://www.gbnet.net/~jrg/qmail/ifspamh/ifspamh

edit ifspamh and set location of spamc to /usr/bin/spamc

http://cr.yp.to/mess822.html

wget http://cr.yp.to/software/mess822-0.58.tar.gz
tar -xvzf mess822-0.58.tar.gz
cd mess822-0.58
make
make setup check
View Comments Continue Reading →