From: Bruno Ribeiro da Silva on
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. So is there a way to do filtering only on moment before delivery?
I'm using virtual transport.

Thanks in advance!

From: Ricardo Carrillo on
Yes, you can check grey listing topics and dns black list topics, all
incomming mail is procesed before arrive to the server with this features.


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: L.I. Ricardo D. Carrillo Sánchez
:: Security Specialist
:: Universidad Nacional Autonoma de Mexico ::
:: Ciudad Universitaria , D.F. Mex

:: e-mail prim.: davxoc at gmai dot com
:: e-mail secu.: davxoc at hotmail dot com
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


On Sat, May 8, 2010 at 6:11 PM, Bruno Ribeiro da Silva <
contato(a)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. So is there a way to do filtering only on moment before delivery?
> I'm using virtual transport.
>
> Thanks in advance!
>
From: Reinaldo de Carvalho on
On Sat, May 8, 2010 at 8:11 PM, Bruno Ribeiro da Silva
<contato(a)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)