[PR #291] [MERGED] Client certificate for relay connections #286

Closed
opened 2026-02-26 18:34:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/decke/smtprelay/pull/291
Author: @Bert-Proesmans
Created: 12/14/2025
Status: Merged
Merged: 1/14/2026
Merged by: @decke

Base: masterHead: relay-cert


📝 Commits (1)

  • 0abc105 Client certificate for relay

📊 Changes

4 files changed (+79 additions, -7 deletions)

View changed files

📝 config.go (+44 -0)
📝 remotes.go (+9 -7)
📝 smtp.go (+16 -0)
📝 smtprelay.ini (+10 -0)

📄 Description

  • Add options remote_certificate and remote_key to config
  • Verify values are paths and readable
  • Construct required certificate on-demand before connecting upstream (during mail relay)

This code has been end-to-end tested with an Exchange SMTP relay setup and works.

Fixes #185


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/decke/smtprelay/pull/291 **Author:** [@Bert-Proesmans](https://github.com/Bert-Proesmans) **Created:** 12/14/2025 **Status:** ✅ Merged **Merged:** 1/14/2026 **Merged by:** [@decke](https://github.com/decke) **Base:** `master` ← **Head:** `relay-cert` --- ### 📝 Commits (1) - [`0abc105`](https://github.com/decke/smtprelay/commit/0abc105b5e72cab57f11eaef9d9ca904c33492b8) Client certificate for relay ### 📊 Changes **4 files changed** (+79 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `config.go` (+44 -0) 📝 `remotes.go` (+9 -7) 📝 `smtp.go` (+16 -0) 📝 `smtprelay.ini` (+10 -0) </details> ### 📄 Description - Add options remote_certificate and remote_key to config - Verify values are paths and readable - Construct required certificate on-demand before connecting upstream (during mail relay) This code has been end-to-end tested with an Exchange SMTP relay setup and works. Fixes #185 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 18:34:06 +03:00
Sign in to join this conversation.
No labels
bug
pull-request
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/smtprelay#286
No description provided.