• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

trouble with dovecot

Red Squirrel

No Lifer
I'm trying to figure out how to setup virtual users for dovecot so I setup something based on documentation and having lot of trouble. I keep getting this error when I try to start.

Starting Dovecot Imap: Error: Error in configuration file /etc/dovecot.conf line 208: Expecting '='


Line 208 is marked here:

mail_location = mbox: /var/mail/vmail/%d/%n:INBOX=/var/mail/vmail/%d/%n/inbox

userdb passwd-file <---line 208
{
args = /var/mail/vmail/%d/passwd
}

passdb passwd-file
{
args = /var/mail/vmail/%d/shadow
}



What did I do wrong?
 
Im not a Dovecot expert but my first guess is the userdb variable is already set.

Try commenting out
userdb passwd {
}

let us know what the problem was.
 
What does your whole dovecot.conf file look like? Get rid of any commented out lines when you post it.

Here's mine, for example:

protocols = pop3 imap

disable_plaintext_auth = no

log_timestamp = "%Y-%m-%d %H:%M:%S "

mail_location = maildir:/mail/%d/%n

first_valid_uid = 105

first_valid_gid = 106

protocol imap {
}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}

auth default {
mechanisms = plain
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
userdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
user = root
}

plugin {
}
 
wow mine is way bigger, is that alone valid to run the server? I'm thinking I may have mucked up something somewhere else which is causing an issue. I've been wanting to just start it over but I never did a backup before playing with it, yeah bad. 😛

Theres two equals in the mail location since thats what was in the docs for the example I was looking at. Though I see yours does not have that inbox part specified... so maybe thats the issue too.
 
weird I trimmed down my file and its still doing same thing, expecting = at the passwd-file part.




protocols = pop3 imap

disable_plaintext_auth = no

log_timestamp = "%Y-%m-%d %H:%M:%S "

mail_location = mbox:/var/mail/vmail/%d/%n

first_valid_uid = 105

first_valid_gid = 106

protocol imap {
}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}

auth default {
mechanisms = plain


userdb passwd-file
{
args = /var/mail/vmail/%d/passwd
}

passdb passwd-file
{
args = /var/mail/vmail/%d/shadow
}


user = root
}

plugin {
}

 
Think I figured it out but did not test to see if it actually works yet, I'm not sure how to create the password files (did not get to reading up on that yet).

But think the issue is:

it has to be like this:


userdb passwd-file {
args = /var/mail/vmail/%d/passwd
}


And not like this:


userdb passwd-file
{
args = /var/mail/vmail/%d/passwd
}


Did not figure it made a difference but decided to try it.
 
Back
Top