forwardemail / free-email-forwarding

The best free email forwarding for custom domains. Visit our website to get started (SMTP server)
https://forwardemail.net
Other
2.44k stars 182 forks source link

Feat: Don't append tag if the provider doesn't support `+` addressing #254

Closed KartikSoneji closed 2 years ago

KartikSoneji commented 2 years ago

https://github.com/forwardemail/free-email-forwarding/blob/aeb669cd60404f45667512c23cc66db25f4e2a10/index.js#L2738-L2740

Many email providers like yahoo.com don't support plus addressing. So mail to email+tag@example.com that is redirected to user+tag@yahoo.com will bounce. As a fix, we can redirect email+tag@example.com to user@yahoo.com

KartikSoneji commented 2 years ago

Can be implemented by appending a minus (-) to the domain, like forward-email=user@-rocketmail.com. As per RFC952, the first or last character cannot be -:

The first character must be an alpha character. The last character must not be a minus sign or period.