Sending via TLS to Exchange Online

Aug 5, 2020
10
0
6
124
Hi. I tried searching for information, but couldn't find anything appropriate.
Because Exchange Online limits access to its SMTP ports for general users, since we have a tenant, they allow us to send mail to them if it's protected using a certificate we have already "registered" on an incoming, receive connector in Exchange Online.

What I would like to do is use this certificate for sending mail to our tenant endpoint in Exchange Online (patterned like clientname.mail.protection.outlook.com), only. In other words using the general settings from this article: https://secopsmonkey.com/better-mail-relaying-postfix-through-office-365.html

My problem is that simply inserting the commands in main.cf.in results in a "TLS engine is unavailable" after setting things up.

Is there a way to set it up so that when mail is destined for this particular endpoint, that a particular certificate is used for TLS, and in such a way that no other connections to & from any other mail server be subjected to TLS? Any help would be really appreciated.

Thank you!
 
Thank you for the reply, Mira. However, I would like to use a particular certificate, not a self-signed certificate as the documentation reads. Do you know how I can set that up?