trouble with dovecot

Red Squirrel

No Lifer
May 24, 2003
70,166
13,573
126
www.anyf.ca
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?
 

Khyron320

Senior member
Aug 26, 2002
306
0
0
www.khyrolabs.com
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.
 

child of wonder

Diamond Member
Aug 31, 2006
8,307
176
106
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 {
}
 

Red Squirrel

No Lifer
May 24, 2003
70,166
13,573
126
www.anyf.ca
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. :p

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.
 

Red Squirrel

No Lifer
May 24, 2003
70,166
13,573
126
www.anyf.ca
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 {
}

 

Red Squirrel

No Lifer
May 24, 2003
70,166
13,573
126
www.anyf.ca
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.