On Fri, Aug 21, 2015 at 02:42:04PM +0200, Jeroen Scheerder wrote:
> $ postmap -q @example.com ldap:/usr/local/etc/postfix/example.com-users.cf
> $ postmap -q @example.com ldap:/usr/local/etc/postfix/example.com-groups.cf
> $
>
> Nothing, as expected.
In that case, SMTP mail to non-existent recipients in virtual mailbox
domains will be rejected.
> > And where did this mail originate? (Show all log entries for the queue id).
>
> Locally submitted, by:
For local submission, virtual_mailbox_maps is not checked until
the mail gets to the delivery agent. Only virtual alias domains
have recipient validation done by the queue manager (via
trivial-rewrite).
If local mail is sent to non-existent users, you'll need to configure
dovecot (or other delivery agent) to know which users are valid.
Alternatively, make the domain a virtual alias domain, and rewrite
all valid users to some other domain actually used for delivery.
--
Viktor.