| Ticket UUID: | 1843712 | |||
| Title: | Option to set client address | |||
| Type: | RFE | Version: | None | |
| Submitter: | nobody | Created on: | 2007-12-03 22:57:07 | |
| Subsystem: | smtp | Assigned To: | mrose | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2026-11-21 08:53:31 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-11-21 08:53:30 | |||
| Description: |
The EHLO client address comes from [info hostname] or is set to localhost if sending email to the localhost server but this is not sufficient. For example I want to send an email from my desktop system using my ISP's mail server and it requires that the EHLO client is a FQDN but my system is setup with a simple hostname of "deth". Because of this, sending emails fails yet I can send an email just fine from Thunderbird. In looking at the conversation between Thunderbird and my mail server, I see that Thunderbird is sending "EHLO 127.0.0.1" so I would like the option to do this as well so that I can send emails properly from my software.
The changes for this are just to allow a -client option to the ::stmp::sendmessage proc and add code in the initialize variables area (right by where username is set to {}) like this:
set client {}
Then in the option parsing add this:
-client { set client $value }
And then change the code to get the client like this:
if { $client == "" } {
if { [string compare $server localhost] } {
set client localhost
} else {
set client [info hostname]
}
}
Thats it! Now I can specify "-client 127.0.0.1" and sending the email works properly.
This is from [email protected]
| |||
| User Comments: |
serhiy.storchaka added on 2026-11-21 08:53:31:
Done in [1e5f3a65d1] (Tcllib 1.10): smtp::sendmessage -client sets the HELO/EHLO name. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki