Mauro Faccenda a écrit : > Hi again, > > I'm using a setup integrated with Active Directory with Maildir and I > need to do some filtering in messages (basically manipulating some > headers). > > Using procmail as a transport like: > --- > procmail unix - n n - - pipe > flags=Ru user=vmail argv=/usr/bin/procmail -t -m USER=${user} > DOMAIN=${domain} EXTENSION=${extension} /etc/procmailrc > --- > > This setup doesn't work well for me because it doesn't update the > maildirsize (I'm using the VDA patches in Postfix) file in the user's > Maildir and it doesn't automatically create the Maildir when needed. > Without using procmail as a transport it does it very well. > > I am wondering if I can use procmail (or some other filtering > software) in another way so it does it's filtering and then send the > message back to Postfix, like my DSPAM setup, that uses the LMTP > socket, filters the message and send it to the LMTP in the > localhost:10026 port.
you mean SMTP, not LMTP... with procmail or maildrop, your best bet is to resubmit mail via the sendmail command (postfix sendmail, not Sendmail sendmail). for this, you must make sure that you don't have a content_filter for pickup: pickup fifo n - n 60 1 pickup -o content_filter= ... (the reason is to avoid an infinite loop: you filter mail, you pass it to sendmail, it passes it to the filter...). All that said, the VDA patch isn't supported here. so you're on your own. An latenrative based on a policy service has been proposed on the list (I'm really sorry, but I forgot who posted this. If the developer sees this message, he'll reply. otherwise, google...). In any case, this is a better approach than a patch. > [snip]