OSEC

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

From: Ralf Hildebrandt (Ralf.Hildebrandtcharite.de)
Date: Thu Mar 12 2009 - 03:42:26 CDT


* Ralf Hildebrandt <Ralf.Hildebrandtcharite.de>:
> * Rocco Scappatura <Rocco.Scappaturainfracom.it>:
> > Hello,
> >
> > I need to use 'mail()' PHP function on a UNIX system, which uses Postfix
> > as MTA.
> >
> > On Linux systems, mail() function use the 'sendmail' program to transmit
> > messages. And so, my PHP program uses postfix setup to transmit the
> > messages. In particular, it looks up DNS for MX of destination domain an
> > forward it to the correct destination.
> >
> > Now I have the problem, that indeed I need that some messages have to be
> > forwarded directly to the destination, while the ones generated by my
> > mail application should be sent trhough a smart host (setting up
> > relayhost=smart.host.tld).
> >
> > How could I do? Is it possible to change the "relayhost" postfix
> > parameter on the fly? Or what?
>
> Why not use transport_maps?

Ugh, discard my answer :)

--
Ralf Hildebrandt (Ralf.Hildebrandtcharite.de) snickebocharite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de