Current setup: FreeBSD 4-STABLE running postfix/procmail/tmda/cyrus

* I have postfix going to tmda via /etc/mail/aliases.cyrus:
davec:            "|/usr/local/bin/python /usr/local/bin/tmda-filter"

* And in /etc/tmdarc I have:
DELIVERY = "| /usr/local/bin/procmail -p /usr/local/etc/procmailrc"
DATADIR = os.path.expandvars("/var/mailfilter/$USER/")
LOGFILE_DEBUG = os.path.expandvars("/var/log/tmda/$USER.log")
LOGFILE_INCOMING = os.path.expandvars("/var/log/tmda/$USER.summary.log")
FILTER_INCOMING =
os.path.expandvars("/var/mailfilter/$USER/filters/incoming")
FILTER_OUTGOING =
os.path.expandvars("/var/mailfilter/$USER/filters/outgoing")
RECIPIENT_DELIMITER = "+"
MAIL_TRANSFER_AGENT = "postfix"
CONFIRM_APPEND = os.path.expandvars("/var/mailfilter/$USER/whitelist")
BOUNCE_ENV_SENDER = "[EMAIL PROTECTED]"
ALLOW_MODE_640 = "yes"

* Here is the error I get in /var/log/tmda/davec.log:
Uncaught Python 2.2.2 Exception (Thu Nov 21 04:22:34 2002):
-----------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/bin/tmda-filter", line 53, in ?
    execfile(os.path.join(execdir, 'tmda-rfilter'))
  File "/usr/local/bin/tmda-rfilter", line 771, in ?
    main()
  File "/usr/local/bin/tmda-rfilter", line 739, in main
    mta.deliver(msgin)
  File "/usr/local/lib/python2.2/site-packages/TMDA/MTA.py", line 57, in
deliver
    msg.deliver()
  File "/usr/local/lib/python2.2/site-packages/TMDA/Deliver.py", line 112,
in deliver
    self.__deliver_program(self.msg.as_string(unixfrom=1), dest)
  File "/usr/local/lib/python2.2/site-packages/TMDA/Deliver.py", line 137,
in __deliver_pr
ogram
    Util.pipecmd(program, message)
  File "/usr/local/lib/python2.2/site-packages/TMDA/Util.py", line 303, in
pipecmd
    raise IOError, \
IOError: failure delivering message to command "/usr/local/bin/procmail -p
/usr/local/etc/
procmailrc" (command "/usr/local/bin/procmail -p
/usr/local/etc/procmailrc" exited 65  ())

* The last line, IOError is all on one line.



* The setup works fine if I took out tmda, in which case postfix master.cf
has this for the procmail entry:
procmail  unix  -       n       n       -       50       pipe
  flags=Ru user=cyrus argv=/usr/local/bin/procmail -p \
/usr/local/etc/procmailrc USER=${user} EXTENSION=${extension}

* tmda is being run as the cyrus user, so I don't know if that information
helps in figuring out why procmail is not delivering the emails when piped
from tmda DELIVERY line. What's error 65?


Thanks in advance if anyone can help me resolve this issue.

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

Reply via email to