On Mon, Jan 4, 2010 at 2:24 PM, Wietse Venema <[email protected]> wrote:
> nik600:
>> On Mon, Jan 4, 2010 at 12:52 PM, nik600 <[email protected]> wrote:
>> > Dear all
>> >
>> > i've installed a postfix server with mysql support.
>> >
>> > i've also set-up a custom filter script shell that calls spamc and
>> > some other custom utils, this script cannot handle multiple
>> > recipients, so i've set
>> >
>> > filter_destination_recipient_limit = 1
>> >
>> > The problem that i've experienced is that when i've got an entry like
>> > this in the alias table:
>> >
>>
>> I've also tried to change master.cf like:
>>
>> smtp inet n - n - - smtpd
>> -o content_filter=filter:dummy
>> -o receive_override_options=no_address_mappings
>> 9009 inet n - n - - smtpd
>> -o content_filter=filter:dummy
>> -o receive_override_options=no_address_mappings
>
> As documented in http://www.postfix.org/FILTER_README.html
> you must turn off address_mappings BEFORE or AFTER the
> filter NOT on both sides.
>
> Wietse
>
the 9009 port is not the filter port, i use both 25 and 9009 because
some providers in italiy blocks the 25 port.
the complete master.cf is
smtp inet n - n - - smtpd
-o content_filter=filter:dummy
-o receive_override_options=no_address_mappings
9009 inet n - n - - smtpd
-o content_filter=filter:dummy
-o receive_override_options=no_address_mappings
filter unix - n n - 20 pipe
flags=Rq user=filter
argv=/var/programmi/script/filtra_spamc_1.6 -f ${sender} --
${recipient} ${sasl_username}
--
/*************/
nik600
http://www.kumbe.it