0

I was setting up a mail server on Amazon EC2 using postfix and dovcot and I seem to be stack on starting up dovecot service. Here is the message i got when I run

Service dovecot status 
dovecot stop/waiting

and with

dovecot -F
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: first_valid_uid can't be larger than last_valid_uid

does anyone have an idea, it would be most appreciated

Sven
  • 98,649
  • 14
  • 180
  • 226
fudu
  • 3
  • 1
  • Try opening your `dovecot.conf` or possibly one of the .conf files under the dovecot directory. In there there will be lines talking about UIDs, most likely for the virtual user associated with your virtual mailboxes. – NickW Dec 04 '14 at 17:08

1 Answers1

3

Launch doveconf -a | grep _valid_

You have to set that variables to something like that:

first_valid_uid         = 26
last_valid_uid          = 0
first_valid_gid         = 6
last_valid_gid          = 0
Kondybas
  • 6,964
  • 2
  • 20
  • 24
  • 1
    It turns out that the values of the variables where off so the moment i edited /etc/dovecote/conf.d/10-mail.conf to the right values it is working now. Thanks @Kondybas – fudu Dec 04 '14 at 21:43