Skip to content
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

Option to set alias database type to regexp #133

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

bugspencor
Copy link
Contributor

This PR allows configuring alias_database as regexp. This topic was already discussed in issue #88, but could not work because the alias db syntax was incorrect for regexp type (containing a colon between user and alias).

A new option postfix_alias_database_type was introduced which is used for alias_database and alias_maps when specified (postfix_default_database_type is used otherwise), and a correct regexp database file is created from the postfix_aliases list.

This was already discussed in Oefenweb#88 and was supposedly fixed, but did not
work for me. Now aliases are possible with correct regexp format (no
colon). Alias for postmaster is omitted in that case (incorrect regexp
format with colon). Defaults are unchanged.
Makes it possible to specify alias database type independent of
postfix_default_database_type. Use the new variable for the alias_maps
and alias_database configuration options. Default is the value of
"postfix_default_database_type".

This is the minimum invasive change to support regexp expressions in
aliases without changing other functionality of the role, especially
default database types for other configuration mappings.
@tersmitten tersmitten self-assigned this Mar 20, 2024
@tersmitten tersmitten merged commit 9ffb4fc into Oefenweb:master Mar 20, 2024
1 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants