<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
<div id="smartTemplate4-quoteHeader">Hi,<br>
<br>
</div>
<blockquote cite="mid:570FB75C.3060901@msapiro.net" type="cite">
<pre wrap="">You could try instead, rules like
From: /^?!someuser[<a class="moz-txt-link-abbreviated" href="mailto:12]@domain\.de$/">12]@domain\.de$/</a> and To: @domain.de
/etc/MailScanner/filename.rules.conf
I.e., add a negative lookahead condition so the To: @domain.de rule
doesn't match those senders. In practice, it would probably be
different, e.g.,
From: /^?!(usera|<a class="moz-txt-link-abbreviated" href="mailto:otherperson)@domain\.de$/">otherperson)@domain\.de$/</a> and To: @domain.de
/etc/MailScanner/filename.rules.conf
</pre>
</blockquote>
I tried to, but somehow this caused all mail to be sent through the
default rule... here's the setup I had entered:<br>
<br>
# Block more securely for mails to internal users<br>
From: /^?!theuser@domain.de$/ and To: @domain.de
/etc/MailScanner/filename.rules.conf<br>
From: /^?!theuser@domain.de$/ and To: @domain.de
/etc/MailScanner/filename.rules.conf<br>
<br>
# Default - Somewhat less secure, allowing e.g. .docm etc.<br>
To: default
/etc/MailScanner/filename.toexternal-rules.conf<br>
<br>
<p>As a result, all mails were let through using the more relaxed
rules set. I tried altering the regexp pattern based on doing some
tests, changing it to e.g. /^(?!(<a class="moz-txt-link-abbreviated" href="mailto:theuser@domain.de">theuser@domain.de</a>))$/ (which at
least was accepted by the regexp tester I used), but it still
didn't seem to match any sender ... am I missing something here?<br>
</p>
<br>
<br>
<div id="smartTemplate4-template">Thanks, Garry<br>
<br>
--<br>
<pre>PGP Fingerprint: A79F A33F 5B13 BEB7 A51D 274F F99C 3AE2 4BCB 7015</pre>
</div>
<br>
<pre class="moz-signature" cols="72">--
PGP Fingerprint: A79F A33F 5B13 BEB7 A51D 274F F99C 3AE2 4BCB 7015</pre>
</body>
</html>