Victor Duchovni writes:
This would be wrong. The "ssmtp" service, if it existed, is generally for submission, not inbound MX delivery, and almost always requires authentication, which you will not be able to provide. You would get random rejection of your email if you guess random ports on the peer system to deliver to.
Then let me rephrase my question: is there a way to configure postfix, within a single instance, to try delivery on port 25, and to retry delivery on another port if that fails? I'm not guessing random ports here, I just want delivery to be retried via another way if normal smtp delivery fails. It doesn't really matter to me whether that is via smtp on a non-standard port or via smtp with TLS/SS.
The right answer is to negotiate the right port with each downstream client, and use a transport table.
That is true, yes. I know it can be done this way, but what I am looking for is a generic solution that tries delivery on port 25 first, and on port n next. The goal is to prevent the requirement of configuring each client separately.
Regards, roel