Skip to content

[BUG] Cannot send mail via relayhost #1973

@HaldiH

Description

@HaldiH

Bug Report

Context

When I try to send a mail using a relay smtp server (I'm using Mailjet, but I tried with Gmail), I got an SASL authentication failure: No worthy mechs found:

May 16 18:55:13 mail postfix/smtp[2648]: warning: SASL authentication failure: No worthy mechs found
May 16 18:55:13 mail postfix/smtp[2648]: B34B387A85506: to=<[email protected]>, relay=in-v3.mailjet.com[104.199.96.85]:587, delay=0.57, delays=0.07/0.06/0.45/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server in-v3.mailjet.com[104.199.96.85]: no mechanism available)

Where [email protected]is the recipient email.

I'm running docker-mailserver under armv7, and is seems that it is working fine when I'm using x86 host.

What is affected by this bug?

I can't send mail at all because my ISP is blocking port 25, so I need to use mail relay.

When does this occur?

It occur every time I try to send a mail using a relay host using the armv7 docker image.

How do we replicate the issue?

  1. Pull an armv7 image and use qemu if you're not running on a armv7 host
  2. Fill environment variables with relay host parameters
  3. Add a user account
  4. Create a container with docker-compose
  5. Send a mail with the registered user account

Behavior

Actual Behavior

Defer the email transmission throwing the following error:

May 16 18:55:13 mail postfix/smtp[2648]: Anonymous TLS connection established to in-v3.mailjet.com[104.199.96.85]:587: TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)
May 16 18:55:13 mail postfix/smtp[2648]: warning: SASL authentication failure: No worthy mechs found
May 16 18:55:13 mail postfix/smtp[2648]: B34B387A85506: to=<[email protected]>, relay=in-v3.mailjet.com[104.199.96.85]:587, delay=0.57, delays=0.07/0.06/0.45/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server in-v3.mailjet.com[104.199.96.85]: no mechanism available)

Expected Behavior

Should send the email through the mail relay without any issue.

Your Environment

  • version: 9.1.0
  • available RAM: 2GB
  • Docker version: 20.10.6
  • docker-compose version: 1.21.0
  • host architecture: armv7

Environment Variables

DEFAULT_RELAY_HOST=[in-v3.mailjet.com]:587
RELAY_HOST=in-v3.mailjet.com
RELAY_PORT=587
RELAY_USER= # smtp username
RELAY_PASSWORD= # smtp password

Relevant Stack Traces

# BEGIN
May 16 18:55:13 mail postfix/smtp[2648]: Anonymous TLS connection established to in-v3.mailjet.com[104.199.96.85]:587: TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)
May 16 18:55:13 mail postfix/smtp[2648]: warning: SASL authentication failure: No worthy mechs found
May 16 18:55:13 mail postfix/smtp[2648]: B34B387A85506: to=<[email protected]>, relay=in-v3.mailjet.com[104.199.96.85]:587, delay=0.57, delays=0.07/0.06/0.45/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server in-v3.mailjet.com[104.199.96.85]: no mechanism available)
# END

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch/arm64ARM64meta/staleThis issue / PR has become stale and will be closed if there is no further activitypriority/medium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions