WIP: Moved postfix to use the emailprimary attribute instead of mail #1

Draft
ezri wants to merge 1 commits from bugfix/fix-duplicated-emails into main
Owner

Issue I ran into setting up my own similar system. When Postfix gets multiple values for the destination email from an LDAP lookup, it duplicates the incoming email for each result and tries to store each one in a mailbox for each of those emails. Since Dovecot is probably only configured to use the primary email address as a mailbox, this fails, and a bounce message is sent for every email that isn't the one Dovecot has a mailbox for. If Dovecot does have a mailbox for the alias, that's likely unintended because the intended recipient of the message will not see the email (since it's in a different mailbox).

Probably shouldn't merge it yet, since this should also probably be extended to the LDAP search queries for mail and alias lookups.

Issue I ran into setting up my own similar system. When Postfix gets multiple values for the destination email from an LDAP lookup, it duplicates the incoming email for each result and tries to store each one in a mailbox for each of those emails. Since Dovecot is probably only configured to use the primary email address as a mailbox, this fails, and a bounce message is sent for every email that isn't the one Dovecot has a mailbox for. If Dovecot _does_ have a mailbox for the alias, that's likely unintended because the intended recipient of the message will not see the email (since it's in a different mailbox). Probably shouldn't merge it yet, since this should also probably be extended to the LDAP search queries for mail and alias lookups.
ezri added 1 commit 2024-09-02 17:10:36 -04:00
ezri requested review from simponic 2024-09-02 17:10:49 -04:00
This pull request is marked as a work in progress.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b bugfix/fix-duplicated-emails main
git pull origin bugfix/fix-duplicated-emails

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff bugfix/fix-duplicated-emails
git push origin main
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hatecomputers/infra#1
No description provided.