Skip to content

[smtp-relay] SASL authentication failure: No worthy mechs found #204

@Richie-Rogers

Description

@Richie-Rogers

Describe the bug a clear and concise description of what the bug is.

Hi,
I'm trying to relay out to an external SMTP provider (socketlabs.com)
I've configured the SMTP relay as follows:

smtp:
host: "[smtp.socketlabs.com]:587"
username: "REDACTED"
password: "REDACTED"
myhostname: "smtp.mydomain.com"
mynetworks:
- 127.0.0.0/8
- 10.0.0.0/8
- 192.168.0.0/16
tls_wrappermode: "no"
tls_security_level: "may"

When I send mail through the relay I get the following in the logs:
Jan 22 08:28:52 smtp postfix/smtp[265]: warning: SASL authentication failure: No worthy mechs found
Jan 22 08:28:52 smtp postfix/smtp[265]: 696C38C4389: to=user@my-domain.com, relay=smtp.socketlabs.com[142...]:587, delay=43, delays=42/0.04/0.64/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.socketlabs.com[142...]: no mechanism available)

According to socketlabs: https://help.socketlabs.com/docs/501-570-authentication-required-please-authenticate-with-cram-md5-or-auth-login

They support CRAM MD5 or AUTH Login.

Is there a config setting I'm missing or an auth module missing from the SMTP Relay?

Thanks,
Richie

What's your helm version?

version.BuildInfo{Version:"v3.15.4", GitCommit:"fa9efb07d9d8debbb4306d72af76a383895aa8c4", GitTreeState:"clean", GoVersion:"go1.22.6"}

What's your kubectl version?

Client Version: v1.33.0 Kustomize Version: v5.6.0 Server Version: v1.34.1

Which chart?

smtp-relay

What's the chart version?

0.6.2

What happened?

As per bug description:
Tried to send email through the SMTP Relay (using telnet commands)

What you expected to happen?

A successfully sent email

How to reproduce it?

Configure the SMTP relay (as detailed in the bug description).
Try to send an email (eg. via telnet)

Enter the changed values of values.yaml?

smtp:
host: "[smtp.socketlabs.com]:587"
username: "REDACTED"
password: "REDACTED"
myhostname: "smtp.mydomain.com"
mynetworks:
- 127.0.0.0/8
- 10.0.0.0/8
- 192.168.0.0/16
tls_wrappermode: "no"
tls_security_level: "may"

Enter the command that you execute and failing/misfunctioning.

telnet smtp 25
Trying 192.168.0.233...
Connected to smtp.
Escape character is '^]'.
220 smtp.mydomain.com ESMTP Postfix
ehlo smtp.mydomain.com
250-smtp.mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 CHUNKING
mail from: sys.admin@mydomain.com
250 2.1.0 Ok
rcpt to: user@mydomain.com
250 2.1.5 Ok
data
354 End data with .
subject: Testing SMTP Relay
Testing SMTP relay in Kubernetes
.
250 2.0.0 Ok: queued as 696C38C4389
quit
221 2.0.0 Bye
Connection closed by foreign host.

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions