ProblemWhen compiling sendmail to support the STARTTLS extension, "No such file or directory" errors are displayed in regard to OpenSSL files. SolutionSet the correct path values in conf_sendmail_INCDIRS and conf_sendmail_LIBDIRS to tell sendmail where the OpenSSL files are located. Add the defines to the site.config.m4 configuration file, as in this example: # cd /usr/local/src/sendmail-8.12.9/devtools/Site # cat >> site.config.m4 APPENDDEF(`conf_sendmail_INCDIRS', `-I/usr/share/ssl/include') APPENDDEF(`conf_sendmail_LIBDIRS', `-L/usr/share/ssl/lib') Ctrl-D Recompile, reinstall, and restart sendmail: # cd /usr/local/src/sendmail-8.12.9 # ./Build -c ...many lines of output deleted... # ./Build install ...many lines of output deleted... # kill -HUP `head -1 /var/run/sendmail.pid` DiscussionThe sendmail configuration assumes that OpenSSL is installed in the standard location. If it is not, "No such file or directory" errors are displayed during the sendmail build when the system attempts to use the OpenSSL files. Use APPENDDEF commands to add the correct location of the OpenSSL include file to the conf_sendmail_INCDIRS variable and the correct location of the OpenSSL library to the conf_sendmail_LIBDIRS variable. The APPENDDEF commands are added to the site.config.m4 file. After defining the correct values in site.config.m4 , recompile sendmail with the Build -c command. If the path values are correctly defined, the build should run without errors. See AlsoRecipe 1.2 to Recipe 1.6 provide additional information on compiling sendmail. In particular, Recipe 1.6 provides an example of compiling sendmail with STARTTLS support. Chapter 8 covers STARTTLS configuration. The sendmail book covers compiling sendmail in Section 2.2 and STARTTLS in Section 10.10. |