It's easy enough to tell Postfix to deliver to TMDA.

I'm still having a problem getting TMDA to pick up the right defaults as far
as file locations, etc., for the virtual users.

The mail log shows this on a delivery attempt:

Jan  8 18:49:20 sausage postfix/pipe[33251]: 9754356DB2: to=<[EMAIL PROTECTED]>,
orig_to=<[EMAIL PROTECTED]>, relay=tmda, delay=1, status=deferred (temporary
failure. Command output: See none/TMDA_DELIVERY_FAILURE for traceback
Uncaught Python 2.2.3 Exception (Sat Jan  8 18:49:20 2005):
----------------------------------------------------------- Traceback (most
recent call last):   File "/usr/local/tmda-1.0.3/bin/tmda-filter", line 53,
in ?     execfile(os.path.join(execdir, 'tmda-rfilter'))   File
"/usr/local/tmda-1.0.3/bin/tmda-rfilter", line 175, in ?     from TMDA
import Defaults   File "/usr/local/tmda-1.0.3/TMDA/Defaults.py", line 68, in
?     execfile(GLOBAL_TMDARC)   File "/etc/tmdarc", line 8      DATADIR =
%os.path.expandvars("/usr/tmda/$USER/")                ^  SyntaxError:
invalid syntax Traceback (most recent call last):   File
"/usr/local/tmda-1.0.3/bin/tmda-filter", line 67, in ?     from
TMDA.Defaults import LOGFILE_DEBUG ImportError: cannot import


Unfortunately, the log cuts off here.  It is obvious that TMDA is not
picking up the correct directory from Defaults.py.  I'm thinking I'm close
but not quite there.

A log entry from tmda-ofmipd when trying to send from the same account
reads:

error: uncaptured python exception, closing channel <__main__.SMTPChannel
connected 67.100.218.234:52322 at 0x8215cec>
(exceptions.KeyError:getpwnam(): name not  found
[/usr/local/lib/python2.2/asyncore.py|poll|100]
[/usr/local/lib/python2.2/asyncore.py|handle_read_event|397]
[/usr/local/lib/python2.2/asynchat.py|handle_read|130]
[./tmda-ofmipd|found_terminator|837] [./tmda-ofmipd|process_message|1179]
[/usr/local/tmda-1.0.3/TMDA/Util.py|gethomedir|102])


My /etc/tmdarc reads:

import Util

# Allow group access to critical files
ALLOW_MODE_640 = 1
os.umask(0027)

# Locate important files and directories
DATADIR = %os.path.expandvars("/usr/tmda/$USER/")
CONFIRM_APPEND                  = DATADIR + "lists/confirmed"
FILTER_INCOMING                 = DATADIR + "filters/incoming"
FILTER_OUTGOING                 = DATADIR + "filters/outgoing"
LOGFILE_DEBUG                   = DATADIR + "logs/debug"
LOGFILE_INCOMING                = DATADIR + "logs/in"
LOGFILE_OUTGOING                = DATADIR + "logs/out"
PENDING_BLACKLIST_APPEND        = DATADIR + "lists/blacklist"
PENDING_WHITELIST_APPEND        = DATADIR + "lists/whitelist"
TEMPLATE_DIR                    = DATADIR + "templates/"

# CGI Location
#CGI_URL = "http://tmda.downtownhelpdesk.com/tmda.cgi";

# Define X-Primary Address key for TMDA-to-TMDA communications
ADDED_HEADERS_CLIENT = { "X-Primary-Address": "[EMAIL PROTECTED]" % \
 (os.path.expandvars("$USER"), Util.gethostname() )  }

# OVERRIDE DEFAULTS
X_TMDA_IN_SUBJECT = 1
ACTION_OUTGOING = "dated=10d"
RECIPIENT_HEADER = 'Delivered-To'
MAIL_TRANSFER_AGENT="postfix"

# ADDITIONAL STUFF
FINGERPRINT = ["message-id", "from", "date", "body"]
TAGS_CONFIRM = ['c', 'confirm']
TAGS_DATED = ['d', 'dated']

MAIL_TRANSPORT="smtp"
SMTPHOST="127.0.0.1:10026"

Where $USER is the logged-in user or username associated with the mail by
Postfix.


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

Reply via email to