Problem solved! Firstly, a correction to my original post. The file
`/etc/postfix/virtual_mailboxes` should have had an aditional line, as follows:

> == /etc/postfix/virtual_mailboxes ==
> [email protected]     example.com/alice/
> [email protected]       example.com/bob/
> [email protected]  example.com/catchall/   # Previously missing line

Now, the problem was solved by specifying the catch-all address not as an alias
in `/etc/postfix/virtual_aliases`, but instead as a mailbox in
`/etc/postfix/virtual_mailboxes`, as follows:

> == /etc/postfix/virtual_mailboxes ==
> [email protected]     example.com/alice/
> [email protected]       example.com/bob/
> # Catch-all mailbox belongs to user `[email protected]`
> @example.com          example.com/catchall/   # Adjusted this line

> == /etc/postfix/virtual_aliases ==
> [email protected]  [email protected]

That is, the superfluous aliases `[email protected] [email protected]` and
`[email protected] [email protected]` no longer need to be specified, and the
mailbox resides at `/var/mail/virtual/example.com/catchall`, which I require in
order for my POP3/IMAP server (Dovecot) to fetch a user's mail based on which
username they log in with. Thus, if a user logs in as `[email protected]`,
they can now see mail that has landed in the catch-all mailbox.

-- Jivan

Reply via email to