Need a little help configuring sendmail.cf for TLS
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Need a little help configuring sendmail.cf for TLS
Hi. I'm running sendmail 8.13 on CentOS 4.3. I've found these instructions on a website to configure TLS:
6. Edit /etc/mail/sendmail.cf and add these lines. You should find commented-out versions of these settings in the file, maybe about a third of the way through it.
O CACertPath=/etc/mail/cert
O CACertFile=/etc/mail/cert/server.crt
O ServerCertFile=/etc/mail/cert/server.crt
O ServerKeyFile=/etc/mail/cert/server.key.open
O ClientKeyFile=/etc/mail/cert/server.crt
I followed a different guide to generate a cert request and what I've got are: mykey.pem (the private key),server.crt and ca.cer (both from geotrust)
So, should my config be: CACertPath=/etc/mail/cert
CACertFile=/etc/mail/cert/ca.cer
ServerCertFile=/etc/mail/cert/server.crt
ServerKeyFile=/etc/mail/cert/mykey.pem
ClientKeyFile=/etc/mail/cert/server.crt
Is this right? Sorry, I'm from a windows background, so can't shake the idea that file extensions are important.
The CA cert is Base-64. Should I use the DER encoded instead?
File extensions are meaningless (they are in windows too, they just set a default action typically.)
Optimally you're going to define cacert_path, cacert_file, server_cert, server_key, client_cert, client_key... extension doesn't matter (so long as things are cased right)
So, does that mean my (proposed) config is right? I just want to make sure, cos I've screwed up sendmail before and caused 2 hours of downtime! Hope you don't mind me being slightly paranoid.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.