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

Support (or allow) HELP command implementation #264

Open
jackmahoney opened this issue May 5, 2024 · 1 comment
Open

Support (or allow) HELP command implementation #264

jackmahoney opened this issue May 5, 2024 · 1 comment

Comments

@jackmahoney
Copy link

Currently conn.go does not support HELP SMTP command and throws a 502.

This presents a problem because many clients, like curl, request HELP upon connection.

curl -v "smtp://$SMTP_SERVER_HOST:$SMTP_SERVER_PORT"
*   Trying 34.212.234.28:2525...
* Connected to redacted (REDACTED) port 2525
< 220 redacted ESMTP Service Ready
> EHLO Jacks-MBP-3
< 250-Hello Jacks-MBP-3
< 250-PIPELINING
< 250-8BITMIME
< 250-ENHANCEDSTATUSCODES
< 250-CHUNKING
< 250-STARTTLS
< 250-AUTH PLAIN
< 250 SIZE 104857600
> HELP
< 502 5.5.1 HELP command not implemented
* Command failed: 502
> QUIT
< 221 2.0.0 Bye
* Closing connection
curl: (8) Command failed: 502

Do you have any plans to implement or allow implementation (by interface extension) of basic HELP response? I really admire and appreciate your work. Happy to add PR if this is acceptable.

@emersion
Copy link
Owner

emersion commented May 7, 2024

Yeah, PRs welcome! What do typical servers send back as help message?

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

No branches or pull requests

2 participants