I got stuck on a procmail configuration for tmda-filter.

I can't seem to get the command:

|/usr/bin/tmda-filter
in /etc/procmailrc to work correctly.  I get errors about not 
having a ~.tmdarc file, which I don't want to have and don't see 
in the docs that it's required.  I am trying to get this 
configured as a system level filter and not per user.

Under procmail, I was thinking of putting this into 
/etc/procmailrc and having the return code of tmda-filter returned 
to postfix.  I'm having limited success on the return exitcodes 
and no success on tmda-filter configuration.

Can this be done as an entry in procmail?

---- /etc/procmail ----
VERBOSE=yes

:0fw
| /usr/bin/spamc -f

#:0:
#* ^X-Spam-Status: Yes
#/dev/null

# Run the message through tmda-filter
:0fw
| /usr/bin/tmda-filter
#EXITCODE=75
EXITCODE=$?

DEFAULT=/dev/null

----- syslog entry ----
Oct  9 03:35:12 penguin postfix/local[4282]: C6CDA2312E: 
to=<[EMAIL PROTECTED]>, relay=local, delay=2, status=bounced (Command 
died with status 127: "procmail -a "$EXTENSION"". Command output: 
procmail: [4283] Wed Oct  9 03:35:11 2002 procmail: Executing 
"/usr/bin/spamc,-f" procmail: [4283] Wed Oct  9 03:35:12 2002 
procmail: Executing "/usr/bin/tmda-filter" /usr/bin/tmda-filter: 
/usr/bin/tmda-filter: No such file or directory procmail: [4283] 
Wed Oct  9 03:35:12 2002 procmail: Program failure (127) of 
"/usr/bin/tmda-filter" procmail: Rescue of unfiltered data 
succeeded procmail: [4283] Wed Oct  9 03:35:12 2002 procmail: 
Assigning "EXITCODE=127" procmail: Assigning "DEFAULT=/dev/null" 
procmail: Assigning 
"PATH=/home/tall/bin:/usr/local/bin:/usr/bin:/bin" )
---------------------

-- 
Flee at once, all is discovered.

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

Reply via email to