[GH-ISSUE #305] [Docs] Add telnet example #202

Closed
opened 2026-03-15 13:10:23 +03:00 by kerem · 2 comments
Owner

Originally created by @gruz on GitHub (May 30, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/305

I cannot find where to propose changes for this page:
https://mailpit.axllent.org/docs/install/testing/

So I write here.

sendmail -t -S localhost:1025 < email.txt give an error

sendmail: invalid option -- 'S'

A one-liner for testing:

{
  echo "EHLO localhost"
  sleep 1
  echo "MAIL FROM: <your_email@example.com>"
  sleep 1
  echo "RCPT TO: <recipient@example.com>"
  sleep 1
  echo "DATA"
  sleep 1
  echo "From: <your_email@example.com>"
  echo "To: <recipient@example.com>"
  echo "Subject: Your Subject"
  echo ""
  echo "Your message body"
  echo "."
  sleep 1
  echo "QUIT"
} | telnet localhost 1025
Originally created by @gruz on GitHub (May 30, 2024). Original GitHub issue: https://github.com/axllent/mailpit/issues/305 I cannot find where to propose changes for this page: https://mailpit.axllent.org/docs/install/testing/ So I write here. `sendmail -t -S localhost:1025 < email.txt` give an error ``` sendmail: invalid option -- 'S' ``` A one-liner for testing: ``` { echo "EHLO localhost" sleep 1 echo "MAIL FROM: <your_email@example.com>" sleep 1 echo "RCPT TO: <recipient@example.com>" sleep 1 echo "DATA" sleep 1 echo "From: <your_email@example.com>" echo "To: <recipient@example.com>" echo "Subject: Your Subject" echo "" echo "Your message body" echo "." sleep 1 echo "QUIT" } | telnet localhost 1025 ```
kerem closed this issue 2026-03-15 13:10:28 +03:00
Author
Owner

@axllent commented on GitHub (May 30, 2024):

Your sendmail implementation obviously does not support setting the SMTP server, however your suggested approach should work on unix-like systems (though probably not on Windows). I will add this to the docs, thanks.

<!-- gh-comment-id:2140771156 --> @axllent commented on GitHub (May 30, 2024): Your sendmail implementation obviously does not support setting the SMTP server, however your suggested approach should work on unix-like systems (though probably not on Windows). I will add this to the docs, thanks.
Author
Owner

@axllent commented on GitHub (May 31, 2024):

I've added this testing method to https://mailpit.axllent.org/docs/install/testing/#test-using-telnet (I removed the sleep 1 lines as it appears to work perfectly fine without). Thanks.

<!-- gh-comment-id:2141233257 --> @axllent commented on GitHub (May 31, 2024): I've added this testing method to https://mailpit.axllent.org/docs/install/testing/#test-using-telnet (I removed the `sleep 1` lines as it appears to work perfectly fine without). Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#202
No description provided.