Hello
When developing my web-application which needs to send automated mails to a user when he or she for examples registers himself or buys something, I used the SmtpTransport::unencrypted_localhost();
from the lettre_email crate.
unencrypted_localhost
seemed like a very handy function to test the mail-functionality of my application on my own machine because it allowed me to send mails without setting up a mail server or configuration and I could intercept the mails using a tool like mailcatcher.me.
But now I am deploying my application step-by-step on my VPS. On my VPS I installed and configured a Postfix outgoing-mail-server. And I noticed that the function unencrypted_localhost
works perfectly in combination with Postfix to send real mails over the web! I guess because I configured Postfix to act as a loopback and to listen to localhost.
Is it safe to use Lettre_email's unencrypted_localhost
function to send mails through Postfix to my users? Or should I use something encrypted? I am asking this question because the 'unencrypted' part is worrying me.
Thanks.