[GH-ISSUE #97] [Bug] Fail to connect to mail account after changing computer's hostname #84

Closed
opened 2026-03-03 01:19:40 +03:00 by kerem · 6 comments
Owner

Originally created by @krackout on GitHub (Mar 31, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/97

Originally assigned to: @d99kris on GitHub.

I changed my computer's hostname and after that nmail opened, but could not connect. After I restored the hostname (hostname command, no reboot), closed-reopened nmail, it could connect again.

Can't tell if it's looking for runtime initial setup hostname or compile time hostname.

Originally created by @krackout on GitHub (Mar 31, 2022). Original GitHub issue: https://github.com/d99kris/nmail/issues/97 Originally assigned to: @d99kris on GitHub. I changed my computer's hostname and after that nmail opened, but could not connect. After I restored the hostname (`hostname` command, no reboot), closed-reopened nmail, it could connect again. Can't tell if it's looking for runtime initial setup hostname or compile time hostname.
kerem closed this issue 2026-03-03 01:19:40 +03:00
Author
Owner

@d99kris commented on GitHub (Mar 31, 2022):

Could you share which email service you are using? And also which OS/distro?
I'd like to try reproduce the problem.

<!-- gh-comment-id:1084506401 --> @d99kris commented on GitHub (Mar 31, 2022): Could you share which email service you are using? And also which OS/distro? I'd like to try reproduce the problem.
Author
Owner

@krackout commented on GitHub (Mar 31, 2022):

gmx.com mail provider, IMAP enabled; free service, you can give it a try.

Debian 11 Bullseye, 64bit, fully updated. Compiled and run on the same machine.

<!-- gh-comment-id:1084515007 --> @krackout commented on GitHub (Mar 31, 2022): gmx.com mail provider, IMAP enabled; free service, you can give it a try. Debian 11 Bullseye, 64bit, fully updated. Compiled and run on the same machine.
Author
Owner

@d99kris commented on GitHub (Mar 31, 2022):

Thanks 👍 Will try it out!

<!-- gh-comment-id:1084516300 --> @d99kris commented on GitHub (Mar 31, 2022): Thanks 👍 Will try it out!
Author
Owner

@d99kris commented on GitHub (Apr 3, 2022):

I'm not able to reproduce this issue. I tried Debian 11 Bullseye with gmx.com. Both IMAP login (initial connecting) and SMTP login (sending emails) are working fine after renaming hostname - both temporarily using hostname or permanently editing /etc/hostname.

If you encounter this again, perhaps you can capture the log ~/.nmail/log.txt and share it with me - you can send privately to d99kris at gmail dot com. Ideally running nmail with --verbose flag, but a regular log may be useful as well.

Hostname shouldn't really affect anything important in nmail. The hostname is only used as part of Message-Id and in SMTP authentication, but I don't see how different hostname would cause any issues - unless it contains some type of special character perhaps.

<!-- gh-comment-id:1086847497 --> @d99kris commented on GitHub (Apr 3, 2022): I'm not able to reproduce this issue. I tried `Debian 11 Bullseye` with `gmx.com`. Both IMAP login (initial connecting) and SMTP login (sending emails) are working fine after renaming hostname - both temporarily using `hostname` or permanently editing `/etc/hostname`. If you encounter this again, perhaps you can capture the log `~/.nmail/log.txt` and share it with me - you can send privately to `d99kris at gmail dot com`. Ideally running nmail with `--verbose` flag, but a regular log may be useful as well. Hostname shouldn't really affect anything important in `nmail`. The hostname is only used as part of `Message-Id` and in SMTP authentication, but I don't see how different hostname would cause any issues - unless it contains some type of special character perhaps.
Author
Owner

@krackout commented on GitHub (Apr 3, 2022):

I tried again just now, no such problem occurred. I really double checked it when it occurred, to be certain that there was such an issue. Sorry for the fuss, feeling a bit embarrassed I'm closing the issue.

<!-- gh-comment-id:1086853235 --> @krackout commented on GitHub (Apr 3, 2022): I tried again just now, no such problem occurred. I really double checked it when it occurred, to be certain that there was such an issue. Sorry for the fuss, feeling a bit embarrassed I'm closing the issue.
Author
Owner

@d99kris commented on GitHub (Apr 3, 2022):

No worries, it could very well be an actual bug with some random intermittent behavior. But yeah if not seen now, let's close it for now and re-open if it re-appears.

<!-- gh-comment-id:1086853649 --> @d99kris commented on GitHub (Apr 3, 2022): No worries, it could very well be an actual bug with some random intermittent behavior. But yeah if not seen now, let's close it for now and re-open if it re-appears.
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/nmail#84
No description provided.