header-checks: logical AND combination of two restrictions

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 /^...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2003
Markus Muessig
 
Posts: n/a
Default header-checks: logical AND combination of two restrictions

# 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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:44 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0