Hi, I've come to need spam-filtering to be switched on and off on a per-user basis. So, the alternatives seemed to be to switch to qpsmtpd (postponed), hack qmail-scanner to add LDAP support and then use a modified scheme, or utilize deliveryProgramPath after the message has been accepted. One of our users has this requirement for his mail server and argues with legal problems (German law has become very strict on email filtering, tagging etc.). In his case, also email forwarding to a different server which isn't directly on the Internet is a requirement. The usual message flow looks like this:
Internet -> qmail-smtpd -> qmail-local -> filter-program(s) -> qmail-remote -> other mail server So, I hacked together a script (currently 200 lines in Python) that does all that, based on its command line arguments from the deliveryProgramPath attribute of a given user. But I don't feel too comfortable with it (it's _fat_ and _slow_) and wanted to know if there might be a simpler solution. Filtering everything via QS (what I normally do, at least on our internal servers) is disallowed in this case. How are you solving this case? TIA! Best, --Toni++
