Guerrilla-SMTPd icon indicating copy to clipboard operation
Guerrilla-SMTPd copied to clipboard

add TLS support

Open flashmob opened this issue 14 years ago • 3 comments

SMTP has STARTTLS extension

example from https://bugs.php.net/bug.php?id=36445

(Note, for non-blocking, it may return 0. keep on calling until a result is true or false)

!/usr/bin/php5

flashmob avatar Apr 23 '12 04:04 flashmob

Bummer, it seems like libevent and stream_socket_enable_crypto() don't play well together on PHP right now. One has to set the stream to non-blocking before stream_socket_enable_crypto(), however if we block the stream then we block the whole server. This means STARTTLS cannot be implemented (coming to this conclusion after much research). It looks like this is so much PHP can do right now.

Currently re-writing the server to Go.

flashmob avatar Nov 04 '12 01:11 flashmob

a multi-threaded approach, using 1 thread per SSL client with blocking code should work (using PECL pthreads )

divinity76 avatar Apr 20 '16 17:04 divinity76

Currently updating code to reflect the new starttls system implemented on 12/1/2016 Will be updating the branch with new code in the next few days/weeks after testing

TwixtedChaox avatar Dec 06 '16 01:12 TwixtedChaox