Dovecot build failed

TrafalgarLaw999

Verified User
Joined
Dec 21, 2016
Messages
7
Hi!

I'm on Custom build 2.0 rev 2821, CentOS 6.

[root@server custombuild]# ./build version
2.0.0 (rev: 2821)

I'm following this guide here: https://www.directadmin.com/features.php?id=2019

Got this error message:

[root@server custombuild]# ./build dovecot_conf
Updating dovecot configuration files...
ensuring ssl_dh for dovecot: /etc/dovecot/dh.pem
Restarting dovecot.
Shutting down dovecot: [FAILED]
Starting dovecot: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 21: Unknown setting: username_filter
[FAILED]
Dovecot configuration files have been updated successfully.

Line 21 of /etc/dovecot/dovecot.conf is:
passdb {
username_filter = !*@*
driver = shadow
}

This thread here suggested to build a new dovecot: https://forum.directadmin.com/threads/dovecot-down-error.56412/

[root@server custombuild]# ./build dovecot
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: d2lzkl7pfhq30w.cloudfront.net
* rpmforge: ftp.riken.jp
Setting up Install Process
No package cloudlinux-scl-release available.
Error: Nothing to do
Loaded plugins: fastestmirror


Error getting repository data for cloudlinux-scl-release, repository not found
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: d2lzkl7pfhq30w.cloudfront.net
* rpmforge: ftp.riken.jp
Setting up Install Process
No package devtoolset-7 available.
Error: Nothing to do
Installing dovecot 2.3.17.1 ...
Found /usr/local/directadmin/custombuild/dovecot-2.3.17.1.tar.gz
Extracting ...
Done.
Patching syslog with LOG_PID ...
Patching maildirlock utility...
patching file src/util/maildirlock.c
Configuring dovecot 2.3.17.1 ...
Unable to open /etc/scl/prefixes/devtoolset-7!

*** There was an error while trying to configure dovecot. Please check configure/dovecot/configure.dovecot file.
[root@server custombuild]#

Tried to install those missing packages, but no packages were founded. Maybe I'm on CentOS 6?

yum install cloudlinux-scl-release
yum install devtoolset-7

Also, this is the content of configure/dovecot/configure.dovecot

#!/bin/sh
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --without-icu

From this point, I'm struck. Please help, thanks!
 
Error getting repository data for cloudlinux-scl-release, repository not found
It's always wise to mention that you are on cloudlinux if you have a question.

Line 21 of /etc/dovecot/dovecot.conf is:
Yes it's odd that it's complaining about that, because on Centos 7 and Almalinux 8.5 contains exactly the same line.
Even that complete passdb block is the same.

What version is your dovecot.conf? You can see that on top of the file.
 
I don't know if I'm on a cloudlinux or not. I don't think so, is there a way to see if I'm on it?

This is my entire dovecot.conf content
[root@server dovecot]# cat /etc/dovecot/dovecot.conf
#0.4
## Dovecot 2.0 configuration file

!include conf/ip.conf

auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@&
auth_verbose = yes
disable_plaintext_auth = no
login_greeting = Dovecot DA ready.
mail_access_groups = mail
default_login_user = dovecot
mail_location = maildir:~/Maildir

!include conf/limits.conf
!include conf/namespace_private.conf
!include conf/maildir_copy_with_hardlinks.conf

!include_try conf/custom_passdb.conf

passdb {
username_filter = !*@*
driver = shadow
}

passdb {
username_filter = *@*
args = username_format=%n /etc/virtual/%d/passwd
driver = passwd-file
}

!include_try conf/alternate_passwd.conf

!include conf/protocols.conf
!include conf/mail_plugins.conf

service auth {
user = root
}
service imap-login {
process_min_avail = 16
user = dovecot
}
service pop3-login {
process_min_avail = 16
user = dovecot
}

!include conf/ssl.conf

userdb {
# hide "unknown user"
auth_verbose = no
driver = passwd
}

userdb {
args = username_format=%n /etc/virtual/%d/passwd
driver = passwd-file
}

verbose_proctitle = yes

protocol imap {
!include conf/imap_mail_plugins.conf
}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s, bytes=%i/%o
}

!include conf/mail_max_userip_connections.conf

!include_try conf/lmtp.conf

!include conf.d/*.conf
 
is there a way to see if I'm on it?
If you would have it, you would know it, because you have to pay for it. I'm not sure, but it's saying it did not find the repository, so for some reason the system is looking for it. But it might not be required.

The version dovecot.conf looks fine, that is the newest one.

No package devtoolset-7 available. -> Should be present in custombuild 2 though.
2724 - Use devtoolset-7 to build dovecot on CentOS6.

Are you on Centos 6 32-bit of 64-bit?
 
We have an Centos 6 box which has updated the latest dovecot update without problems so I doubt this has to do with Centos 6
 
Back
Top