/*++ /* NAME /* smtpd_resolve 3 /* SUMMARY /* caching resolve client /* SYNOPSIS /* #include <smtpd_resolve.h> /* /* void smtpd_resolve_init(cache_size) /* int cache_size; /* /* const RESOLVE_REPLY *smtpd_resolve_addr(sender, addr) /* const char *sender; /* const char *addr; /* DESCRIPTION /* This module maintains a resolve client cache that persists /* across SMTP sessions (not process life times). Addresses /* are always resolved in local rewriting context. /* /* smtpd_resolve_init() initializes the cache and must be /* called before the cache can be used. This function may also /* be called to flush the cache after an address class update. /* /* smtpd_resolve_addr() resolves one address or returns /* a known result from cache. /* /* Arguments: /* .IP cache_size /* The requested cache size. /* .IP sender /* The message sender, or null pointer. /* .IP addr /* The address to resolve. /* DIAGNOSTICS /* All errors are fatal. /* BUGS /* The recipient address is always case folded to lowercase. /* Changing this requires great care, since the address is used /* for policy lookups. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA
/*--*/