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

very basis telnet commands for SMTP fail. it used to work a few weeks ago #449

Open
natasha1234567890 opened this issue Jul 1, 2023 · 4 comments

Comments

@natasha1234567890
Copy link

~/mailhog$ telnet localhost 1025
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mailhog.example ESMTP MailHog
ehlo ss.com
250-Hello ss.com
250-PIPELINING
250 AUTH PLAIN
mail from: [email protected]
550 Invalid syntax in MAIL command
rcpt to: [email protected]
500 Unrecognised command
data
500 Unrecognised command
.
500 Unrecognised command
quit
221 Bye
Connection closed by foreign host.

@DBX12
Copy link

DBX12 commented Jul 20, 2023

I guess it is due to your MAIL FROM: [email protected] being invalid. If I remember correctly (and that is to be doubted since the spec for mail addresses is one historically grown dumpster fire), you cannot have a host part of .com only. I guess MAIL FROM: ff@com could be valid, at least in lab settings.

@natasha1234567890
Copy link
Author

natasha1234567890 commented Jul 20, 2023

NO option for email domain works (tried ff.com, com, ff):

u:~$ telnet localhost 35
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mailhog.example ESMTP MailHog
ehlo ff.com
250-Hello ff.com
250-PIPELINING
250 AUTH PLAIN
mail from: [email protected]
550 Invalid syntax in MAIL command
mail from: dd@ff
550 Invalid syntax in MAIL command
mail from: dd@com
550 Invalid syntax in MAIL command

@twisted1919
Copy link

 telnet localhost 1025
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 mailhog.example ESMTP MailHog
ehlo ss.com
250-Hello ss.com
250-PIPELINING
250 AUTH PLAIN
mail from: [email protected]
550 Invalid syntax in MAIL command
mail from: <[email protected]>
250 Sender [email protected] ok

@here
Copy link

here commented Nov 17, 2023

Observed while following this article on smtp over telnet https://www.redhat.com/sysadmin/telnet-troubleshoot-mail-system

The workaround described by twisted1919 works for me by adding <> surrounding the email address.

mail from: [email protected]
550 Invalid syntax in MAIL command
mail from: <[email protected]>
250 Sender [email protected] ok

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

4 participants