Skip to content

Test outbound port 25 from the server in just check - #39

Open
byjpr wants to merge 2 commits into
claude/admiring-planck-25cvzffrom
claude/fix-15-outbound-check
Open

byjpr wants to merge 2 commits into
claude/admiring-planck-25cvzffrom
claude/fix-15-outbound-check

Conversation

@byjpr

@byjpr byjpr commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Closes #15

Changes

just check now logs into the installed server and connects to Gmail's MX (gmail-smtp-in.l.google.com) on port 25, over IPv4 and, if the server has an IPv6 default route, over IPv6. It reports:

  • open: Gmail sent its 220 banner;
  • BLOCKED: ask the provider to open the port, or set relay.enable. With relay.enable set, a block is reported as expected rather than as a failure;
  • nothing to test over IPv6 on IPv4-only servers (Serverspace).

This catches netcup's "Mail block", UpCloud's or Serverspace's port 25 block, and an OVH anti-spam block right after install, instead of when mail silently stops arriving. The ongoing hourly version of this check is part of #7 / #31.

Testing

  • I ran the exact remote snippet in this sandbox, which blocks outbound port 25. It printed 4 fail 74.125.69.27, which just check reports as BLOCKED.
  • I fed the parsing loop sample results for open, blocked, IPv4-only and ssh failure; each produced the right message.
  • All 5 provider example systems build. nixfmt, shellcheck and tofu validate pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B


Generated by Claude Code

claude added 2 commits October 9, 2026 19:48
just check now connects from the server to Gmail's MX on port 25 over
IPv4 and (if the server has an IPv6 route) IPv6, and reports open (220
banner) or BLOCKED, so a provider block (netcup Mail block, UpCloud,
Serverspace, OVH anti-spam) is caught right after install instead of when
mail goes missing. With relay.enable set, a block is reported as expected.

Closes #15

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
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

Successfully merging this pull request may close these issues.

[Medium] Nothing verifies that outbound port 25 actually works

2 participants