Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have setup sendmail to relay mail from the local server destined for external email addresses to use a SMART HOST. I have set this up many times on other systems with no problems. All use the same version of sendmail 8.14.4. I have set up configurations with and without authentication using access when needed. This server was working until we switch the SMART HOST over to smtp.office365.com which requires TLS
How do I setup sendmail to use TLS when talking to the relay server?
How can I debug/trace the communication between sendmail and the replay server.
I have setup the certificates for TLS as per the documentation in sendmail.mc
dnl # Rudimentary information on creating certificates for sendmail TLS:
dnl # cd /etc/pki/tls/certs; make sendmail.pem
dnl # Complete usage:
dnl # make -C /etc/pki/tls/certs usage
dnl #
define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl
dnl #
I have feeling this only configures TLS for incoming connections to the server, and not out going connections to the relay server from sendmail. Perhaps I need to set something up in submit.mc
This is the error I get in the bounce back email:
(reason: 530 5.7.57 Client not authenticated to send mail. [MW2PR16CA0045.namprd16.prod.outlook.com])
I believe the client is not authenticated because it is not using TLS.
You don't say if your domain on O365 has SMTP AUTH disabled (I'm guessing that's it's enabled as default)
If SMTP AUTH is enabled then you need both TLS and SMTP AUTH configured on your relaying host.
It's also likely that you'll only be able to configure auth settings for a single mailbox in sendmail, so all the mail will appear to be coming from that O365 account.
I don't have access to the O365 setup. I am guessing it is enabled, because TLS is required by the other client I am using, and it has no problems. That is why I am wanting to configure sendmail to use TLS when it is acting as a client in relay mode.
Make use of this site: https://www.appmaildev.com/en/dkim (yes, it's their DKIM checker but it will also tell you if the mail was sent with SSL/TLS or unencrypted.
I solved the problem. I had two issues. First my access file had an extra period at the end of the server name in the AuthInfo line, so it wasn't using the username/password at all.
After fixing that it complained about Mechanisms not being sufficient, so I followed the instructions in sendmail.mc to enable saslauthd, and uncomment the 2 lines for mechanisms.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.