{"id":509,"date":"2013-08-30T14:53:11","date_gmt":"2013-08-30T12:53:11","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=509"},"modified":"2013-08-30T14:53:11","modified_gmt":"2013-08-30T12:53:11","slug":"sendmail-running-smtp-with-tls","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=509","title":{"rendered":"Sendmail: Running SMTP With TLS"},"content":{"rendered":"<p>\n\tIf you want to run your sendmail config with TLS enabled, here are some configration options you can add to your sendmail.mc file:\n<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width: 100%;\">\n<tbody>\n<tr>\n<td>\n\t\t\t\t<em>Option<\/em>\n\t\t\t<\/td>\n<td>\n\t\t\t\t<em>Description<\/em>\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confCACERT&#39;,&nbsp;`path\/to\/file.ca&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tset the CA file\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confCACERT_PATH&#39;,&nbsp;`path\/to\/certs&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tpath to the certificate folder\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confCLIENT_CERT&#39;,&nbsp;`path\/to\/file.crt&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tset the certificate used when sendmail connects to another host\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confCLIENT_KEY&#39;,&nbsp;`path\/to\/file.key&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tset the certificate key file used when sendmail connects to another host\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confSERVER_CERT&#39;,&nbsp;`path\/to\/file.crt&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tset the certificate used when someone connects to sendmail\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confSERVER_KEY&#39;,&nbsp;`path\/to\/file.key&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tset the certificate key file used when someone connects to sendmail\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confCRL&#39;,&nbsp;`path\/to\/file.crl&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tset file containing Cerificate Revocation List\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confTO_STARTTLS&#39;,&nbsp;`1h&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tset the time out for the STARTTLS command (default: 1h)\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confDH_PARAMETERS&#39;,&nbsp;`path\/to\/file.dh&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tset the file containing Diffie-Hellmann (DH) parameters\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tdefine(`confTLS_SVR_OPTIONS&#39;,&nbsp;`V&#39;)\n\t\t\t<\/td>\n<td style=\"text-align: left; vertical-align: top;\">\n\t\t\t\tset TLS options (argument V disables certificate verification)\n\t\t\t<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\tif all parameters you want have been added, simple recompile the sendmail.cf with following command:<br \/>\n\t<em style=\"line-height: 1.6em;\"># m4 sendmail.mc &gt; sendmail.cf<\/em>\n<\/p>\n<p>\n\tand restart your sendmail service.\n<\/p>\n<p>\n\t<strong>Note on GMX and WEB.DE servers:<br \/>\n\tthe DH parameter is needed if these clients refuse to connect an deliver email or see similar errors in your log:<\/strong>\n<\/p>\n<p>\n\tSTARTTLS=server, error: accept failed=0, SSL_error=1, errno=0, retry=-1\n<\/p>\n<p>\n\t<span style=\"line-height: 1.6em;\">STARTTLS=server: 11964:error:1409442F:SSL routines:SSL3_READ_BYTES:tlsv1 alert insufficient&nbsp;security:s3_pkt.c:1092:SSL alert number 71<\/span>\n<\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to run your sendmail config with TLS enabled, here are some configration options you can add to your sendmail.mc file: Option Description define(`confCACERT&#39;,&nbsp;`path\/to\/file.ca&#39;) set the CA file define(`confCACERT_PATH&#39;,&nbsp;`path\/to\/certs&#39;) path to the certificate folder define(`confCLIENT_CERT&#39;,&nbsp;`path\/to\/file.crt&#39;) set the certificate used when sendmail connects to another host define(`confCLIENT_KEY&#39;,&nbsp;`path\/to\/file.key&#39;) set the certificate key file used when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-509","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=509"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/509\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}