node-sendmail icon indicating copy to clipboard operation
node-sendmail copied to clipboard

Email encryption

Open alvaro893 opened this issue 5 years ago • 9 comments

Currently I am using sendmail to verify users in my app (hosted in azure), it works but some don't receive at all, I guess their emails are considering this as spam.

I have noticed that when receiving these emails in my gmail account reports they are not encrypted. Is there a way to make them encrypted? email-verification

alvaro893 avatar Jan 17 '20 10:01 alvaro893

I made a library myself, it supports start tls, you can try it: fannst-nodemailer

skywa04885 avatar Jan 17 '20 10:01 skywa04885

Thanks I'll check it out. Do you now if having emails encrypted with you library would be enough for them not to be labeled as spam?

alvaro893 avatar Jan 19 '20 18:01 alvaro893

You need to combine it with SPF record, then it will most likely not end in spam

skywa04885 avatar Jan 19 '20 18:01 skywa04885

@skywa04885 some content in your package is not appropriate (the interval function). otherwise good job but it lacks documentation. @alvaro893 the client in this package performs a TLS upgrade so it's strange you see this... if you want it not to be spam 100%, use a relay like https://app.smtp2go.com they have domain verification also unlike sendgrid which doesn't do it on free plan.

zavr-1 avatar Jan 22 '20 10:01 zavr-1

This service is great to check if your email content will be considered as spam or not https://www.mail-tester.com/

It is not perfect as some servers (as Yahoo) does not rely only on email content but also on Yahoo users' past complaints

micktaiwan avatar Jan 22 '20 11:01 micktaiwan

@zavr-1 This issue is the same as the one I did: https://github.com/guileen/node-sendmail/issues/75 and I assure you that TLS is not implemented.

micktaiwan avatar Jan 22 '20 11:01 micktaiwan

@micktaiwan @zavr-1 @skywa04885 @alvaro893 Could you test this pull? It might be the solution https://github.com/guileen/node-sendmail/pull/80 . It worked for me

Thank you

markgrin avatar Aug 30 '20 15:08 markgrin

From RFC 3207

  • A publicly-referenced SMTP server would probably want to accept any verifiable certificate from an SMTP client, and would possibly want to put distinguishing information about the certificate in the Received header of messages that were relayed or submitted from the client.

markgrin avatar Aug 30 '20 15:08 markgrin

Hello, I see the repo has TLS upgrade present, but the NPM repo does not. Is the current master version stable? why it is not in sync with NPM?

svaraborut avatar Nov 28 '20 17:11 svaraborut