SMTP relay with TLS

40 views
Skip to first unread message

Konstantin Gorshkov

unread,
Jun 26, 2014, 1:38:43 PM6/26/14
to chica...@googlegroups.com
Hi all!

I have a problem when I tried to configure SMTP relay with TLS. My config is:

In the console "boss_mail:send(...)" returns: "tls_failed" , and "ssl_error=5" in SMTP server logs.

After exploring the sources of the gen_smtp module I found the actual error: ssl_not_started
So I entered "ssl:start()" in the console and then "boss_mail:send(...)" worked!

Maybe is there more elegant solution for run SSL at startup of application? Searching for "ssl:start()" give nothing helpful:

$ grep -r 'ssl:start()' .
./deps/ddb/README.md:    ssl:start().
./deps/ranch/guide/transports.md:ssl:start().
./deps/mongodb/src/mongo_connect.erl:   ssl:start(),
./deps/boss_db/src/db_adapters/boss_db_adapter_dynamodb.erl:    ssl:start(),

Thank you!

can2nac

unread,
Jun 27, 2014, 10:38:40 AM6/27/14
to chica...@googlegroups.com
PROJECT_NAME_main_init.erl

init/0

add ssl:start()

Konstantin Gorshkov

unread,
Jun 27, 2014, 1:12:07 PM6/27/14
to chica...@googlegroups.com
Thank you!

пятница, 27 июня 2014 г., 18:38:40 UTC+4 пользователь can2nac написал:
Reply all
Reply to author
Forward
0 new messages