On Sat, May 8, 2010 at 8:11 PM, Bruno Ribeiro da Silva <cont...@brunoribeiro.org> wrote: > Hi all, > > Is it possible to filter incoming messages before mailbox delivery > without use of procmail or maildrop? > > I'm trying to use osbf-lua spamfilter, I setup this with postfix > after-queue filter http://www.postfix.org/FILTER_README.html > but it's not what I want, because outgoing mails are being classified > too.
'outgoing mails' isn't correct concept because all mails incoming and outgoing. You want to say 'mails from local subnet or authenticated connection are being processeds'. You can disable content_filter option, and use 'FILTER' action in restriction to enable content_filter and avoid process local messages (as documented). smtpd_xxxx_restricions = permit_mynetoworks, permit_sasl_authenticated, check_xxxx_access regexp:/etc/posfix/filter.regexp # /etc/posfix/filter.regexp /./ filter spamfilter: Or open another smtp port (smtpd), disable content_filter on this port, and setup local clients to use this port (as documented). > So is there a way to do filtering only on moment before delivery? > I'm using virtual transport. > > Thanks in advance! > -- Reinaldo de Carvalho http://korreio.sf.net http://python-cyrus.sf.net "Don't try to adapt the software to the way you work, but rather yourself to the way the software works" (myself)