r-raymond / nixos-mailserver

A complete and Simple Nixos Mailserver
GNU General Public License v3.0
181 stars 27 forks source link

Support for multiple extraVirtualAliases #109

Closed oxzi closed 6 years ago

oxzi commented 6 years ago

Should fix #104 by introducing

extraVirtualAliases = {
  "single-alias@domain.foobar" = "user1@domain.foobar";
  "multi-alias@domain.foobar" = [
    "user1@domain.foobar" "user2@domain.foobar" ];
};
r-raymond commented 6 years ago

awesome, thanks for the hard work!

If you find some time, can you add a test for this feature? If not, I'll try to find some. Thanks!

oxzi commented 6 years ago

I have to admit that I'm not so familiar with the Nix tests, but I would try it later on this evening.

oxzi commented 6 years ago

So, I updated the PR and added tests in tests/extern.nix.

Btw, I've got the diff running successfully in production since opening the PR and it works on my machine. For what it's worth.

r-raymond commented 6 years ago

Awesome! Thanks again!