You are not logged in.

#1 2023-12-13 07:22:41

PauNova
Member
Registered: 2023-12-13
Posts: 3

Issue with Dovecot Configuration: 'No Matches' Error for !include auth

Hello,

I am encountering a persistent issue with my Dovecot email server configuration. Despite my efforts to troubleshoot, I've hit a roadblock and am seeking assistance.

Problem Description:

Dovecot reports an error stating "no matches" for the line !include auth-system.conf.ext in the main Dovecot configuration file (dovecot.conf). This issue is preventing Dovecot from starting successfully.

Configuration and Steps Taken:

Dovecot Version: [Include your Dovecot version here]

Operating System: Linux

Dovecot Configuration (dovecot.conf): The relevant section of my dovecot.conf is as follows:

python
Copy code
...
auth_mechanisms = plain login
!include auth-system.conf.ext
...
auth-system.conf.ext File: This file is located at /etc/dovecot/conf.d/auth-system.conf.ext and contains standard configuration for PAM authentication and user database setup. Permissions for this file are set correctly (-rw-r--r--), and it's owned by root.

Error Message: The exact error message from Dovecot is: "no matches for !include auth-system.conf.ext". This error is reported despite the file existing and appearing to be correctly configured.

Troubleshooting Steps:

Verified the existence and permissions of auth-system.conf.ext.
Examined the contents of auth-system.conf.ext for syntax errors or misconfigurations.
Ensured that Dovecot has read access to the file.
Checked Dovecot logs for detailed error messages but found none that specifically point to the cause of this issue.
Ran Dovecot configuration tests using doveconf -n but did not identify any clear issues.
Request for Assistance:

I am looking for insights or suggestions that could help resolve this issue. Specifically, I am interested in understanding why Dovecot is unable to process the !include auth-system.conf.ext directive despite the file being present and correctly configured.

Any advice or guidance would be greatly appreciated. Thank you in advance for your time and assistance.

If it serves here's my actual dovecot.conf file:


## Dovecot configuration file

# Enable installed protocols
!include_try /usr/share/dovecot/protocols.d/*.protocol

# Base directory where to store runtime data.
base_dir = /var/run/dovecot/

# Enable IMAP and POP3
protocols = imap pop3

# SSL/TLS settings
ssl = required
ssl_cert = </etc/dovecot/certs/fullchain.pem
ssl_key = </etc/dovecot/private/privkey.pem

# Mail location - using Maildir format
mail_location = maildir:~/Maildir

# Authentication configuration
auth_mechanisms = plain login
!include auth-system.conf.ext

# Include additional configurations
!include conf.d/*.conf

------------------------------

And the error says no matches on line 22 which is: !include auth-system.conf.ext

Offline

#2 2023-12-16 11:33:43

GeneArch
Member
Registered: 2013-07-28
Posts: 95

Re: Issue with Dovecot Configuration: 'No Matches' Error for !include auth

In the auth-system.conf.ext file, are there valid (uncommented) lines for passdb and userdb ? I assume so, as this file by default has valid data but thought it worth checking anyway

e.g.
    passdb {
      driver = pam
   }
   userdb {
     driver = passwd
   }

Offline

#3 2023-12-16 14:20:52

PauNova
Member
Registered: 2023-12-13
Posts: 3

Re: Issue with Dovecot Configuration: 'No Matches' Error for !include auth

Hi Gene:) Thx for reply!

if it server,here my auth-system.conf.ext file:

# Authentication for system users. Included from 10-auth.conf.
#
# <doc/wiki/PasswordDatabase.txt>
# <doc/wiki/UserDatabase.txt>

# PAM authentication. Preferred nowadays by most systems.
# PAM is typically used with either userdb passwd or userdb static.
# REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
# authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
passdb {
  driver = pam
  # [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
  # [cache_key=<key>] [<service name>]
  #args = dovecot
}

# System users (NSS, /etc/passwd, or similar).
# In many systems nowadays this uses Name Service Switch, which is
# configured in /etc/nsswitch.conf. <doc/wiki/AuthDatabase.Passwd.txt>
#passdb {
  #driver = passwd
  # [blocking=no]
  #args =
#}

# Shadow passwords for system users (NSS, /etc/shadow or similar).
# Deprecated by PAM nowadays.
# <doc/wiki/PasswordDatabase.Shadow.txt>
#passdb {
  #driver = shadow
  # [blocking=no]
  #args =
#}

# PAM-like authentication for OpenBSD.
# <doc/wiki/PasswordDatabase.BSDAuth.txt>
#passdb {
  #driver = bsdauth
  # [blocking=no] [cache_key=<key>]
  #args =
#}

##
## User databases
##

# System users (NSS, /etc/passwd, or similar). In many systems nowadays this
# uses Name Service Switch, which is configured in /etc/nsswitch.conf.
userdb {
  # <doc/wiki/AuthDatabase.Passwd.txt>
  driver = passwd
  # [blocking=no]
  #args =

  # Override fields from passwd
  #override_fields = home=/home/virtual/%u
}

# Static settings generated from template <doc/wiki/UserDatabase.Static.txt>
#userdb {
  #driver = static
  # Can return anything a userdb could normally return. For example:
  #
  #  args = uid=500 gid=500 home=/var/mail/%u
  #
  # LDA and LMTP needs to look up users only from the userdb. This of course
  # doesn't work with static userdb because there is no list of users.
  # Normally static userdb handles this by doing a passdb lookup. This works
  # with most passdbs, with PAM being the most notable exception. If you do
  # the user verification another way, you can add allow_all_users=yes to
  # the args in which case the passdb lookup is skipped.
  #
  #args =
#}

Offline

#4 2023-12-16 15:59:17

GeneArch
Member
Registered: 2013-07-28
Posts: 95

Re: Issue with Dovecot Configuration: 'No Matches' Error for !include auth

That's the default one and should be okay.
I'm not sure when you quoted above  has the word 'python' is that a typo?

Also my dovecot.conf is the default and the last line has:

!include conf.d/*.conf

And it in turn includes 10-auth.conf which then includes the file you mention.

Sounds like you have more 'stuff' in your dovecot.conf instead of in conf.d/xxx
If were me, I'd start with the default configs and go from there.

Offline

#5 2023-12-17 16:58:52

PauNova
Member
Registered: 2023-12-13
Posts: 3

Re: Issue with Dovecot Configuration: 'No Matches' Error for !include auth

Really apreciate it man:) i guess im gonna start form the beginning again!

Offline

#6 2023-12-17 18:22:36

GeneArch
Member
Registered: 2013-07-28
Posts: 95

Re: Issue with Dovecot Configuration: 'No Matches' Error for !include auth

OK let us know how it goes.

Offline

Board footer

Powered by FluxBB