mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 17:36:01 +03:00
[GH-ISSUE #1164] "Extra adresses" not working as expected with smtpd_sender_login_maps #956
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#956
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mundschenk-at on GitHub (Jun 30, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1164
Originally assigned to: @tonioo on GitHub.
Impacted versions
Steps to reproduce
Add the recommended settings to
main.cf:Create two users, add the address of the first user to the second as an "extra address" and try to send mail for it.
Current behavior
The mail is rejected.
Expected behavior
The second user can send mail using the first users address as sender.
Solution
While this solution needs Postfix 3.x, it provides the expected behavior (otherwise, Postfix stops a the first returned result of a query and
smtpd_sender_login_mapslookups are resolved using the sender address).@tonioo commented on GitHub (Dec 7, 2017):
@mundschenk-at Sorry about the lack of response.
Indeed, this use case won't be possible without a unionmap. Do you know a solution for postfix < 3 ?
@mundschenk-at commented on GitHub (Dec 7, 2017):
You could merge the three queries into one? But that would probably be messy SQL wise. Mainly I think this is a documentation issue.
@tonioo commented on GitHub (Dec 7, 2017):
Indeed a SQL query using
UNIONstatements could do the trick.