Maddy: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny Add example for mail aliases |
||
| Line 250: | Line 250: | ||
''dmarc yes | ''dmarc yes | ||
max_message_size 64M''] options.services.maddy.config.default; | max_message_size 64M''] options.services.maddy.config.default; | ||
[...] | |||
</nowiki>}} | |||
=== Alias addresses === | |||
The following example will add an alias <code>mailA@example.org</code> for the local mail address <code>mailB@example.org</code> meaning that every mail send to <code>mailA</code> will get delivered to <code>mailB</code>. | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
{ options, lib, ... }: { | |||
services.maddy.config = builtins.replaceStrings [ | |||
"optional_step file /etc/maddy/aliases" | |||
] [ | |||
"optional_step static { | |||
entry mailA@example.org mailB@example.org | |||
}"] options.services.maddy.config.default; | |||
[...] | [...] | ||