distuguish between different domains

Marco Fretz marco.fretz at gmail.com
Mon Sep 28 06:29:59 UTC 2015

Hi Andreas,

I'm not 100% sure what you're trying to accomplish.

smtp_server in roundcube is the outgoing server (submission server, i.e.
postfix). Mailbox is IMAP (dovecot).
You can easily spawn 2 instances of dovecot, one serving aaa.de and one
serving bbb.de on different IPs.

What exactly is the problem with 2 domains on one dovecot? I mean user
@aaa.de usually does not have the password for @bbb.de and vise versa.

About the sending server in roundcube: I don't think there is a way to
have a different submission server for different sender domains in
roundcubde. But you could use the postfix configuration to map sender
domains to different outgoing connection IPs.

Does this help? If not, please tell us more about what you're trying to do.


On 27.09.2015 19:53, Andreas Meyer wrote:
> Hello!
> I asked myself wether it is possible to distinguish between
> different doamins in dovecot so that a user only sees his
> mailbox when he is connecting with user1 at aaa.de specifying
> the server with mail.aaa.de for example.
> So the server does not handout the mailbox for user1 at bbb.de
> when the client connects to mail.aaa.de as user1 at bbb.de
> I have this problem with roundcube. Dovecot is responisble
> for two domains. With roundcube I can login as user1 at aaa.de
> altough the client is configured like so:
> $config['smtp_server'] = 'tls://mail.bbb.de';
> and I am landing in the mailbox of user1 at aaa.de
> Is there a way to striktly differentiate between doamins?
> Both domains have their own IP-addresses.
> Regards
>   Andreas

More information about the dovecot mailing list