Skip to content

Instantly share code, notes, and snippets.

@koniu
Created May 31, 2016 19:01
Show Gist options
  • Save koniu/c74b5a1f83b9c90305af374776f259d7 to your computer and use it in GitHub Desktop.
Save koniu/c74b5a1f83b9c90305af374776f259d7 to your computer and use it in GitHub Desktop.
Exim4 router allowing usage of local unix groups in /etc/aliases.
### router/350_exim4-config_system_group_aliases
# Allows to use local unix group as local part in /etc/aliases. Eg:
# root: adm
system_group_aliases:
debug_print = "R: system_group_aliases for $local_part@$domain"
driver = redirect
domains = +local_domains
data = ${sg{${lookup{$local_part}lsearch{/etc/group}}}{^x:[0-9]+:(.*)}{\$1}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment