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

Enable customization of localName for clients #127

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jexh
Copy link

@jexh jexh commented Sep 25, 2020

This change enables custom LocalName entries to be specified for sending emails.

The motive is that smtp-relay.gmail.com heavily throttles the number of emails that are accepted with a LocalName of "localhost". To get past the ehlo step in this case the connection must specify another LocalName.

The smtp library has "localhost" hardcoded, so this change also changes the Send(...) implementation to inline the smtp.SendMail(...) call, modifying the Hello step.

jexh and others added 2 commits September 25, 2020 13:35
This change enables custom LocalName entries to be specified for all
mails to be sent.

The motive is that smtp-relay.gmail.com heavily throttles the number of emails
that are accepted with a localName of "localhost". To get past the ehlo step in
this case the connection must specify another localName. The smtp library has
"localhost" hardcoded, so this change also inlines the default Send(...)
implementation.
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

Successfully merging this pull request may close these issues.

1 participant