r-raymond / nixos-mailserver

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

Provide mailing list support with mailman #123

Open mickours opened 6 years ago

mickours commented 6 years ago

It would be great to have simple switch to activate a mailing list manager like mailman on a given mail address.

Is it in the scope of this project?

Note that mailman is packed on NixOS but I did not found any module implementation.

r-raymond commented 6 years ago

Sounds like a good idea if it is not too complex. At some point we were planning of having downstream projects, maybe this is a good candidate.

sorki commented 6 years ago

So I'm looking at my ansible mailman role that I would like to migrate to this and it's not that complex..

Few variables are passed (if it ever worked correctly) to dependent mailserver role

postfix_alias_maps_append: ', hash:/etc/mailman/aliases'
postfix_local_recipient_maps_append: ', $alias_maps'
postfix_mydestination_append: ', $mydomain, lists.$mydomain'

Then a bunch of tasks configuring mailman and its SSL vhost https://github.com/nestihacky/ansible-role-mailman/blob/master/tasks/main.yml

This is gonna get greatly simplified as we can re-use apache/nginx/ssl from nixos and pass few variables (from the above list) to mailserver (I need to take a closer look if this is already possible but I guess so). Coincidentally I've just opened the list of issues and decided to finally deploy this instead of my current mailserver. Then I would like to migrate the rest of them which all need mailman. /braindump