On Sat, January 9, 2010 5:34 pm, Stan Hoeppner wrote: > Jack Knowlton put forth on 1/9/2010 9:57 AM: >> Hi all. >> Our internal postfix server relays all outbound mail thru an external >> host. >> How can I set it to use a different relay server when the email comes >> from >> a specified domain? Eg. j...@domain1.com -> xxx.xxx.xxx.xxx (default), >> m...@domain2.com -> yyy.yyy.yyy.yyy > > This might help ya: > > 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. A lookup > result > of DUNNO terminates the search without overriding the global relayhost > parameter > setting (Postfix 2.6 and later). This information is overruled with > relay_transport, sender_dependent_default_transport_maps, > 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. >
Thank you. I figured out how to make a per-domain relay, but what is the format for having the message directly delivered? I tried both "smtp:" and ":smtp" but none seemed to work.. -JK