Open ericqqqqq opened 4 years ago
Hey, @oba11
I added a feature to allow TLS for a smart host, SendGrid in my case. Check here for my implementation.
My implementation works perfectly for my needs. It would be cool if we try to merge it to your master. I am here for your feedbacks.
Here are some example codes to test the feature I added.
Problem Hi, I am using
namshi/smtp
to be my smarthost SMTP relay for SendGrid. I need to enable TLS so that the SMTP replay only handles requests with certs. Therefore, I set the values forCERTIFICATE_PATH
andKEY_PATH
to enable TLS.Performed I ran the following command to initialize the container:
Then I sent a testing email with this code
Expected Result The email is supposed to be blocked because no cert is provided.
Actual Result The email is sent.
Any suggestions?