Skip to content

Commit

Permalink
exim: add DMARC support
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs124 committed Jul 24, 2020
1 parent 61d3f6f commit 5495405
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/servers/mail/exim/default.nix
Expand Up @@ -4,6 +4,7 @@
, enableAuthDovecot ? false, dovecot
, enablePAM ? false, pam
, enableSPF ? true, libspf2
, enableDMARC ? true, opendmarc
}:

stdenv.mkDerivation rec {
Expand All @@ -21,7 +22,8 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optionals enableMySQL [ libmysqlclient zlib ]
++ stdenv.lib.optional enableAuthDovecot dovecot
++ stdenv.lib.optional enablePAM pam
++ stdenv.lib.optional enableSPF libspf2;
++ stdenv.lib.optional enableSPF libspf2
++ stdenv.lib.optional enableDMARC opendmarc;

preBuild = ''
sed '
Expand Down Expand Up @@ -71,6 +73,10 @@ stdenv.mkDerivation rec {
s:^# \(SUPPORT_SPF\)=.*:\1=yes:
s:^# \(LDFLAGS += -lspf2\):\1:
''}
${stdenv.lib.optionalString enableDMARC ''
s:^# \(SUPPORT_DMARC\)=.*:\1=yes:
s:^# \(LDFLAGS += -lopendmarc\):\1:
''}
#/^\s*#.*/d
#/^\s*$/d
' < src/EDITME > Local/Makefile
Expand Down

0 comments on commit 5495405

Please sign in to comment.