OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: transport_maps: different behavior if discard or error is used

From: Alain Spineux (aspineuxgmail.com)
Date: Fri Jul 20 2007 - 16:48:20 CDT


On 7/20/07, Noel Jones <njonesmegan.vbhcs.org> wrote:
> At 03:57 PM 7/20/2007, Alain Spineux wrote:
> >I tried this transport file
> >
> >asxnet.loc :[192.168.23.11]
> >beta.loc discard:go away
> >gamma.loc error:
> >
> >In the 2 first cases, the email go through my content_filter before
> >to be relayed to the expected destination,
> >but in the last one (error), postfix reject the mails immediately !
>
> This is as expected. Postfix smtpd won't accept mail that points to
> the error transport.
>
> >Why it so different ?
>
> Those transports have different purposes, so they behave differently.
>
> >How can I force the email to go through the filter ?
>
> Don't use the error: transport for mail you want to accept.

If so, how can I reject the mail after my content_filter :-)

I will be more precise on the nature of my question !

I tried to use -o transport_maps=/kolab/etc/postfix_front/transport in
master.cf !
I also tried to define another:
relay_rewrite unix - - n - -
trivial-rewrite -o
transport_maps=hash:/kolab/etc/postfix_front/transport
and then use "-o rewrite_service_name=relay_rewrite"
but without success
Why does things are not working ?

Regards

Alain

>
> --
> Noel Jones
>
>

--
--
Alain Spineux
aspineux gmail com
May the sources be with you