Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to "send mail as" from Gmail #2

Closed
niftylettuce opened this issue Nov 5, 2017 · 16 comments
Closed

Ability to "send mail as" from Gmail #2

niftylettuce opened this issue Nov 5, 2017 · 16 comments

Comments

@niftylettuce
Copy link
Collaborator

We'd need to enable AUTH command and add onAuth option via https://nodemailer.com/extras/smtp-server/#handling-authentication. Perhaps we only allow sending mail as from Gmail for now?

@kitlith
Copy link

kitlith commented Feb 10, 2018

for password based auth, one way would be to store the hash of the password as a TXT field on DNS. however, I don't think this is a very good idea as it could lead to offline hash attacks.

therefore, I suggest some PKI scheme (PGP?), encrypting the hash before sending it to putting it on DNS. That way, the only one that can decrypt the hash is the one running the server, and then a normal password hashing scheme can be used on top of that.

@kitlith kitlith mentioned this issue Feb 10, 2018
@mendelk
Copy link

mendelk commented Jul 18, 2018

Curious what the status on this is? This is the only thing blocking me from using this because I'd also need to send email under the address!

Thanks for the awesome work!

@matheus-rosin
Copy link

Hi! Can you give some help about just that that @mendelk had said? After correctly forwarding emails for my gmail account, when trying to send emails setting smtp configs, I am getting "550 Message failed: 550-5.7.1 Unauthenticated email from google.com is not accepted due to domain's". And I don't know how to proceed hahah
Thanks in advance!

@FGRibreau
Copy link
Contributor

@niftylettuce discovered your service today, moved 3 SaaS over it, awesome piece of work! Really.
Highly interested by this, how much would it costs for you to implement it?

@niftylettuce
Copy link
Collaborator Author

@FGRibreau I've already begun this feature along with #3 😄

@cgorlla
Copy link

cgorlla commented Aug 24, 2018

@niftylettuce, thanks, can't wait. This will be really useful for my business as I'm not really ready to get GSuite.

@FGRibreau
Copy link
Contributor

@niftylettuce any way we can help? Could you share the branch with us?

@niftylettuce
Copy link
Collaborator Author

I plan to dedicate time this weekend, wrapping up work for my company right now 👏

@niftylettuce
Copy link
Collaborator Author

@FGRibreau feel free to join in slack guys so you are first to know when its up! Join Slack Channel

@madakk
Copy link

madakk commented Oct 2, 2018

@niftylettuce using 'send mail as' from Gmail should already be possible using Gmail's own SMTP without any modifications on forwardemail's end (for example see this guide). However, this currently fails at the verification stage, as forwardemail rejects the verification email from being forwarded due to DMARC authentication. Is there no way to work around this? If it was just possible to get the verification code which currently gets blocked, this should be working fine.

@niftylettuce
Copy link
Collaborator Author

✅ support has been added and deployed, please try it out

documentation is available at https://github.com/niftylettuce/forward-email#send-mail-as-using-gmail

@theodoregold
Copy link

It works. Thank you!

@matheus-rosin
Copy link

Great, thanks! :)

@FGRibreau
Copy link
Contributor

It even works with Google Apps business account, will send a PR to the step-by-step guide 👍

@partev
Copy link
Contributor

partev commented Oct 3, 2018

Successfully went through all the steps including the verification step, while using and IDN domain. However, when sending email using this domain get the following error from Google.

Final-Recipient: rfc822; destination_address@gmail.com
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp; [209.85.220.41 11] Our system has detected that this message is not RFC 5322 compliant: 'From' header has non compliant domain name. To reduce the amount of spam sent to Gmail, this message has been blocked. Please visit https://support.google.com/mail/?p=RfcMessageNonCompliantand review RFC 5322 specifications for more information. p25-v6sor16468ejr.25 - gsmtp
Last-Attempt-Date: Tue, 02 Oct 2018 18:11:12 -0700 (PDT)

So it looks like Google's SMTP server does not support IDN domain names and there is nothing forward-email can do about it. Maybe add a sentence to the documentation mentioning that?

@niftylettuce
Copy link
Collaborator Author

This issue and all related ones should be fixed now as of today by the way everyone!

@nicholastay @mendelk @controversial @vuolter @kitlith @matheus-rosin @transf @madakk @partev

Special thanks to @FGRibreau for helping me out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants