gene-hightower / BarracudaSMTP

Ssl Smtp Server with c++ openssl sockets and STARTTLS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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):


https://www.sslforfree.com/

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

About

Ssl Smtp Server with c++ openssl sockets and STARTTLS


Languages

Language:C++ 71.1%Language:C 28.9%