Hi,
I would like to know if such a thing would be feasible. I want to
disable relayhost for only mails being delivered to "relay_domains". For
delivery of mails to other domains, relayhost should be used. I tried
passing the option "relayhost=" to the relay transport in master.cf but
that did not work. Is such a thing possible?
This is the use case:
I have a server "mail.example.com" which acts as a backup MX for the
domain "example.net". This server "mail.example.com" uses another relay
server "relay.example.com" for sending outgoing mails to all external
domains.
Now when the primary MX for the domain "example.net" is down, mails to
this domain get delivered to "mail.example.com" (because this is listed
as secondary/backup MX for the domain). "mail.example.com" forwards this
mail to "relay.example.com", which lookups up the MX entries for
"example.net", and noticing that the primary MX for the domain is down,
delivers it again to "mail.example.com".
This loop continues until the maximum hop limit is reached.
Now if only I could only configure "mail.example.com" to not use the
relay server for relay_domains, my problem would be solved.
Could this be achieved?
Regards,
Rahul.