Skip to content

SMTP authentication

Last updated on

STACKIT MailOut accepts AUTH PLAIN for authentication, exclusively via a STARTTLS-encrypted connection on ports 25 and 587 (see RFC 4616). AUTH LOGIN and other legacy mechanisms are not offered since they have not become an official standard.

Replace the placeholders with the values from your created Authorized Sender.

STACKIT MailOut uses TLS 1.3 by default for incoming and outgoing SMTP connections. As a fallback, TLS 1.2 is available.

The following table contains the supported cipher suites when connecting to the STACKIT MailOut SMTP endpoint:

The following cipher suites are supported for outgoing connections to 3rd party mailbox providers (like Google Gmail, Microsoft Outlook, United Internet, etc. pp.):

  • Never disable TLS. Sending AUTH PLAIN without STARTTLS would expose your credentials. STACKIT MailOut prevents this by allowing authentication only after STARTTLS
  • Keep certificate validation enabled and use TLS 1.3 or TLS 1.3.
  • Treat SMTP credentials as secrets — store them securely, never output them in logs or check them into source control systems like Git.
  • Use scoped, rotatable credentials where the service allows per-application credentials, so one can be revoked without affecting the others.
  • “Must issue a STARTTLS command first” / auth rejected without TLS — the client tried to authenticate before encrypting. Enable STARTTLS.
  • “Unsupported authentication mechanism” — the client is set to a mechanism the service does not offer (e.g. AUTH LOGIN, CRAM-MD5). Set the method to PLAIN, or let the library auto-negotiate over TLS.
  • “Authentication credentials invalid” — wrong username or password. Re-copy them, watch for stray spaces.
  • Connection refused or timed out — confirm you are using port 587 and that outbound SMTP is not blocked by your firewall.