준호씨의 블로그

sendmail - build with TLS support 본문

개발이야기

sendmail - build with TLS support

준호씨 2018. 1. 19. 23:19
반응형

Sometimes you will need TLS support when building sendmail and use it. Add the following lines to the m4 file.

APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS')
APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto')

If you want to build with a specific version of the openssl library, add confINCDIRS and confLIBDIRS as follows.

APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include')
APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib')

APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS')
APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto')

When you build and install openssl, the default installation path for version 1.0.x is /usr/local/ssl. Depending on the openssl version or bild options, you can add your openssl path for your environment.

References

  • sendmail 4th Edition - O'Reilly 5.3.3 Enable TLS with Build
반응형
Comments