Ralf Hildebrandt ha scritto: > * Andrea Gabellini <andrea.gabell...@telecomitalia.sm>: >> 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? Thanks, Andrea -- ---------------------------------------------------------------- If you want to make an enemy, try changing someone. ---------------------------------------------------------------- Ing. Andrea Gabellini Email: andrea.gabell...@telecomitalia.sm Skype: andreagabellini Tel: (+378) 0549 886111 Fax: (+378) 0549 886188 Telecom Italia San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Republic of San Marino http://www.telecomitalia.sm