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]
I cannot respond to people writing me while using the same address they wrote to. So it may seem like somebody else is responding.
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
See upper description.
I don't know.
SPOOF_PROTECTION=1tvial/docker-mailserver:stableDocker version 19.03.8, build afacb8b7f0see upper descriptionnoneSince I鈥檓 also running into the same issue, is there any security advantage of enabling SPOOF_PROTECTION=1 for a generic wildcard ([email protected] is allowed to use .*@example.com)? As far as I understand, in this specific use-case, there鈥檚 nobody else who could abuse the missing spoof protection, so does it matter that I had to temporarily turn it off?
Since I鈥檓 also running into the same issue, is there any security advantage of enabling
SPOOF_PROTECTION=1for a generic wildcard ([email protected]is allowed to use.*@example.com)? As far as I understand, in this specific use-case, there鈥檚 nobody else who could abuse the missing spoof protection, so does it matter that I had to temporarily turn it off?
This is a very good question, thank you.
The issue is that I have bunch of other addresses, where each of them should be restricted from using any other. Only the last one is the administrator's mail address, which should be allowed to become anyone who wants.
See
/[email protected]/ [email protected]
/[email protected]/ [email protected]
/[email protected]/ [email protected]
/[email protected]/ [email protected]
/[email protected]/ [email protected]
/.*@jkozlovsky.cz/ [email protected]
Note that I'm having a new email address created for each service that uses my mail server. And I'd really like to forbid those service accounts to behave as if it was me, the person, instead of it, the service. That's because if somebody hacked the service and started sending spam messages from my mail server, I'd know which service was compromised and fix it.
This issue was closed due to one or more of the following reasons:
If you think this happened by accident, or feel like this issue was not actually resolved, please feel free to re-open it. If there is an issue you could resolve in the meantime, please open a PR based on the current master branch so we can review it.
This issue has not been resolved yet. The sender address is still rejected, will you please open this issue @aendeavor? I don't have rights to do so.
Of course.
Please note that this issue has become stale. Due to missing capacity, you will most likely need to resolve some parts of this issue alone.
@jirislav I found this thread: https://serverfault.com/questions/637726/sender-address-rejected-not-owned-by-user-in-postfix Maybe it can help you?
Furthermore, you can for total correctness of your regex escape the . with \. to use `.麓 literally (although I do not think this is a problem).
Most helpful comment
Of course.
Please note that this issue has become stale. Due to missing capacity, you will most likely need to resolve some parts of this issue alone.