<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hallo, </p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Noto Sans;">ich nutze Piler (piler) als Mailarchivierung hinter Postfix (mx1) auf Debian Trixie.</span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Bislang habe ich </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Monospace;">always_bcc = archive@piler.example.com</span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Noto Sans;">genutzt. Das archiviert aber auch den gesamt SPAM-Traffic und Systemmails, was ich für unnötigt und total unübersichtlich halte.</span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Mein Gedanke ist nur die Mails an Piler als Kopie zur Archivierung zu senden, die Rspamd als sauber bewertet hat und zusätzlich Systemmails auszuschließen.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Dazu mache ich in der main.cf</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Monospace;"># always_bcc</span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">smtpd_milters = inet:localhost:11332 </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">non_smtpd_milters = inet:localhost:11332 </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">milter_protocol = 6 </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen} </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">milter_default_action = accept</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">milter_header_checks = regexp:/etc/postfix/header_checks_piler</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Noto Sans;">und in der header_checks_piler:</span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Monospace;">/^To:.*(backup@|monitoring@|noreply@|ticket@example\.com)/ PREPEND X-No-Archive: yes</span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/^Cc:.*(backup@|monitoring@|noreply@|ticket@example\.com)/ PREPEND X-No-Archive: yes</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/^X-No-Archive: yes/ REPLACE X-Rspamd-Action: skip</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/^X-Rspamd-Action: no action/ BCC archive@piler.example.com</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Noto Sans;">Tests mit erlaubten Mails und ticket@example.com haben gezeigt, dass die gesperrten Mails immer noch auf Piler ankommen.</span></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Frage:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Ist dieses Verhalten erwartbar?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Können milter_header_checks die Ausführung von BCC-Regeln überhaupt zuverlässig beeinflussen?</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Falls nein:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Welcher Mechanismus ist für eine bedingte Archivierung basierend auf</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> • Rspamd-Ergebnis (X-Rspamd-Action)</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> • sowie Empfänger-Ausschlüssen</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">vorgesehen?</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Vielen Dank und viele Grüße</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Andreas Günther</p>
<br /></body>
</html>