diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/private/mail/postfix.nix | 2 | ||||
-rw-r--r-- | modules/private/system/eldiron.nix | 5 | ||||
-rw-r--r-- | modules/private/websites/immae/history/_posts/2020-05-31-fix-postfix-headers.md | 7 |
3 files changed, 12 insertions, 2 deletions
diff --git a/modules/private/mail/postfix.nix b/modules/private/mail/postfix.nix index 0c95df5..c4b09b2 100644 --- a/modules/private/mail/postfix.nix +++ b/modules/private/mail/postfix.nix | |||
@@ -421,7 +421,7 @@ | |||
421 | ${pkgs.dovecot}/libexec/dovecot/dovecot-lda -f "$sender" -a "$original_recipient" -d "$user" | 421 | ${pkgs.dovecot}/libexec/dovecot/dovecot-lda -f "$sender" -a "$original_recipient" -d "$user" |
422 | ''; | 422 | ''; |
423 | in [ | 423 | in [ |
424 | "flags=DRhu" "user=vhost:vhost" | 424 | "flags=ODRhu" "user=vhost:vhost" |
425 | "argv=${rspamc_dovecot}/bin/rspamc_dovecot \${sender} \${original_recipient} \${user}@\${nexthop}" | 425 | "argv=${rspamc_dovecot}/bin/rspamc_dovecot \${sender} \${original_recipient} \${user}@\${nexthop}" |
426 | ]; | 426 | ]; |
427 | }; | 427 | }; |
diff --git a/modules/private/system/eldiron.nix b/modules/private/system/eldiron.nix index 4b332d3..6ccaea5 100644 --- a/modules/private/system/eldiron.nix +++ b/modules/private/system/eldiron.nix | |||
@@ -83,7 +83,10 @@ | |||
83 | '' | 83 | '' |
84 | # The star after /var/lib/* avoids deleting all folders in case of problem | 84 | # The star after /var/lib/* avoids deleting all folders in case of problem |
85 | 0 3,9,15,21 * * * root rsync -e "ssh -i /var/secrets/rsync_backup/identity" --new-compress -aAXv --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* backup@dilion.immae.eu: > /dev/null | 85 | 0 3,9,15,21 * * * root rsync -e "ssh -i /var/secrets/rsync_backup/identity" --new-compress -aAXv --delete --numeric-ids --super --rsync-path="sudo rsync" /var/lib/* backup@dilion.immae.eu: > /dev/null |
86 | 0 0 * * * root journalctl -q --since="25 hours ago" -u postfix -g "immae.eu.*Recipient address rejected" | 86 | 0 0 * * * root journalctl -q --since="25 hours ago" -u postfix -t postfix/smtpd -g "immae.eu.*Recipient address rejected" |
87 | # Need a way to blacklist properly | ||
88 | # 0 0 * * * root journalctl -q --since="25 hours ago" -u postfix -t postfix/smtpd -g "NOQUEUE:" | ||
89 | 0 0 * * * root journalctl -q --since="25 hours ago" -u postfix -t postfix/smtp -g "status=bounced" | ||
87 | '' | 90 | '' |
88 | ]; | 91 | ]; |
89 | }; | 92 | }; |
diff --git a/modules/private/websites/immae/history/_posts/2020-05-31-fix-postfix-headers.md b/modules/private/websites/immae/history/_posts/2020-05-31-fix-postfix-headers.md new file mode 100644 index 0000000..95f0bb4 --- /dev/null +++ b/modules/private/websites/immae/history/_posts/2020-05-31-fix-postfix-headers.md | |||
@@ -0,0 +1,7 @@ | |||
1 | --- | ||
2 | title: "Ajout d’un header dans les mails traités par postfix" | ||
3 | category: Fix | ||
4 | date: 2020-05-31 | ||
5 | --- | ||
6 | Un header X-Original-To a été ajouté aux en-têtes des e-mails reçus par | ||
7 | postfix pour indiquer la cible réelle du mail. | ||