Dnia 21.02.2022 o godz. 22:30:31 Phil Biggs pisze:
> 
> Dovecot only accepts email for addresses for which it has a matching user 
> account. As you say, it is just used a message store.  However, I wasn't able 
> to find a way to have a dovecot user receive mail addressed to any address 
> other than one that matched the login "user" name.  I also couldn't face the 
> prospect of manually changing the login user in the MUA for every account.

The part I am wondering about is exactly "Dovecot accepts". As far as I
know, Dovecot does not need to "accept" anything, because it does not
receive mail. Programs external to Dovecot, which Dovecot knows nothing
about (like Postfix) are receiving mail and delivering it directly to
mailboxes accessed (also) by Dovecot, using their own mappings
(virtual_mailbox_maps in case of Postfix). Dovecot itself is not involved
in the process and does not need to "receive" anything. At least that's how
I always used it :).

Dovecot comes into play only when user logs in to IMAP account. It keeps its
own mapping between login names (which do not need to be email addresses,
they can be just any names) and mailboxes corresponding to these users. 
User logs in using some name and gets access to a particular mailbox. 
That's all what Dovecot does.

In other words, you need a mapping email@address->mailbox in Postfix and
another mapping, login_name->mailbox in Dovecot. I still see no need for
aliases here. Unless you want mail for several different email addresses to
be delivered to the same mailbox, in that case you would need
virtual_alias_maps mapping email@address1->destination@address,
email@address2->destination@address etc., and virtual_mailbox_maps mapping
destination@address->mailbox. Is that your case?

But this still doesn't have anything to do with Dovecot "accepting" any
email addresses, because Dovecot just provides access to a mailbox. Once you
properly log in, you have access to all messages stored in the mailbox,
regardless of what email addresses they were sent to.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."

Reply via email to