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
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. regards Marco 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
Hello! Marco Fretz <marco.fretz at gmail.com> schrieb am 28.09.15 um 08:29:59 Uhr:> 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.How do I do this?> 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.What is irritating me is that when there are two domains served by dovecot, in the client I can specify server.aaa.de although I have an email-address user at bbb.de and connect as such. For my understanding it should not be possible to connect to server server.aaa.de with an address line user at bbb.de and dovecot serves the mailbox of that user.> 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.Postfix is not the problem. It's the login into the IMAP-server that is irritating me. Or am I completely wrong? Regards Andreas