On 11/11/2011 10:56 PM, li...@nerdbynature.de wrote: > On Fri, 11 Nov 2011 at 12:03, Martin Gregorie wrote: >>> Using "per user" AS configuration by receiving MTA is "tricky", >>> consider e.g. message to multiple local recipients. > I don't have that many local users on the system and incoming mail is > hardly ever addressed to more than one local user. But I'd expect postfix > to figure this out and deliver the mail to each user separately, thus > allowing for "per user" mail filtering.
You'll need to tell postfix to deliver one recipient at a time to your filter with "foo_destination_recipient_limit = 1" where foo is the name of the master.cf transport. See postfix docs or the postfix-users list for details. >>> Have you considered the following setup? >>> * fetchmail fetches mail from a remote server, >>> * fetchmail passes email to procmail script (see "mda" option) >>> * procmail script does AV and AS scans >>> * procmail delivers the mail to user's Maildir > Yeah, I had this before but was using maildrop instead of procmail. But I > suspected performance issues with this setup and decided that I want > postfix to call all the filters (AV/AS). Since the majority of delivery processing time is spent doing the AV/AS filtering, I wouldn't expect much performance difference by moving those same processes to a different point in the delivery chain. -- Noel Jones