Am 21.12.2014 um 13:53 schrieb Istvan Prosinger:
Is it possibble to make Postfix relay to some specific domain using a
specific relay, and relay all the other domains by default rules (put
the mail to an inbox if local or relay outbound by the given
restrictions etc)?

I guess it'd involve a transport_maps pointer in the main.cf to a
specific (let's say) hash table which will contain something like:

myspecialdomain.tld.com relay:[myspecialrelay:port]
* relay:[what_do_i_put_here?]

in doubt *nothing*, your LMTP but in any case don't use * here, a table is a table and should list anything clear

we have a transport_map for every single domain to 127.0.0.1:24 and for special routings instead the destination smtp server, all in mysql-tables and so created on-demand based on database views

If I'd relay * to my own smtp, I guess it would create an endless loop,
and this is where my dilema starts

http://www.postfix.org/postconf.5.html#relayhost
http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
http://www.postfix.org/postconf.5.html#transport_maps

Reply via email to