Open tokudan opened 6 years ago
Sounds great. I guess this should be a per domain setting. We could turn the domain list into a more sophisticated data type.
On the other hand we could also add an admin
list to the user record, that adds postmaster and abuse .
Or are you thinking about a super admin for all listed domains? Then we could simply add an option for it and maybe merge it with the alert address.
I was thinking about two settings:
Per domain would make sense for bigger hosters with multiple customers. I think nixos-mailserver isn't aimed at them, but more towards single persons administrating their own mailserver or small businesses that just need a mailserver for their own domains. So having that setting per domain is probably overkill. I guess that if there's a simple "this account should receive all admin and locally generated email" alias, then that's good enough for most.
Please have a look at the NixOS options in networking.defaultmailserver
: https://nixos.org/nixos/options.html#networking.defaultmailserver
In particular networking.defaultMailServer.root
and of course .domain
and .hostName
.
@phdoerfler that partially sounds good. But it just seems to be a setting for ssmtp, not for postfix or this project. The ssmtp nixos module seems to have hijacked the "defaultmailserver" hierarchy.
This would allow to create some common aliases automatically, for example: abuse@domain1 postmaster@domain1 abuse@domain2 postmaster@domain2 (catchall)@localhost (catchall)@[mailserver.fqdn]