PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > access "Compat:" tag
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

access "Compat:" tag

Réponse
 
LinkBack Outils de la discussion
Vieux 14/09/2006, 16h34   #1 (permalink)
David Lee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut access "Compat:" tag

(Linux FC5, sendmail 8.13.7)

The use made by "check_mail" of the "From:" tag in the access database is
nicely flexible, allowing (for exmaple) entries both of simple domains
(e.g. "dom.ain") and full email addresses ("a.person@dom.ain"). For
instance the "dom.ain" style entries can be imagined as having the
high-level effect of pattern-matching anything at that domain.

(Hold that flexibility in mind and step sideways...)

For some time we've had our own "check_compat" ruleset, and it would seem
worthwhile replacing this with the supplied "FEATURE(compat_check)", if
reasonably possible.

But this feature seems only to allow exact names:
Compat:me@here<@>them@there

As I read it, it doesn't permit the sender or recipient to be some sort of
pattern (domain only, sendmail classes, etc). Our own rules make
extensive use of things such as "$j", "$=R" to determine OK/ERROR result,
including treating <@$+.$=R.> differently from <@$=R.>

Any thoughts? Pointers to descriptions and examples of doing such
pattern-like things via sendmail's own "FEATURE(compat_check)"?


--

: David Lee I.T. Service :
: Senior Systems Programmer Computer Centre :
: Durham University :
: http://www.dur.ac.uk/t.d.lee/ South Road :
: Durham DH1 3LE :
: Phone: +44 191 334 2752 U.K. :
  Réponse avec citation
Vieux 19/09/2006, 12h47   #2 (permalink)
jmaimon@ttec.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: access "Compat:" tag


David Lee wrote:
> (Linux FC5, sendmail 8.13.7)
>
> The use made by "check_mail" of the "From:" tag in the access database is
> nicely flexible, allowing (for exmaple) entries both of simple domains
> (e.g. "dom.ain") and full email addresses ("a.person@dom.ain"). For
> instance the "dom.ain" style entries can be imagined as having the
> high-level effect of pattern-matching anything at that domain.
>
> (Hold that flexibility in mind and step sideways...)
>
> For some time we've had our own "check_compat" ruleset, and it would seem
> worthwhile replacing this with the supplied "FEATURE(compat_check)", if
> reasonably possible.
>
> But this feature seems only to allow exact names:
> Compat:me@here<@>them@there
>
> As I read it, it doesn't permit the sender or recipient to be some sort of
> pattern (domain only, sendmail classes, etc). Our own rules make
> extensive use of things such as "$j", "$=R" to determine OK/ERROR result,
> including treating <@$+.$=R.> differently from <@$=R.>



Can you make your rulesets available as a patch and/or m4 file?

Also check_mail only has access to recipient information if you are
using delay_checks

On the other hand, check_rcpt always has access to sender information.

  Réponse avec citation
Vieux 28/09/2006, 14h13   #3 (permalink)
David Lee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: access "Compat:" tag

On Tue, 19 Sep 2006, jmaimon@ttec.com wrote:

> David Lee wrote:
> > (Linux FC5, sendmail 8.13.7)
> >
> > The use made by "check_mail" of the "From:" tag in the access database is
> > nicely flexible, allowing (for exmaple) entries both of simple domains
> > (e.g. "dom.ain") and full email addresses ("a.person@dom.ain"). For
> > instance the "dom.ain" style entries can be imagined as having the
> > high-level effect of pattern-matching anything at that domain.
> >
> > (Hold that flexibility in mind and step sideways...)
> >
> > For some time we've had our own "check_compat" ruleset, and it would seem
> > worthwhile replacing this with the supplied "FEATURE(compat_check)", if
> > reasonably possible.
> >
> > But this feature seems only to allow exact names:
> > Compat:me@here<@>them@there
> >
> > As I read it, it doesn't permit the sender or recipient to be some sort of
> > pattern (domain only, sendmail classes, etc). Our own rules make
> > extensive use of things such as "$j", "$=R" to determine OK/ERROR result,
> > including treating <@$+.$=R.> differently from <@$=R.>

>
>
> Can you make your rulesets available as a patch and/or m4 file?


Thanks for your reply, and my apologies for the delay in this
acknowledgement.

At present our ruleset "check_compat" ruleset is relatively simple, but is
both non-flexible and also has too much in-built knowledge of our domains.
So we cannot easily do routine updates based on users or domains, and
those rulesets are no good for use by other site admins.

I was hoping to have (or create) something more general, so that none of
the domain/user specific knowledge would be in the ruleset but instead all
be in the frequently updateable "access" (or similar) database(s).

At present (do I understand correctly?) "Compat:" can only be exact pairs:
Compat:me@here<@>them@there

where "me@here" and "them@there" are full, exact email names.

Taking that as the baseline, against which the comments below highlight
the variation, I was looking for the ability of:

(1) Compat:@here<@>them@there # (from) match: anyone "@here" (not just "me")
(2) Compat:@me@here<@> # (to) match: every-one @ every-there
(3) Compat:@$=m<@>them@there # (from) match anything in class "$=m"

etc.

I can probably code up rules for cases (1) and (2) and their obvious
extensions, probably modelled loosely on the rulesets that drive
"virtuser". But how to do something like (3)?


Does any of this already exist? Does anyone have something nearly there?

It seems a sound idea which we (the sendmail-using site-admins reading
this newsgroup, self included) ought to consider incorporating somehow.


--

: David Lee I.T. Service :
: Senior Systems Programmer Computer Centre :
: Durham University :
: http://www.dur.ac.uk/t.d.lee/ South Road :
: Durham DH1 3LE :
: Phone: +44 191 334 2752 U.K. :
  Réponse avec citation
Vieux 28/09/2006, 20h16   #4 (permalink)
David Lee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: access "Compat:" tag

On Thu, 28 Sep 2006, David Lee wrote:

> [...]
> At present (do I understand correctly?) "Compat:" can only be exact pairs:
> Compat:me@here<@>them@there
>
> where "me@here" and "them@there" are full, exact email names.
>
> Taking that as the baseline, against which the comments below highlight
> the variation, I was looking for the ability of:
>
> (1) Compat:@here<@>them@there # (from) match: anyone "@here" (not just "me")
> (2) Compat:@me@here<@> # (to) match: every-one @ every-there
> (3) Compat:@$=m<@>them@there # (from) match anything in class "$=m"
>
> [...]


I didn't proof-check that carefully enough. Try again:

(1) Compat:@here<@>them@there
# (from) match: anyone "@here" (not just "me")

(2) Compat:me@here<@>
# (to) match: every-one @ every-there

(3) Compat:@$=m<@>them@there
# (from) match any 'me' @ any local 'here' in class "$=m"

> [...]
> Does any of this already exist? Does anyone have something nearly there?
>
> It seems a sound idea which we (the sendmail-using site-admins reading
> this newsgroup, self included) ought to consider incorporating somehow.


--

: David Lee I.T. Service :
: Senior Systems Programmer Computer Centre :
: Durham University :
: http://www.dur.ac.uk/t.d.lee/ South Road :
: Durham DH1 3LE :
: Phone: +44 191 334 2752 U.K. :
  Réponse avec citation
Vieux 29/09/2006, 20h49   #5 (permalink)
jmaimon@ttec.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: access "Compat:" tag


David Lee wrote:
> On Thu, 28 Sep 2006, David Lee wrote:
>


> (3) Compat:@$=m<@>them@there
> # (from) match any 'me' @ any local 'here' in class "$=m"


In your ruleset match on $=m and update your lookup tag based on that.
When you build your db entires, use that tag.

You cant pass a class directly to a map for lookup.

  Réponse avec citation
Vieux 02/10/2006, 20h07   #6 (permalink)
David Lee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: access "Compat:" tag

On Fri, 29 Sep 2006, jmaimon@ttec.com wrote:

>
> David Lee wrote:
> > On Thu, 28 Sep 2006, David Lee wrote:
> >

>
> > (3) Compat:@$=m<@>them@there
> > # (from) match any 'me' @ any local 'here' in class "$=m"

>
> In your ruleset match on $=m and update your lookup tag based on that.
> When you build your db entires, use that tag.


Thanks. Do you mean match ruleset LHS on "$=m", and in the (successfully
matched) corresponding RHS put some sort of unique character string (e.g.
"<M_MATCH>"), and have the db constructed using that "<M_MATCH>" string?


> You cant pass a class directly to a map for lookup.


Thanks. (I was aware of that, but it never does any harm to mention the
obvious!)



--

: David Lee I.T. Service :
: Senior Systems Programmer Computer Centre :
: Durham University :
: http://www.dur.ac.uk/t.d.lee/ South Road :
: Durham DH1 3LE :
: Phone: +44 191 334 2752 U.K. :
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h14.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13320 seconds with 14 queries