Skip to content

question: is Fastmail compatible with caddy-security's messaging? #421

@tonytamps

Description

@tonytamps

Hi, I am trying to setup user registration using Fastmail as the messaging provider for a local identity store.

My messaging config looks like this -

security {
    credentials fastmail-smtp-credentials {
        username {env.SMTP_USERNAME}
        password {env.SMTP_PASSWORD}
    }

    messaging email provider fastmail-smtp-server {
        address smtp.fastmail.com:465
        protocol smtp
        sender me@example.com "Example"
        credentials fastmail-smtp-credentials
    }
    # ...snip...
}

Which matches Fastmail's docs - https://www.fastmail.help/hc/en-us/articles/1500000279921-IMAP-POP-and-SMTP#01H8Q4KWEZ2JK8YS0FP85FM0H7

but when I register a user I get the following messages -

{
  "level": "debug",
  "ts": 1754185964.7924397,
  "logger": "security",
  "msg": "Created registration cache entry",
  "session_id": "a4OaSkM7bS4kz8IC11EGb6TGAjGOsSnCeUzR4XT5R3",
  "request_id": "1c1ebf45-184b-4869-a998-02fb0a6f422f",
  "registration_id": "N6i9AoQP9mtT85aSed5HktA17qZXcSWUhA8lUOIezw7yLgJM9wp5mCibHf4fQ6KlVWjNL8UJ1oIhYXlJovTRh1APQpZzp"
}
{
  "level": "warn",
  "ts": 1754186024.8779721,
  "logger": "security",
  "msg": "Failed to send notification",
  "session_id": "a4OaSkM7bS4kz8IC11EGb6TGAjGOsSnCeUzR4XT5R3",
  "request_id": "1c1ebf45-184b-4869-a998-02fb0a6f422f",
  "registration_id": "N6i9AoQP9mtT85aSed5HktA17qZXcSWUhA8lUOIezw7yLgJM9wp5mCibHf4fQ6KlVWjNL8UJ1oIhYXlJovTRh1APQpZzp",
  "registration_type": "registration_confirmation",
  "error": "notification request via \"fastmail-smtp-server\" email provider failed: messaging provider does not support AUTH extension"
}

This prevents me from registering new users and managing existing ones. I can't find much information regarding messaging configuration and haven't dug into the underlying code yet, but before I do I wanted to ask if you can see any reason Fastmail wouldn't be compatible with your package?

Let me know if you could use any further information.

Thanks

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions