mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 00:46:03 +03:00
[GH-ISSUE #2027] DKIM signature for domain aliases #1505
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#1505
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 @dirtyhillbilly on GitHub (Oct 5, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2027
Impacted versions
Steps to reproduce
Create a domain and an alias of it.
Send a mail using that aliased domain -> opendkim can't find the key
I had to change the dkim view to achieve this :
@tonioo commented on GitHub (Oct 5, 2020):
@dirtyhillbilly Thank you for this contribution but I see 2 problems with your query:
admin_domainalias.idwhich is a different sequence thandomain.id, so it will create duplicates in the view (I don't know if it's a problem or not)@dirtyhillbilly commented on GitHub (Oct 6, 2020):
I think 1. is a problem, collisions will happen.
This one works better, then. I'm quite new to SQL, as you can see ;) :
@dirtyhillbilly commented on GitHub (Oct 7, 2020):
clone of #1882
@dirtyhillbilly commented on GitHub (Dec 30, 2022):
Some years and upgrades later, i still use :
CREATE OR REPLACE VIEW dkim AS ( SELECT ROW_NUMBER() OVER(order by domain_name, selector) as id, domain_name, private_key_path, selector FROM (SELECT admin_domainalias.name as domain_name, admin_domain.dkim_private_key_path AS private_key_path, admin_domain.dkim_key_selector AS selector from admin_domainalias JOIN admin_domain ON admin_domainalias.target_id=admin_domain.id where enable_dkim UNION SELECT name as domain_name, dkim_private_key_path AS private_key_path, dkim_key_selector AS selector FROM admin_domain WHERE enable_dkim) as aliases );