Re: Sender based relay server
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
Re: Sender based relay server
On Mon, January 11, 2010 5:04 pm, David Koski wrote: On Monday 11 January 2010, Jack Knowlton wrote: 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.. Is transport (man transport) what you are looking for? David Koski da...@kosmosisland.com I believe so, yet I could not find any example to match what I need. When the relay map is set as @domain2.com smtp: @domain3.com [yyy.yyy.yyy.yyy]:25 And I send a message from u...@domain2.com, I get this: Jan 11 17:53:47 dsrv3 postfix/smtp[7561]: C8890252DCE: to=x...@gmail.com, relay=none, delay=0.13, delays=0.03/0.07/0.02/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=smtp type=: Host not found) -JK
Re: Sender based relay server
Jack Knowlton: 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 Postfix 2.3 and later: http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps And perhaps: http://www.postfix.org/SOHO_README.html Wietse
Re: Sender based relay server
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. -- Stan