On Wed, Apr 06, 2005 at 08:05:49PM +0000, Gary Benitt wrote:
> I'm looking to conditionally forward some emails that arrive at my
> server, specifically ones which are not flagged by my spam filter...
> I'm running qmail-ldap with qmail-queue-scanner.pl and spamassassin.
> The forwarding is currently done with the ldap attribute
> mailforwardingaddress for each user.  
> 
> I've read about condredirect which looks like it could be applicable,
> but it seems to apply to .qmail files which I don't have since my users
> are all virtual, stored only in ldap.  I'm probably missing something
> obvious, but I've searched around to no avail, so a push in the right
> direction would be much appreciated...
> 

There are two solutions.
a) use deliveryProgramPath LDAP attribute to specify your filter
b) use a extended default delivery rule. Nobody said that the aliasempty
   may only be set to ./Maildir/.

a) needs to be set for all users that need it whereas b) will work for all
users doing a local delivery. The problem with b) is that it is not so
simple to overrule it (you need to specify both homeDirectory and
mailMessageStore to overwrite the aliasempty rule)

-- 
:wq Claudio

Reply via email to