[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

procmail/postfix/tmda-filter



I'm trying to get tmda-filter working with procmail & postfix and haven't had much luck to date.

According to the docs, I have to put a .forward file in place that pipes to tmda-filter. I guess after that it gets piped into procmail for further processing.

That's backwards to what I want. I don't want to bother tmda-filtering anything that has X-Spam: Yes. No point.

From what I've been able to figure out, if I can dump error or exitcodes to from procmail back to postfix, it (postfix) will takes these emails as a temporarily undeliverable and hold it in the queue.

I'm not sure what exit codes are where they might be found. I had one person tell me that I could push back an EX_TEMPFAIL to postfix to get it back in queue. But I don't know where these come from.

Furthermore, I don't know if I can get an exitcode from tmda-filter and push it back into procmail. I think if I can do that, it would work OK, but procmail docs are....weird.
Is there some way that I can take the results of
:0w
| /usr/bin/tmda-filter

and push it back on the postfix email server?
--



Reply to: