Dear FreeBSD users,
I am running a mail server with OpenBSD opensmtpd for mail delivery and Dovecot for IMAP access. The server accepts mail for two domains, let's call them
opensmtpd can match domains when delivering mail, meaning I have control over where I store it. The problem arises with IMAP access, though. Because the users authenticate only with
Is there any simple way for getting Dovecot to access different mailboxes, depending on the domain one connects two? The domains have separate MX entries, like
I am running a mail server with OpenBSD opensmtpd for mail delivery and Dovecot for IMAP access. The server accepts mail for two domains, let's call them
domain1
and domain2
. Users authenticate against the system /etc/passwd file, meaning they log in to SMTP/IMAP only using username
rather than username@domainX
.opensmtpd can match domains when delivering mail, meaning I have control over where I store it. The problem arises with IMAP access, though. Because the users authenticate only with
username
, the domain login variable is empty, meaning I cannot differentiate between users accessing domain1
or domain2
. For now, both domains use a shared inbox, which works, but is not what I'd like.Is there any simple way for getting Dovecot to access different mailboxes, depending on the domain one connects two? The domains have separate MX entries, like
mail.domain1.net
and mail.domain2.net
.