muquit / mailsend-go

mailsend-go is a multi-platform command line tool to send mail via SMTP protocol
Other
168 stars 16 forks source link

How to use change authentication method? #8

Open effemmeffe opened 5 years ago

effemmeffe commented 5 years ago

The smtp I'm using in Thunderbird requires me to setup Port to 465, Connection security to SSL//TLS and Authentication method to Normal password. How do I mimic this with mailsend-go?

muquit commented 5 years ago

The port 465 is usually used for SSL, so the auth command will be:

-smtp smtp_server -port 465 -ssl auth -user <user> -pass <pass>

Auth mechanism will be automatically picked from server's supported list.

The port 587 is usually used for StartTLS, and there will be no -ssl flag. Thanks.

Bilbo47 commented 3 years ago

StartTLS is default when -ssl is not specified. How to ensure StartTLS is NOT used, say on port 26? Log is: