What I need now, is a way to get procmail lookup 3 databases in order to find
out if a local address really exists:
The unix passwd database and the MTA aliases database (obviously), but also,
for the majority of addresses which don't have any unix account on the
mailboxes server but are registered, in a possibly remote database.
1. use the standard mailbox directory if the address is in the unix
passwd
database.
2. send the mail to the alias
3. do mailbox directory hashing using the address if it is found in the
remote(?) database
I am thinking of three solutions, but I don't know which one of them is the
most reliable/feasible one:
1. determine those conditions in sendmail, and use procmail only for
the
third one
2. determine those conditions in procmail, and fork sendmail for the
two
first conditions
3. use a completly rewritten local MDA, possibly forking procmail for
the
third condition (let's hope we won't be writting something as complex as
sendmail :-))
I would say to use sendmail for this and not procmail. I would think a
custom db database would do this trick. I suspect it would also be
faster than the other solutions you propose. I'll be doing something
similar (although not near as complex) rather soon.
--
Richard Coleman
System Administrator
School of Mathematics
coleman(_at_)math(_dot_)gatech(_dot_)edu