Hello all: Thanks for your persistence in helping Andreas, I've been
following things closely as both he and I seem to have a similar problem.

Here's a rundown of my setup:

1. Running tmda 1.2 (though I've tried several other versions with identical
results) on a Pair Networks (a web host)server which runs FreeBSD 4.8-STABLE
2. qmail is the MTA
3. I have a domain (sawback.com) with a few mailboxes that receive mail
unfiltered. The rest is forwarded to procmail with the following line:
procmail -m ~/.tmda_procrc which passes mail to tom@ or tom-confirm- on to
tmda (see below for contents)... in other words, all mail directed to
tomxxxATsawback.com and all mail with the tmda tags,
tom-confirm-########xxxATxxxsawback.com will go through tmda.
4. I have set up a lists folder (see below) with a whitelist and a
world-read-write confirmed file
5. I have set up a filters folder (see below) with file "incoming" (world
readable, user writable) that ok's mail matching  whitelist and confirmed
files 
6. my ~/.tmda/config file contains the line
CONFIRM_ADDRESS="tomxxxATxxxsawback.com" since only mail to sawback.com is
being handled by tmda, and since my Pair Networks user email is
sawback2xxxATxxxdyyme.pair.com... Pair Networks discourages the use of
.qmail files and to use them requires getting them to do manual
reconfigurations every time I change a forward recipe... hence my use of
procmail (see point 3 above) only on the sawback.com domain.
7. My procmail log (set currently to verbose; see sample excerpt below)
indicates that tmda is failing with an error code of either 75 or 99 ...
confirm messages get through but as I've mentioned before, they are not
recognized when they return; a further confirmation message is sent.

--I've looked into all of your suggestions and still don't seem to be making
any progress... 

Thanks again for all of your help,

Tom Wolfe



The contents of .tmda_procrc are as follows:

LF="
"
# Uncomment this for users without valid shells.
# SHELL=/bin/sh
LOGFILE="/usr/home/sawback2/.tmda/proclog"
LOG="=== .tmda_procrc new ======="$LF
VERBOSE=yes
# Set the necessary environment variables.
EXTENSION="$1"

:0 c
* EXTENSION ?? .
{
  DELIMITER="+"
}
RECIPIENT="[EMAIL PROTECTED]"

SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`

# Run messages to tom-confirm- through tmda-filter.
:0 w
* ^To:(.*\<)?tom-confirm-
| /usr/home/sawback2/tmda/bin/tmda-filter

# Run messages to tom through tmda-filter.
:0 w
* ^To:(.*\<)?tom@
| /usr/home/sawback2/tmda/bin/tmda-filter

# Take the exit code from TMDA.
EXITCODE=$?

# TMDA takes care of final delivery
DEFAULT=/dev/null

:0
/dev/null


.tmda directory setup
=====================
I have a ~/.tmda directory with the following:
[EMAIL PROTECTED] pwd
/usr/home/sawback2/.tmda
[EMAIL PROTECTED] ls -l
total 15
-rw-------  1 sawback2  users  1829 Oct 25 11:00 config
-rw-------  1 sawback2  users    41 Oct 25 10:59 crypt_key
drwx------  2 sawback2  users   512 Oct 25 11:05 filters
drwxr-xr-x  2 sawback2  users   512 Oct 25 11:05 lists
drwxr-xr-x  2 sawback2  users   512 Oct 25 11:17 logs
drwx------  2 sawback2  users   512 Oct 25 12:08 pending
-rw-------  1 sawback2  users  6296 Oct 25 12:25 proclog
drwx------  2 sawback2  users   512 Oct 25 11:39 responses

config file
===========
[EMAIL PROTECTED] cat config
CONFIRM_APPEND = "/usr/home/sawback2/.tmda/lists/confirmed"
LOGFILE_DEBUG = "/usr/home/sawback2/.tmda/logs/debug"
LOGFILE_INCOMING = "/usr/home/sawback2/.tmda/logs/incoming"
LOGFILE_OUTGOING = "/usr/home/sawback2/.tmda/logs/outgoing"
CONFIRM_ADDRESS="tomxxxATxxxsawback.com"

Directories:
============
[EMAIL PROTECTED] ls -l filters/incoming
-rw-r--r--  1 sawback2  users  226 Oct 25 11:05 filters/incoming
[EMAIL PROTECTED] cat filters/incoming
from-file /usr/home/sawback2/.tmda/lists/confirmed ok # or accept or deliver
from-file /usr/home/sawback2/.tmda/lists/whitelist ok # Master Whitelist
from-file /usr/home/sawback2/.tmda/lists/blacklist bounce #Master Blacklist

[EMAIL PROTECTED] ls -l lists
total 9
-rw-r--r--   1 sawback2 users           1 Oct 25 11:05 blacklist
-rw-rw-rw-   1 sawback2 users           1 Oct 25 11:05 confirmed
-rw-r--r--   1 sawback2 users        6190 Oct 25 11:05 whitelist

[EMAIL PROTECTED] ls -l logs
total 5
-rw-r--r--  1 sawback2  users     1 Oct 25 11:17 debug
-rw-------  1 sawback2  users  2993 Oct 25 11:39 incoming
-rw-r--r--  1 sawback2  users     1 Oct 25 11:17 outgoing

excerpt from procmail log:
=========================
[EMAIL PROTECTED] cat proclog
=== .tmda_procrc new =======
procmail: [3632] Mon Oct 25 11:39:44 2004
procmail: Assigning "EXTENSION="
procmail: No match on "."
procmail: Assigning "[EMAIL PROTECTED]"
procmail: Executing "formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'"
procmail: Assigning "[EMAIL PROTECTED]"
procmail: No match on "^To:(.*\<)?tom-confirm-"
procmail: Match on "^To:(.*\<)?tom@"
procmail: Executing "/usr/home/sawback2/tmda/bin/tmda-filter"
procmail: [3632] Mon Oct 25 11:39:46 2004
procmail: Program failure (99) of "/usr/home/sawback2/tmda/bin/tmda-filter"
procmail: Assigning "LASTFOLDER=/usr/home/sawback2/tmda/bin/tmda-filter"
procmail: Assigning "EXITCODE=99"
procmail: Assigning "DEFAULT=/dev/null"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
>From [EMAIL PROTECTED] Mon Oct 25 15:39:44 2004
 Subject: Having sleep trouble? No prescription required - Ambien, ...
  Folder: /dev/null                                                     5849
[EMAIL PROTECTED]

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to