Hello!
I am planning a migration of the Postfix/Dovecot mail system to a new FreeBSD server.
In recent years, I have come to prefer the official ports/packages installations; however, the FreeBSD port of Dovecot is still at 2.3.21 which is substantially different from the current upstream 2.4.1.
I have no problems with installing from sources (have been doing that for a long time) but I wonder what is the recommended approach with regard to the installation and configuration paths. I would prefer to follow the standard conventions and eventually switch to the ports-based install once it catches up, with minimal disruption and reconfiguration.
Thank you in advance Eugene
On Sat, Jun 7, 2025 at 3:56 PM Eugene R via dovecot <dovecot@dovecot.org> wrote:
Hello!
I am planning a migration of the Postfix/Dovecot mail system to a new FreeBSD server.
In recent years, I have come to prefer the official ports/packages installations; however, the FreeBSD port of Dovecot is still at 2.3.21 which is substantially different from the current upstream 2.4.1.
I have no problems with installing from sources (have been doing that for a long time) but I wonder what is the recommended approach with regard to the installation and configuration paths. I would prefer to follow the standard conventions and eventually switch to the ports-based install once it catches up, with minimal disruption and reconfiguration.
Thank you in advance Eugene
The most important parts of Dovecot are the files in etc/dovecot/ and these, IIRC, don't refer to any absolute paths. So you could just use "./configure --prefix=/opt/dovecot2.4" and add your favorite options to install Dovecot. Once 2.4 hits the FreeBSD ports, you'll simply move these files to /usr/local/etc/dovecot and you are done.
PS: I might not have understood your dilemma since you mentioned that you've been installing from sources for a long time.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
On Sat, Jun 7, 2025 at 3:56 PM Eugene R via dovecot <dovecot@dovecot.org> wrote: Hello!
I am planning a migration of the Postfix/Dovecot mail system to a new
FreeBSD server.
In recent years, I have come to prefer the official ports/packages
installations; however, the FreeBSD port of Dovecot is still at
2.3.21
which is substantially different from the current upstream 2.4.1.
I have no problems with installing from sources (have been doing that
for a long time) but I wonder what is the recommended approach with
regard to the installation and configuration paths. I would prefer to
follow the standard conventions and eventually switch to the ports-
based
install once it catches up, with minimal disruption and
reconfiguration.
Thank you in advance
Eugene
The most important parts of Dovecot are the files in etc/dovecot/ and these, IIRC, don't refer to any absolute paths. So you could just use "./configure --prefix=/opt/dovecot2.4" and add your favorite options to install Dovecot. Once 2.4 hits the FreeBSD ports, you'll simply move these files to /usr/local/ etc/dovecot and you are done.
PS: I might not have understood your dilemma since you mentioned that you've been installing from sources for a long time.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart- questions.html]
Hello,
Yeah, I had, but at that time I was not planning on eventual merge ))
So, do I understand correctly that, in spite of that, it is still best to keep "my" dovecot and its config in a separate tree (and only merge the config in the end) rather than try to match the "official" paths?
On 07.06.2025 16:47, Odhiambo Washington wrote:
On Sat, Jun 7, 2025 at 3:56 PM Eugene R via dovecot <dovecot@dovecot.org> wrote:
Hello! I am planning a migration of the Postfix/Dovecot mail system to a new FreeBSD server. In recent years, I have come to prefer the official ports/packages installations; however, the FreeBSD port of Dovecot is still at 2.3.21 which is substantially different from the current upstream 2.4.1. I have no problems with installing from sources (have been doing that for a long time) but I wonder what is the recommended approach with regard to the installation and configuration paths. I would prefer to follow the standard conventions and eventually switch to the ports-based install once it catches up, with minimal disruption and reconfiguration. Thank you in advance Eugene
The most important parts of Dovecot are the files in etc/dovecot/ and these, IIRC, don't refer to any absolute paths. So you could just use "./configure --prefix=/opt/dovecot2.4" and add your favorite options to install Dovecot. Once 2.4 hits the FreeBSD ports, you'll simply move these files to /usr/local/etc/dovecot and you are done.
PS: I might not have understood your dilemma since you mentioned that you've been installing from sources for a long time.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
Hello, Yeah, I had, but at that time I was not planning on eventual merge )) So, do I understand correctly that, in spite of that, it is still best to keep "my" dovecot and its config in a separate tree (and only merge the config in the end) rather than try to match the "official" paths? On 07.06.2025 16:47, Odhiambo Washington wrote:
On Sat, Jun 7, 2025 at 3:56 PM Eugene R via dovecot <dovecot@dovecot.org> wrote: Hello!
I am planning a migration of the Postfix/Dovecot mail system to a new
FreeBSD server.
In recent years, I have come to prefer the official ports/packages
installations; however, the FreeBSD port of Dovecot is still at
2.3.21
which is substantially different from the current upstream 2.4.1.
I have no problems with installing from sources (have been doing that
for a long time) but I wonder what is the recommended approach with
regard to the installation and configuration paths. I would prefer to
follow the standard conventions and eventually switch to the ports-
based
install once it catches up, with minimal disruption and
reconfiguration.
Thank you in advance
Eugene
The most important parts of Dovecot are the files in etc/dovecot/ and these, IIRC, don't refer to any absolute paths. So you could just use "./configure --prefix=/opt/dovecot2.4" and add your favorite options to install Dovecot. Once 2.4 hits the FreeBSD ports, you'll simply move these files to /usr/local/ etc/dovecot and you are done.
PS: I might not have understood your dilemma since you mentioned that you've been installing from sources for a long time.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart- questions.html]
On Sat, 2025-06-07 at 20:33 +0300, Eugene R via dovecot wrote:
Hello,
Yeah, I had, but at that time I was not planning on eventual merge ))
So, do I understand correctly that, in spite of that, it is still best to keep "my" dovecot and its config in a separate tree (and only merge the config in the end) rather than try to match the "official" paths?
I am not familiar with the freebsd package manager (pkg) nor how you set it up to ensure user provided configs are not overwritten nor whether your own package uses same (conflicting) package name as the other one.
IMHO, as long as:
(a) the official and your own package do not change, replace or delete the configs when installed or upgraded.
(b) the 2 packages "conflict" with each and cannot be simultaneously installed.
Then there is no reason not to always put them in the one standard place. In fact, IMHO, it is the better choice.
I assume (a) is always true, otherwise the package manager would be pretty awful to use in practice.
However if either constraint above is violated, then probably better to keep the configs for each unique to it's own package since, for all intents and purposes, the 2 packages are distinct and separate.
-- Gene
participants (3)
-
Eugene R
-
Genes Lists
-
Odhiambo Washington