On Wed, May 04, 2016 at 07:13:39AM +0000, Viktor Dukhovni wrote: > On Wed, May 04, 2016 at 11:39:48AM +0530, Ram wrote: > > > I have a postfix relay server that sends all mails to a relayhost. > > Problem is that some domains , whose MX is all same, are not accepting > > mails from that relayhost for now. > > > > Until that issue is resolved I want to route all such domains mails ( where > > MX is pointing to a particular host ) via a different network. > > I dont have a list of all such domains , only the MX host is known > > > > Can there be any such configuration in postfix > > You'd need a socketmap-based transport(5) table, with the daemon > serving the socket doing the MX lookups and deciding what to do. > If the MX lookup temp-fails, you'd need to return "retry:4.1.2 MX > resolution failed" as the transport. (You could also use "tcp" > tables, but the "socketmap" protocol is somewhat better).
What about a check_recipient_mx_access lookup and a FILTER result? I suppose that fails for multiple recipients where one or more of them are not at that MX host. -- http://rob0.nodns4.us/ Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: