BarracudaSMTP - smtp server example (C++)
Ssl Smtp Server with c++ openssl sockets and STARTTLS
Install
apt-get install openssl libssl-dev g++
Compile
g++ -o BarsacudaSMTP main.cpp starttls.cpp starttls.h -lssl -lcrypto -L. -I.
Create TLS certs (very simple):
Add certificate to main folder
(create .pem - copy all certs,keys,ca_bundle to one file)
certificate.pem, private.key - without password
Send email test
openssl s_client -connect localhost:25 -starttls smtp