Roman Medina-Heigl Hernandez a écrit : > Hello, > > I'd like to test different Postfix configs and approaches for spam fighting > but I need to have a way to evaluate the effect of different rules and > configs, without affecting normal service. I find "warn_if_reject" option > very useful, so I could make some kind of stats based on warnings being > logged. > > But now I'd like to go one step ahead, taking a different approach: marking > the mail message (adding a custom-defined header, e.g) in case it were > going to be rejected. So I could receive all my email "without disruption" > and classify the emails using client-side filtering, and then dropping > "supposed-to-be-rejected" mails to a different folder. The advantage is > that I get the whole body of suspected emails, instead of a simple warning > in server's logs, so it's simple for me to manually (yes!!) review mail > being caught and look for false positives. > > Is there any easy way to get this done? Do you know any other postfix > feature similar to "warn-if-reject" which could help me? >
to a limited extent. you can use PREPEND in some cases. but you can't convert, say reject_unknown_helo_hostname, into a header. if you need full flexibility, use a policy server.