Skip to content

better naming for ip4-only PR #919#956

Merged
hpk42 merged 1 commit intoipv4-only-retryfrom
rename-ipv4
May 8, 2026
Merged

better naming for ip4-only PR #919#956
hpk42 merged 1 commit intoipv4-only-retryfrom
rename-ipv4

Conversation

@hpk42
Copy link
Copy Markdown
Contributor

@hpk42 hpk42 commented May 7, 2026

retain "config.mail_domain" as the domain part of @ email addresses which means for ipv4 relays "[1.2.3.4]"

and introduce config.ipv4_relay, config.postfix_myhostname and config.mail_domain_bare helpers.
i found the multiple "mail_domain*" names confusing and think the new names make several places read better.

…so for ipv4 relays "[1.2.3.4]" and introduce config.ipv4_relay and config.mail_domain_bare helpers.
Copy link
Copy Markdown
Contributor

@j4n j4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed much more readable. Tested deploying v4-only and with domain.

Copy link
Copy Markdown
Contributor

@missytake missytake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I guess we can also do it like this.

-o milter_macro_daemon_name=ORIGINATING
-o cleanup_service_name=authclean
{% if config.mail_domain == config.mail_domain_deliverable %} -o smtpd_milters=unix:opendkim/opendkim.sock
{% if not config.ipv4_relay %} -o smtpd_milters=unix:opendkim/opendkim.sock
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that's much prettier.

@hpk42 hpk42 merged commit d9e61cb into ipv4-only-retry May 8, 2026
2 checks passed
@hpk42 hpk42 deleted the rename-ipv4 branch May 8, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants