-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The Friday 2008-01-25 at 20:02 +0100, Per Jessen wrote:

Carlos E. R. wrote:

So... what is the proper configuration of the transport file, so that
all mails are sent through my ISP relay host, with some exceptions,
like local mail?


That part I solved in the transport file with this syntax:

lists.sourceforge.net   :
users.sourceforge.net   :

localhost               :
valinor                 :
nimrodel.valinor        :
.localhost              :
.valinor                :
.nimrodel.valinor       :

#Default:
*            smtp:[smtp.telefonica.net]



I think I also need to define my transport based on the "FROM"
address, not the destination, but I don't know or rather forgot if
this is possible. Guess I'll have to RTFM. O:-)

Hola Carlos,

I think you need to look up the sender_dependent_relayhost_maps
parameter in postfix.

Ah! Yes, that's it.

But this feature has almost no documentation. The only text I found is in "RELEASE_NOTES-2.3":

- - Sender-dependent smarthost lookup tables.  The maps are searched
  with the sender address and with the sender @domain.  The result
  overrides the global relayhost setting, but otherwise has identical
  behavior. See the postconf(5) manual page for more details.

  Example:
    /etc/postfix/main.cf:
        sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay



And the postconf(5) manual page doesn't clarify much:

   sender_dependent_relayhost_maps (default: empty)

       A sender-dependent override for the global relayhost parameter
       setting. The tables are searched by the envelope sender address and
       @domain.

       This information is overruled with relay_transport,
       default_transport and with the transport(5) table.

       For safety reasons, this feature does not allow $number
       substitutions in regular expression maps.

       This feature is available in Postfix 2.3 and later.


But there is no sample "sender_relay" file to guide me :-/

I have just googled that parameter and found many people asking for a solution for the very same problem I have: sending to diferent smtp relay hosts depending on the "from" address, and using the correct auth id each time for each server, based as well on the from address.

I have a lot to read...


- -- Cheers,
       Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHmkkjtTMYHG2NR9URAm3XAKCIaJeessJzAm2YtAWBCDRy1LgXIQCdFtEv
YbfTwSkJkuWeWiKqCTtrusk=
=zu0O
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to