How to setup TMDA for SuSE Linux

This page explains howto setup the Tagged Message Delivery Agent, a very fine program to filter spam, on your SuSE Linux machine.


1. Installation:


2. Configuration

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.

Add the following to a new ~/.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

Set the following variables in your ~/.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.