Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it s on-topic for Stack Overflow.
Closed 9 years ago.
Is there a way to configure postfix to use a relay only if direct delivery is rejected? The case being a web application that has to send notification to subscribers, but some servers reject the connection. I want those cases to be retried using a paid SMTP relay like authsmtp.com. However I don t want to use the relay for everything since it costs per mail.