Andrea Gabellini:
> Ralf Hildebrandt ha scritto:
> > * Andrea Gabellini <[email protected]>:
> >> Hello,
> >>
> >> I need to route emails that flow through my postfix/spamassassin gateway
> >> to different hosts based on my own policy.
> >>
> >> I think I have to use the transport mechanism, but I can't find any
> >> lookup table that satisfy my needs.
> >>
> >> Is there a way to call a script at the transport level that can return a
> >> transport:destination value?
> >
> > You can do that using a tcp_map. Look for "grinch"
> > (http://www.zonque.org/projects/grinch/), you can adjust that to your
> > needs and use it in transport_maps
>
> I already looked at tcp_map, but I have some doubts.
>
> First of all tcp_map support is not compiled by default, and I don't
> know the flag to activate it. Do you know it?
>
> TCP_TABLE(5) says that the return code must be a numeric value. Is only
> an example or I can return any value like transport:destination value?
Actually, this manpage says the result is:
200 SPACE text NEWLINE
400 SPACE text NEWLINE
500 SPACE text NEWLINE
Where "text" is the result, or an error message in case of failure.
Wietse