This is a discussion on header-checks: logical AND combination of two restrictions within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; # rule1 # this allone is ok /^To: .*eviluser@somehost/ DUNNO # rule2 # the combination of rule1 and rule2 should match and REJECT /^...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
# rule1
# this allone is ok /^To: .*eviluser@somehost/ DUNNO # rule2 # the combination of rule1 and rule2 should match and REJECT /^From: (?.*@hotmail.com)/ REJECT obviously my problem is, that the header is transported line-by-line to the regexp-subsystem and "to" and "from" are different lines in mailheader... a combination like this /From:.*eviluser@somehost.*To:.*(?@hotmail.com)/s does not match the combined criteria... the s at the end is needed, in order, that . matches the \n newline also... otherwhise \n won't match \n rule1 | rule2 | action =================== nomatch| nomatch | OK ------------------------------ nomatch| match | OK ------------------------------ match | nomatch | OK ------------------------------ match | match | REJECT thats what i want... does anyone know, how to combine the to rules from below as logical and? thanks and regards, markus muessig -- ---------------------------------------------------------------------- Markus Müssig MULTA MEDIO Informationssysteme AG - Systemadministrator - Mergentheimer Str. 76a 97082 Wuerzburg mailto:mmuessig@multamedio.de Tel: +49 (0)931 79717-18 http://www.multamedio.de Fax: +49 (0)931 79717-30 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|