This page explains howto setup the Tagged Message Delivery Agent, a very fine program to filter spam, on your SuSE Linux machine.
tar -xzvf tmda-1.0.3.tgz
vi tmda-1.0.3/contrib/tmda.spec
BuildRequires: /usr/bin/python
Requires: /usr/bin/python
cd tmda-1.0.3; ./compileall ; cd ..
tar -czvf tmda-1.0.3.tgz tmda-1.0.3/.
rpmbuild -tb tmda-1.0.3.tgz
rpm -Uvh /usr/src/packages/RPMS/noarch/tmda-1.0.3-1.noarch.rpm
You may want to generate a
~/.procmailrc-tmda
file to process mail after TMDA's filtering.
If you already use procmail, rename your ~/.procmailrc
to the above.
~/.procmailrc
file
##Preliminaries
SHELL=/bin/sh #Use the Bourne shell (check your path!)
MAILDIR=${HOME}/Mail #First check what your mail directory is!
HOSTDOMAIN=`/bin/hostname -d`
# set the environment variables
EXTENSION="$1"
:0
* EXTENSION ?? .
{
DELIMITER="+"
}
RECIPIENT="$LOGNAME$DELIMITER$EXTENSION@$HOSTDOMAIN"
SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`
# Finally, run the message through tmda-filter.
:0 w
| /usr/bin/tmda-filter
# Take the exit code from TMDA.
EXITCODE=$?
# TMDA takes care of final delivery
DEFAULT=/dev/null
~/.tmdarc
or /etc/tmdarc
MAIL_TRANSFER_AGENT = "sendmail"
DELIVERY = "|/usr/bin/procmail -f $SENDER ~/.procmailrc-tmda"
RECIPIENT_DELIMITER = "+"
Now proceed with the TMDA client configuration as explained on the web site.