I'm yet another tmda newbie trying to integrate qmail, procmail, and spamassassin. Linux Debian sid, qmail set up according to www.lifewithqmail.org, procmail 3.22, spamc 3.0.1, and tmda reports 1.0.3.
Because of the incredible volume of spam I get (10,000+/day), it's necessary to run procmail and SA to pare it down first, before running tmda. If I ran tmda first I'd quickly get my access cut off for running my own spew factory sending out all those confirmation emails to bogus addresses. By the time I get to the point where I want to run tmda, I've got only a few dozen messages a day left, which is well within the realm of acceptableness. So I'm at a loss to understand exactly what I'm doing wrong. I understand that I need tmda to believe I'm using postfix or exim because of the environment variable silliness that results when I use procmail as my MDA. I found http://mla.libertine.org/tmda-users/2002-03/msg00125.html and the related thread as a reference. But I've obviously not quite got it right, and would appreciate a pointer about where my deficiency is, either to a message/thread in the archives, or with a direct instruction about what I've messed up. Thank you most kindly. ----- .qmail-aaron: |preline /usr/bin/procmail -p ----- For .procmailrc, I've deliberately not followed tmda-filter with a delivery to /dev/null because I want to catch tmda errors and not lose mail. I understand that tmda will eventually handle final delivery and this won't be necessary, but in the meantime, a fall-through default delivery instruction is important. .procmailrc: # [Lots of deleted stuff that works okay.] # Set the necessary environment variables. EXTENSION="$1" :0 * EXTENSION ?? . { DELIMITER="+" } RECIPIENT="[EMAIL PROTECTED]" SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'` :0 w | /usr/bin/tmda-filter # DEFAULT=/dev/null :0: /home/rnbwpnt/Maildir/ ----- ~/.tmda/config: LOGFILE_INCOMING = "/home/rnbwpnt/tmda-incoming.log" LOGFILE_OUTGOING = "/home/rnbwpnt/tmda-outgoing.log" LOGFILE_DEBUG = "/home/rnbwpnt/tmda-debug.log" ACTION_HEADER_INCOMING = 1 CONFIRM_APPEND = os.path.expanduser("~/.tmda/lists/whitelist_confirmed") DELIVERY = "~/Maildir/" FINGERPRINT = ["body"] FULLNAME = "Aaron Goldblatt" HOSTNAME = "goldblatt.net" MAIL_TRANSFER_AGENT = "postfix" LOCAL_DELIVERY_AGENT = "/usr/bin/procmail -p ~/.procmail-tmda" PENDING_BLACKLIST_APPEND = "~/.tmda/lists/blacklist_pending" PENDING_DELETE_APPEND = "~/.tmda/lists/blacklist_deleted" PENDING_RELEASE_APPEND = "~/.tmda/lists/whitelist_released" PENDING_WHITELIST_APPEND = "~/.tmda/lists/whitelist_pending" USERNAME = "aaron" X_TMDA_IN_SUBJECT = 1 ----- The tmda log produces this: ~/tmda-debug.log: Uncaught Python 2.3.4 Exception (Fri Nov 19 03:41:32 2004): ----------------------------------------------------------- Traceback (most recent call last): File "/usr/bin/tmda-filter", line 53, in ? execfile(os.path.join(execdir, 'tmda-rfilter')) File "/usr/bin/tmda-rfilter", line 891, in ? main() File "/usr/bin/tmda-rfilter", line 830, in main orig_msgin_size) File "/usr/lib/python2.3/site-packages/TMDA/FilterParser.py", line 920, in firstmatch actions, source) File "/usr/lib/python2.3/site-packages/TMDA/FilterParser.py", line 714, in __search_file return self.__search_list(Util.file_to_list(pathname), File "/usr/lib/python2.3/site-packages/TMDA/Util.py", line 330, in file_to_list for line in fileinput.input(file): File "/usr/lib/python2.3/fileinput.py", line 231, in next line = self.readline() File "/usr/lib/python2.3/fileinput.py", line 320, in readline self._file = open(self._filename, "r") IOError: [Errno 2] No such file or directory: '/home/rnbwpnt/.tmda/lists/whitelist_confirmed' _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
