OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: mydestination questions...

Re: mydestination questions...


Subject: Re: mydestination questions...
From: Liviu Daia (Liviu.Daiaimar.ro)
Date: Thu Jan 20 2000 - 23:47:04 CST


On 21 January 2000, Andrew McNamara <andrewmconnect.com.au> wrote:
[...]
> Putting "melang.off.connect.com.au local:" in transports fixes things,
> but I was hoping to share the transports file between multiple
> machines.
[...]

On 20 January 2000, LaMont Jones <lamontsecurity.hp.com> wrote:
[...]
> You could use the prog map for a transport map, and have the program
> return 'local:' when the key is equal to the hostname, and nothing
> when it's not... Whatever you figure out, I'm curious as well,
> although my situation is the reverse of yours.

    Nah, calling an external program for each message is way too
inefficient. Just share a template file and use sed to generate the
real one. Something like

transport.in:
        connect.com.au smtp:[wawura.off.connect.com.au]
        .connect.com.au smtp:[wawura.off.connect.com.au]
        HOSTNAME local:

sed "s/HOSTNAME/`hostname`/" <transport.in >transport

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   Liviu.Daiaimar.ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc



This archive was generated by hypermail 2b27 : Fri Jan 21 2000 - 00:12:18 CST