maybe you could use some kind of sql based transport lookup and transform your script to an stored procedure at the database server. like http://www.postfix.org/pgsql_table.5.html
regards, evelio vila -----Original Message----- From: Ralf Hildebrandt <ralf.hildebra...@charite.de> To: postfix-users@postfix.org Date: Tue, 9 Feb 2010 17:48:49 +0100 Subject: Re: Mail routing based on my own policy * 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 -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de Participe en la 15 Convención Científica de Ingeniería y Arquitectura, del 29 de noviembre al 3 de diciembre de 2010 La Ingeniería y la Arquitectura por un Futuro Sustentable Palacio de Convenciones, La Habana, Cuba http://www.cujae.edu.cu/eventos/convencion ------------------------------------------------------------------------------ Participe en Universidad 2010, del 8 al 12 de febrero de 2010 La Habana, Cuba http://www.universidad2010.cu