Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

question: Why do I get the error Sender address rejected: not owned by user? (reject_authenticated_sender_login_mismatch)#3824

Copy link
Copy link
@cfis

Description

@cfis
Issue body actions

馃摑 Preliminary Checks

  • I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.

馃憖 What Happened?

This is more of a question about relay server setup than a bug.

I am testing docker-mailserver on a home machine. It uses a postfix server on aws (mail2.example.com) as a relay. Since port 25 is blocked by Comcast, communication is done over port 587. In particular:

mail2@example.com ------ 587 --- > mail@example.com

mail2 forwards to mail using the user relay@example.com which has been added to postfix-accounts.cf (and the password is known to mail2 via sasl_password).

Assume an email is received by mail2, say for myself at cfis@example.com, and is forwarded to mail. That results in this error in the log:

docker-mailserver-59cc9899d4-lfnbn postfix/submission/smtpd[3078]: NOQUEUE: reject: RCPT from mail2.example.com[x.x.x.x]: 553 5.7.1 <root@mail2.example.com>: Sender address rejected: not owned by user relay@example.com; from=<root@mail2.example.com> to=<cfis@example.com> proto=ESMTP helo=<mail2.example.com>

This is caused by the inclusion of reject_authenticated_sender_login_mismatch in mua_sender_restrictions.

If I override mua_sender_restrictions to remove reject_authenticated_sender_login_mismatch, then the relay user delivers the email to the correct account without error.

However, is there a better way to set this up? I want ports 465 and 587 to require authentication, so mail2 has to login as some user. And port 25 is blocked by comcast. I figured this would be a common issue, but an internet search revealed people with the same issue but without clear guidance on the best solution.

Thanks!

馃憻 Reproduction Steps

No response

馃悑 DMS Version

v13.3.1

馃捇 Operating System and Architecture

Fedora

鈿欙笍 Container configuration files

This is using Kubernetes, see https://github.com/cfis/docker-mailserver-helm

馃摐 Relevant log output

No response

Improvements to this form?

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.