Re: ANNOUNCE: /var/qmail/control/locals and regex

1999-09-21 Thread Robert Sander

[EMAIL PROTECTED] (Claus Färber) wrote:

 Much of work?
 All you have to do is (untested):
 controls/virtualdomains:
 .example.com:alias-piffle
 alias/.qmail-default:
 |forward "$DEFAULT"
 (Yes, that's less work than applying a patch!)
 Inconsistent?
 Maybe.

I see, but is that documented anywhere?

And I still think this is the "territory" auf control/locals because I do
not have a "virtual"domain, but a real one ;-)

Greetings
-- 
[EMAIL PROTECTED]
innominate AG
networking people
fon: +49.30.308806-45  fax: -77 web: http://innominate.de



Re: ANNOUNCE: /var/qmail/control/locals and regex

1999-09-21 Thread Adam D . McKenna

On Tue, Sep 21, 1999 at 08:56:54AM +0200, Robert Sander wrote:
 [EMAIL PROTECTED] (Claus Färber) wrote:
 
  Much of work?
  All you have to do is (untested):
  controls/virtualdomains:
  .example.com:alias-piffle
  alias/.qmail-default:
  |forward "$DEFAULT"
  (Yes, that's less work than applying a patch!)
  Inconsistent?
  Maybe.
 
 I see, but is that documented anywhere?

You mean like, say, the man pages for example?

http://www.qmail.org/man/man8/qmail-command.html

 And I still think this is the "territory" auf control/locals because I do
 not have a "virtual"domain, but a real one ;-)

Don't reject a solution because you don't like the semantics.

--Adam



Re: ANNOUNCE: /var/qmail/control/locals and regex

1999-09-21 Thread Robert Sander

On Tue, Sep 21, 1999 at 10:13:28AM -0400, Adam D . McKenna wrote:

  And I still think this is the "territory" auf control/locals because I do
  not have a "virtual"domain, but a real one ;-)
 
 Don't reject a solution because you don't like the semantics.

I do not reject it, I just offer another solution. Let the people decide.
And the performance. (Could anybody test my patch?)

Greetings
-- 
Robert Sander   "Is it Friday yet?"
  @Home http://home.pages.de/~gurubert
pgp available there



Re: ANNOUNCE: /var/qmail/control/locals and regex

1999-09-20 Thread Claus Färber

Robert Sander [EMAIL PROTECTED] schrieb/wrote:
 Yes, that is possible, but then I have to setup a user piffle, and his
 .qmail file has to filter the mailadresses and deliver the mail to the
 correct local user. I think this is too much work and a kind of
 inconsistency.

Much of work?
All you have to do is (untested):

controls/virtualdomains:
.example.com:alias-piffle

alias/.qmail-default:
|forward "$DEFAULT"

(Yes, that's less work than applying a patch!)

Inconsistent?
Maybe.

-- 
Claus Andre Faerber http://www.faerber.muc.de
PGP: ID=1024/527CADCD FP=12 20 49 F3 E1 04 9E 9E  25 56 69 A5 C6 A0 C9 DC



Re: ANNOUNCE: /var/qmail/control/locals and regex

1999-09-19 Thread Robert Sander

Russell Nelson [EMAIL PROTECTED] wrote:
 What problem does this solve that a virtualdomain does not?  Yes,
 control/locals allows only literal entries, but control/virtualdomains 
 allows wildcards of the form ".foo.bar:piffle" to match "biff.foo.bar".
 It also allows "baz.foo.bar:" to *not* be caught by the preceding entry.

Yes, that is possible, but then I have to setup a user piffle, and his
.qmail file has to filter the mailadresses and deliver the mail to the
correct local user. I think this is too much work and a kind of
inconsistency.

If aI have only [EMAIL PROTECTED], then I would do it this way
with an entry in virtualdomains like his.virtual.domin:someuser or alike.

But I have (virtually ;-) a big network of hosts, and everyone has the
same users (over NIS). I think it is more easier with one line in locals
like ^(.*\.){0,1}mydomain.net$ than the construct mentioned above.

Greetings
-- 
Robert Sander   "Is it Friday yet?"
  @Home http://home.pages.de/~gurubert
pgp available there



ANNOUNCE: /var/qmail/control/locals and regex

1999-09-17 Thread Robert Sander

Hi!

There is now a webpage for the regex-patch at

http://beteigeuze.cs.tu-berlin.de/linux/qmail/

-- 
Greetings

Robert Sander
home.pages.de/~gurubert, pgp available there



Re: ANNOUNCE: /var/qmail/control/locals and regex

1999-09-17 Thread Russell Nelson

Robert Sander writes:
  Hi!
  
  There is now a webpage for the regex-patch at
  
  http://beteigeuze.cs.tu-berlin.de/linux/qmail/

What problem does this solve that a virtualdomain does not?  Yes,
control/locals allows only literal entries, but control/virtualdomains 
allows wildcards of the form ".foo.bar:piffle" to match "biff.foo.bar".
It also allows "baz.foo.bar:" to *not* be caught by the preceding entry.

-- 
-russ nelson [EMAIL PROTECTED]  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: locals and regex

1999-09-17 Thread Robert Sander

Hi!

So this must be worked out in the docs, or?

Greetings
-- 
Robert Sander   "Is it Friday yet?"
  @Home http://home.pages.de/~gurubert
pgp available there



/var/qmail/control/locals and regex

1999-09-15 Thread Robert Sander

Hi!

I made a patch to qmail-1.02 to have regular expressions in
.../control/locals. This avoids the need to put every host in the local
domain into that file. I think it is stable, but Your mileage may vary.

I haven't testet it under heavy load, it depends on how fast the regexec
function is. Maybe it could be faster than the old hash-function when
dealing with a large amount of hostnames, but I am not sure.

Now case ignoring extended regular expression are allowed in locals. And
if you prepend a regular expression with "!", it is negated. Order is now
important, the first match counts. Doing it this way you can have a
general regex for your domain and before that a special one excepting
some hostnames.

Please send any comments to me via personal mail.

P.S.: my SYSTYPE is linux-2.2.12-:i386-:-:ppro-:-

Greetings
-- 
Robert Sander   "Is it Friday yet?"
  @Home http://home.pages.de/~gurubert
pgp available there

 qmail_regex.tar.gz