summaryrefslogtreecommitdiff
path: root/hosts/surtr
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-09-29 15:24:18 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-09-29 15:24:18 +0200
commit4ddd4a18cd9f852d4d23510faae31dd0e0380866 (patch)
treedb27025055014163a2da0d7e677bde2967169d6d /hosts/surtr
parent5cee7108d60ca11ccba1b19ccad74664f6f96cf5 (diff)
downloadnixos-4ddd4a18cd9f852d4d23510faae31dd0e0380866.tar
nixos-4ddd4a18cd9f852d4d23510faae31dd0e0380866.tar.gz
nixos-4ddd4a18cd9f852d4d23510faae31dd0e0380866.tar.bz2
nixos-4ddd4a18cd9f852d4d23510faae31dd0e0380866.tar.xz
nixos-4ddd4a18cd9f852d4d23510faae31dd0e0380866.zip
...
Diffstat (limited to 'hosts/surtr')
-rw-r--r--hosts/surtr/email/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix
index a3e06ca6..ee2f44f9 100644
--- a/hosts/surtr/email/default.nix
+++ b/hosts/surtr/email/default.nix
@@ -236,6 +236,37 @@ in {
236 bounce_queue_lifetime = "20m"; 236 bounce_queue_lifetime = "20m";
237 delay_warning_time = "10m"; 237 delay_warning_time = "10m";
238 238
239 failure_template_file = pkgs.writeText "failure.cf" ''
240 Charset: us-ascii
241 From: Mail Delivery System <MAILER-DAEMON>
242 Subject: Undelivered Mail Returned to Sender
243 Postmaster-Subject: Postmaster Copy: Undelivered Mail
244
245 This is the mail system at host $myhostname.
246
247 I'm sorry to have to inform you that your message could not
248 be delivered to one or more recipients. It's attached below.
249
250 The mail system
251 '';
252 delay_template_file = pkgs.writeText "delay.cf" ''
253 Charset: us-ascii
254 From: Mail Delivery System <MAILER-DAEMON>
255 Subject: Delayed Mail (still being retried)
256 Postmaster-Subject: Postmaster Warning: Delayed Mail
257
258 This is the mail system at host $myhostname.
259
260 ####################################################################
261 # THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. #
262 ####################################################################
263
264 Your message could not be delivered for more than $delay_warning_time_minutes minute(s).
265 It will be retried until it is $maximal_queue_lifetime_minutes minute(s) old.
266
267 The mail system
268 '';
269
239 smtpd_discard_ehlo_keyword_address_maps = "cidr:${pkgs.writeText "esmtp_access" '' 270 smtpd_discard_ehlo_keyword_address_maps = "cidr:${pkgs.writeText "esmtp_access" ''
240 # Allow DSN requests from local subnet only 271 # Allow DSN requests from local subnet only
241 192.168.0.0/16 silent-discard 272 192.168.0.0/16 silent-discard