Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sender address rejected of alias address defined by regex #1437

@jirislav

Description

@jirislav

When I ([email protected]) try to send an email using my alias address ([email protected]), i get:

<[email protected]>: Sender address rejected: not owned by user [email protected]

What I have in postfix-regexp.cf:

/.*@jkozlovsky.cz/ [email protected]

Context

I cannot respond to people writing me while using the same address they wrote to. So it may seem like somebody else is responding.

Expected Behavior

I can send email as any user defined by the regex. It's also stated in the documentation of SPOOF_PROTECTION.

# Configures the handling of creating mails with forged sender addresses.
#
# empty => (not recommended, but default for backwards compatability reasons)
#           Mail address spoofing allowed. Any logged in user may create email messages with a forged sender address.
#           See also https://en.wikipedia.org/wiki/Email_spoofing
# 1 => (recommended) Mail spoofing denied. Each user may only send with his own or his alias addresses.
#       Addresses with extension delimiters(http://www.postfix.org/postconf.5.html#recipient_delimiter) are not able to send messages.
SPOOF_PROTECTION=1

Actual Behavior

See upper description.

Possible Fix

I don't know.

Steps to Reproduce

  1. Create similar regex alias.
  2. Reload server
  3. Send an email as someone matching the alias while having SPOOF_PROTECTION=1

Your Environment

  • Mailserver version used: tvial/docker-mailserver:stable
  • Docker version used: Docker version 19.03.8, build afacb8b7f0
  • Environment settings relevant to the config: see upper description
  • Any relevant stack traces ("Full trace" preferred): none

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions