your implementation has several flaws IMHO...

On Tue, Jan 14, 2003 at 06:22:35PM +0000, Ricardo Cerqueira wrote:
> 1 - qmail-smtpd checks at startup if the environment var CHECKRCPT
> exists. If it doesn't, no validation will be performed. This is useful
> when used with tcpserver. (1.2.3.:allow,RELAYCLIENT="",CHECKRCPT=1)

good.

> 2 - if CHECKRCPT is true, control/checkdomains will be read.

bad. this has enourmous performance/scaling problems, just like rcpthosts -
that's why morercpthosts.cdb exists in the first place...
I don't see the point in this control file at all.

> 3 - If the recipient domain is listed in checkdomains, control/checkskip
> will be read.

uneeded too IMHO...

> 4 - If the recipient local part is *not* listed in checkskip,
> qmail-smtpd searches the LDAP server for
> [EMAIL PROTECTED]

supports extension addresses?

> Why CHECKRCPT? - Because it's an easy way to completely disable the
> checks.

agreed.

> Why checkdomains? - Because I only want to check a few of my own
> domains. I could use locals, but that would be unconfortable if I wanted
> a whole domain to sit in ~alias.

hmm you have a point here. though checkdomains is the wrong solution IMHO.

> Why checkskip? - Because some addresses aren't at the LDAP server, like
> root, postmaster, and mailer-daemon. They sit in ~alias, and would be
> rejected if searched.

yup, and that makes this even harder.

you are inventing more control files that need to be kept in sync.
management issues.


-- 
http://2suck.net/hhwl.html
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)

Reply via email to