Sorry, I sent that this morning just before running off to my job. 
Here's the section of dovecot.conf that I'm working on:


ssl_server_cert_file =
/etc/letsencrypt/live/mailserver.example1.com/fullchain.pem
ssl_server_key_file =
/etc/letsencrypt/live/mailserver.example1.com/privkey.pem

local 127.0.0.1 {
local_name mailserver.example1.com {
protocol imap {
ssl_server_cert_file =
/etc/letsencrypt/live/mailserver.example1.com/fullchain.pem
ssl_server_key_file =
/etc/letsencrypt/live/mailserver.example1.com/privkey.pem
}
}

local_name mail.example2.net {
protocol imap {
ssl_server_cert_file =
/etc/letsencrypt/live/mail.example2.net/fullchain.pem
ssl_server_key_file =
/etc/letsencrypt/live/mail.example2.net/privkey.pem
}
}
}

When I was running Dovecot 2.3, I was able to send and receive email to
and from example1.com and example2.net.  I want to be able to do the
same with 2.4, but right now when I try to start Dovecot I get an error
message like this:

doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf
line 42: Unknown section name: local

I tried to follow the documentation for using local and local_name but
I've obviously made a horrible mistake.

Ken

On Mon, 2025-02-10 at 16:11 +0200, Aki Tuomi wrote:
> Ken, would help if you would give a bit more context or information
> what exactly do you want to achive?
> 
> Aki
> 
> > On 10/02/2025 15:57 EET Zakaria via dovecot <dovecot@dovecot.org>
> > wrote:
> > 
> >  
> > I think you need proxy solution on top of dovecot, e.g create two 
> > subdomains allocating one for each server and configure dovecot
> > with 
> > each, and use haproxy to forward each subdomain requests to each
> > server 
> > mta or mail server(imap, pop3) i.e. dovecot ports.
> > 
> > On 2025-02-10 13:21, Ken Wright via dovecot wrote:
> > > I host two email servers, example1.com and example2.net. How can
> > > I
> > > configure Dovecot 2.4 to distinguish between the two?
> > > 
> > > Ken
> > > _______________________________________________
> > > dovecot mailing list -- dovecot@dovecot.org
> > > To unsubscribe send an email to dovecot-le...@dovecot.org
> > _______________________________________________
> > dovecot mailing list -- dovecot@dovecot.org
> > To unsubscribe send an email to dovecot-le...@dovecot.org
> 

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to