Roman Medina-Heigl Hernandez a écrit : > Hello, > > (see subject) Is it easily doable with Postfix? (notice that I'd like to > combine some checks and that the block action should only be performed in > both conditions are met; I'd like to be able to put more similar complex > "rules" mixed with the common/simple/typical rules). >
you can't do that in a single "check" inside postfix. postfix header checks test headers one at a time, indendently(so you can say if "head A matches foo AND header B matches bar). to do what you want, you need one of: - milter or filter. where you can do anything you want - pass mail through multiple smtpd listeners. when you can "cascade" checks. not recommended except in a few cases... now, what (real) problem are you trying to solve? (h don't tell us you want to block spam from "joe" to "joe". this has been discussed many times. "the" answer is to use standard checks such as spamhaus and only if you still get that junk should you ask for more...).