-
-
Notifications
You must be signed in to change notification settings - Fork 349
fix : Ipv6 pref sending if available #2312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
451e212
5eb1fe6
cc79d6a
dae2551
963e008
12c2594
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -208,7 +208,15 @@ def _build_dns_conf( | |||||||||||||||||||||
| mail.append((basename, ttl, "MX", f"10 {domain}.")) | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| if settings["mail_out"]: | ||||||||||||||||||||||
| mail.append((basename, ttl, "TXT", '"v=spf1 a mx -all"')) | ||||||||||||||||||||||
| # Tentative de mitigation en cas où le serveur du domaine d'envoi du mail est différent | ||||||||||||||||||||||
| # du serveur du domaine (site externalisé) Issue: #2465 | ||||||||||||||||||||||
| spf4 = "" | ||||||||||||||||||||||
| spf6 = "" | ||||||||||||||||||||||
| if ipv4: | ||||||||||||||||||||||
| spf4 = ' ip4:' + ipv4 | ||||||||||||||||||||||
| if ipv6: | ||||||||||||||||||||||
| spf6 = ' ip6:' + ipv6 | ||||||||||||||||||||||
| mail.append((basename, ttl, "TXT", f'"v=spf1 a mx{spf4}{spf6} -all"')) | ||||||||||||||||||||||
|
Comment on lines
+211
to
+219
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
SO for me the only reasons to add this, is the case where no MX or A records exists for the IP of the server. This happens if https://github.com/Nerteron/yunohost/blob/12c2594b1024a604d5bd3d96007b79905d4de87d/src/dns.py#L207 I think there could be a lot of situations for which SPF should be customized, the important thing is to check with diagnosis that current IPs are allowed. For me this part should be in another PR , maybe with a settings to include a custom part to SPF
Comment on lines
+211
to
+219
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| # DKIM/DMARC record | ||||||||||||||||||||||
| dkim_host, dkim_publickey = _get_DKIM(domain) | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue 2465 seems not about distinct mail and web server for a same domain.