Gordon Messmer wrote:
Aidas Kasparas wrote:
I use curier as a smarthost (antivirus scanner) for two sites using
Lotus Notes. Both provide user lists via LDAP, but have different
directories for political reasons. Email domains are different too. How
can I check that user is present in these directories before accepting
mail over smtp from not trusted senders?
I assume that, by "smarthost", you mean "mx server". One way that you
could do this would be to write a script which pulls all of the valid
users out of the two directories, and creates an alias file mapping
their email address to their destinations. You can then configure the
two domains as "hosteddomains". Unless you've configured a catch-all,
courier will, then, only accept mail for addresses present in the alias
file.
Thank you, Gordon, for idea.
But it has two problems:
1) synchronization of user lists -- if admin adds/deletes users from
lotus box, new users will be not recognized until synchronization and no
longer users will still be recognized...
2) I will have to add something to the domain in the aliases I create,
as otherwise they will not be sent to the right host for final delivery.
I would like to avoid that extra part.
Any better ideas?