Viktor Dukhovni: > > On Feb 12, 2021, at 12:29 PM, Eugene Podshivalov <yauge...@gmail.com> wrote: > > > > Another somewhat related question is: in order to probe the smtpd needs to > > resolve all virtual etc. mappings which is also done by the cleanup. Is > > this resolution done twice in this case? > > The smtpd(8) process does not perform any *rewriting*, the unmodified > "MAIL FROM" and "RCPT TO" addresses are passed to cleanup(8). > > However, smtpd(8) may perform a virtual(8) *lookup* in order to determine > recipient address *existence*, as part of table-based recipient address > validation (not to be confused with probe-based recipient address > verification). > > - virtual_alias_maps for all non-default address classes > - local_recipient_maps for addresses matching $mydestination > - virtual_mailbox_maps for addresses matching $virtual_mailbox_domains > - relay_recipient_maps for addresses matching $relay_domains > > These lookups check *existence* only. The RHS value is discarded.
Also: {recipient,}canonical_maps for all address classes. Wietse