about summary refs log tree commit diff
path: root/modules/services/dovecot.nix
blob: a33b0d172049ef478204038490be55a64b03dee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, ... }:

with lib;
let
  cfg = config.modules.services.dovecot;
in
{
  options.modules.services.dovecot = {
    enable = mkEnableOption "dovecot";
  };

  config = mkIf cfg.enable {
    services.dovecot2 = {
      enable = true;
    };
    networking.firewall.allowedTCPPorts = [ 587 465 ];
  };
}