mailcatcher icon indicating copy to clipboard operation
mailcatcher copied to clipboard

optional STARTTLS support

Open akostadinov opened this issue 2 years ago • 5 comments

fixes #142

You can test by:

openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" -keyout certs/localhost.key -out certs/localhost.cert

bundle exec mailcatcher --smtp-starttls --smtp-private-key certs/localhost.key --smtp-cert certs/localhost.cert

openssl s_client -starttls smtp -connect localhost:1025

AUTH PLAIN XDB0ZXN0X3VzZXJAd29zaHViLmNvbVwwKW5n

Auth is just a bonus tip actually. By default eventmachine smtpserver accepts any username/password pair in PLAIN auth.

akostadinov avatar Jan 04 '22 22:01 akostadinov

@akostadinov Thanks for your efforts here!

Is there a Docker image anywhere I could try? I'm curious to try this out but don't have Ruby on this machine at the moment.

onpaws avatar May 04 '22 11:05 onpaws

I don't have. You need to either install ruby or enter a shell of a suitable existing container image.

akostadinov avatar May 04 '22 11:05 akostadinov

Please merge this, thank you.

daniloargentiero avatar Jun 09 '22 10:06 daniloargentiero

@akostadinov I think this PR has a higher chance to be merged, when documentation is added. Do you mind adding the new options to the README.md?

robbl-as avatar Jul 21 '22 12:07 robbl-as

@robbl-as , I don't really have time and I'm not very good at writing docs so it costs me a lot of stress. If you like, you can submit a PR against my branch and I will merge it. Or paste a patch as a comment.

akostadinov avatar Jul 22 '22 06:07 akostadinov