Skip to content

(Re)Enable SMTP #314

@Timusan

Description

@Timusan

Is your feature request related to a problem? Please describe

The configuration docs mention SMTP email support. Configuring these variables has no effect. Sending email outputs the following in the Monoscope logs:

Background job failed {
  "data": "HttpExceptionRequest Request {\n  host                 = \"api.postmarkapp.com\"\n  port                 = 443\n  secure               = True\n  requestHeaders       = [(\"X-Postmark-Server-Token\",\"\"),(\"Accept\",\"application/json\"),(\"Content-Type\",\"application/json\"),(\"User-Agent\",\"haskell wreq-0.5.4.3\")]\n  path                 = \"/email/withTemplate\"\n  queryString          = \"\"\n  method               = \"POST\"\n  proxy                = Nothing\n  rawBody              = False\n  redirectCount        = 10\n  responseTimeout      = ResponseTimeoutDefault\n  requestVersion       = HTTP/1.1\n  proxySecureMode      = ProxySecureWithConnect\n}\n (StatusCodeException (Response {responseStatus = Status {statusCode = 422, statusMessage = \"Unprocessable Entity\"}, responseVersion = HTTP/1.1, responseHeaders = [(\"Date\",\"Fri, 13 Feb 2026 06:40:08 GMT\"),(\"Content-Type\",\"application/json; charset=utf-8\"),(\"Transfer-Encoding\",\"chunked\"),(\"Connection\",\"keep-alive\"),(\"X-RateLimit-Remaining-Second\",\"4999\"),(\"X-RateLimit-Limit-Second\",\"5000\"),(\"RateLimit-Limit\",\"5000\"),(\"RateLimit-Remaining\",\"4999\"),(\"RateLimit-Reset\",\"1\"),(\"Content-Encoding\",\"gzip\"),(\"Vary\",\"Accept-Encoding\"),(\"X-Postmark-Account\",\"107535\"),(\"X-Postmark-Server\",\"1797631\"),(\"vary\",\"Origin\"),(\"Strict-Transport-Security\",\"max-age=16000000;\")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose, responseOriginalRequest = Request {\n  host                 = \"api.postmarkapp.com\"\n  port                 = 443\n  secure               = True\n  requestHeaders       = [(\"X-Postmark-Server-Token\",\"\"),(\"Accept\",\"application/json\"),(\"Content-Type\",\"application/json\"),(\"User-Agent\",\"haskell wreq-0.5.4.3\")]\n  path                 = \"/email/withTemplate\"\n  queryString          = \"\"\n  method               = \"POST\"\n  proxy                = Nothing\n  rawBody              = False\n  redirectCount        = 10\n  responseTimeout      = ResponseTimeoutDefault\n  requestVersion       = HTTP/1.1\n  proxySecureMode      = ProxySecureWithConnect\n}\n, responseEarlyHints = []}) \"{\\\"ErrorCode\\\":1101,\\\"Message\\\":\\\"The Template's 'Alias' associated with this request is not valid or was not found.\\\"}\")",
  "span_id": "adaf13a06b26338a",
  "trace_id": "dfb704b01ef0e998890ac3383bf979db"
}

Describe the solution you'd like

I briefly discussed this with @tonyalaribe on Discord. SMTP was removed some time ago and only Postmark was kept as this is the most user-friendly, straightforward email setup. Although very much true, adding back generic SMTP would mitigate possible Postmark vendor lock-in and allow more tech-savvy users to enable any desired email relay.

Describe alternatives you've considered

No response

Are you able to assist to bring the feature to reality?

no

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions