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

Only being able to use mailgun.org without --force-ehlo #26

Open
aseques opened this issue Apr 11, 2023 · 0 comments
Open

Only being able to use mailgun.org without --force-ehlo #26

aseques opened this issue Apr 11, 2023 · 0 comments

Comments

@aseques
Copy link

aseques commented Apr 11, 2023

Hi, I am trying to use mailgun.com (they user mailgun.org for some email), and it seems that smpt-cli detects the server as SMTP only, because it's using always HELO instead of EHLO altough the server seems to be compliant

Trying to detect capabilities with telnet

$ telnet smtp.eu.mailgun.org 587
Trying 34.95.107.114...
Connected to smtp.eu.mailgun.org.
Escape character is '^]'.
220 Mailgun Influx ready
EHLO
250-4e119dd77b0c
250-AUTH PLAIN LOGIN
250-SIZE 52428800
250-8BITMIME
250-SMTPUTF8
250-PIPELINING
250 STARTTLS
./smtp-cli --server=smtp.eu.mailgun.org:587      [email protected] --pass=xxxx   --verbose  --from [email protected] --to [email protected]  --subject "Simple test with attachments"              --body-plain "Log files are attached."              --attach /tmp/file.txt
[220] 'Mailgun Influx ready'
> HELO localhost
[250] '596f9cb77e29'
> MAIL FROM:<[email protected]>
[250] 'Sender address accepted'
> RCPT TO:<[email protected]>
[550] '5.7.1 Relaying denied'
RCPT TO <[email protected]> failed: '550 5.7.1 Relaying denied'
> QUIT
[221] 'See you later. Yours truly, Mailgun'

When using perl-cli with the --force-ehlo command, the emails get send without issues,

[220] 'Mailgun Influx ready'
> EHLO localhost
[250] 'bb128a7fa2d3'
[250] 'AUTH PLAIN LOGIN'
[250] 'SIZE 52428800'
[250] '8BITMIME'
[250] 'SMTPUTF8'
[250] 'PIPELINING'
[250] 'STARTTLS'
Starting TLS...
> STARTTLS
[220] 'Go ahead'
Using cipher: TLS_AES_128_GCM_SHA256
Subject Name: /C=US/ST=Texas/L=San Antonio/O=MAILGUN TECHNOLOGIES, INC/CN=*.eu.mailgun.org
Issuer  Name: /C=US/O=DigiCert Inc/CN=DigiCert TLS RSA SHA256 2020 CA1
> EHLO localhost
[250] 'bb128a7fa2d3'
[250] 'AUTH PLAIN LOGIN'
[250] 'SIZE 52428800'
[250] '8BITMIME'
[250] 'SMTPUTF8'
[250] 'PIPELINING'
AUTH method (PLAIN LOGIN): using LOGIN
> AUTH LOGIN
....

Related issue (with another domain here)

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

1 participant