feat: amz add cron job
This commit is contained in:
@@ -3,15 +3,16 @@
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
# Header checks file for validating email headers
|
||||
environment.etc."postfix/header_checks".text = ''
|
||||
let
|
||||
headerChecksFile = pkgs.writeText "header_checks" ''
|
||||
# Warn about missing critical headers (but don't reject from localhost)
|
||||
# These help identify misconfigured applications
|
||||
/^$/ WARN Missing headers detected
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
services.postfix = {
|
||||
mapFiles."header_checks" = headerChecksFile;
|
||||
enable = true;
|
||||
hostname = "amzebs-01.amz.at";
|
||||
domain = "amz.at";
|
||||
@@ -42,7 +43,7 @@
|
||||
|
||||
# Ensure proper header handling
|
||||
# Reject mail that's missing critical headers
|
||||
header_checks = "regexp:/etc/postfix/header_checks";
|
||||
header_checks = "regexp:/var/lib/postfix/conf/header_checks";
|
||||
|
||||
# Rate limiting to prevent spam-like behavior
|
||||
# Allow reasonable sending rates for applications
|
||||
|
||||
Reference in New Issue
Block a user