dovecot starting error?

If none of the more specific forums is the right place to ask

dovecot starting error?

Postby shams » 2011-04-05 11:22

I installed the dovecot with aptitude in the debian squeeze, and want to use dovecot as imap and pop3 server with exim4 for my mail server, i configured the dovecot and exim4, but when want to start the dovecot get this error:
# /etc/init.d/dovecot start
Starting IMAP/POP3 mail server: dovecotError: mail_executable: Can't use /usr/lib/dovecot/imap: No such file or directory
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
failed


and this is the line for the which is error in the dovecot conf:
# Login executable location.
#login_executable = /usr/lib/dovecot/imap-login


this is what is in the /usr/lib/dovecot:
/usr/lib/dovecot# ls
authtest dovecot-auth listview modules
checkpassword-reply expire-tool logview rawlog
convert-tool expire-tool.sh maildirlock ssl-build-param
deliver gdbhelper managesieve threadview
dict idxview managesieve-login

any one can help please?
want to share my experiences with other newbies:
Some Debian Tips
Fedora For Newbies
shams
 
Posts: 144
Joined: 2006-02-17 15:37

Re: dovecot starting error?

Postby dilberts_left_nut » 2011-04-05 11:30

That line is not the problem with dovecot.conf, it is currently just a comment, and is ignored.
Recheck the lines you changed.
This is mine.
Code: Select all
# dovecot -n
# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-686 i686 Debian 6.0.1
log_timestamp: %Y-%m-%d %H:%M:%S
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_privileged_group: mail
mbox_write_locks: fcntl dotlock
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: shared
  separator: /
  prefix: shared/%%u/
  location: maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
  list: yes
  subscriptions: yes
auth default:
  passdb:
    driver: pam
  userdb:
    driver: passwd
  socket:
    type: listen
    client:
      path: /var/run/dovecot/auth-client
      mode: 432
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 3134
Joined: 2009-10-05 07:54
Location: enzed

Re: dovecot starting error?

Postby shams » 2011-04-05 13:01

Thanks for the reply , the deovecot -n is not working:
dovecot -n
# 1.2.15: /etc/dovecot/dovecot.conf
Error: mail_executable: Can't use /usr/lib/dovecot/imap: No such file or directory
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf

I check out the dovecot.conf manually for the mail_executable and find tree one's and that are these:
#login_executable = /usr/lib/dovecot/imap-login
#login_executable = /usr/lib/dovecot/pop3-login
#login_executable = /usr/lib/dovecot/managesieve-login

I think this is the default path for the login_executable in the dovecot.conf.
want to share my experiences with other newbies:
Some Debian Tips
Fedora For Newbies
shams
 
Posts: 144
Joined: 2006-02-17 15:37

Re: dovecot starting error?

Postby dilberts_left_nut » 2011-04-05 19:44

Maybe uncomment this
Code: Select all
#login_executable = /usr/lib/dovecot/imap-login

The error says
Code: Select all
Can't use /usr/lib/dovecot/[b]imap[/b]

Or purge dovecot (so configs are removed) and reinstall the defaults again.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 3134
Joined: 2009-10-05 07:54
Location: enzed


Return to General Questions

Who is online

Users browsing this forum: dizwell and 4 guests

fashionable