On Sat, 2008-12-06 at 20:13 +0000, support wrote:

> Surely, by now, someone has come up with a simple regex rule or
> something that matches if the to & from are the same? Is this too
> obvious?

Unfortunately it's actually not that easy. It involves remembering a
matched substring across *two* rules, which ATM SA does not provide any
mechanism for. Devs: there've been wishes for this before; how hard
would it be to add the ability to match on the substring match captured
by another rule? Add a flag to say "capture the match for this rule" and
a syntax for substituting that into the match RE of another rule, and
dependency enforcement?

In lieu of that, if you're familiar with Perl you could write a plugin
to do what you suggest, or you could do something externally to generate
three rules per known user (or known valid email address) on your
system: one indirect for the To, one indirect for the From, and a meta
to AND them. 

You could do it in sendmail.cf

-- 
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [EMAIL PROTECTED]    FALaholic #11174     pgpk -a [EMAIL PROTECTED]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  The yardstick you should use when considering whether to support a
  given piece of legislation is "what if my worst enemy is chosen to
  administer this law?"
-----------------------------------------------------------------------
 9 days until Bill of Rights day

Reply via email to