LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Dovecot no listener (http://www.linuxquestions.org/questions/linux-server-73/dovecot-no-listener-938117/)

mwjones 04-04-2012 02:48 PM

Dovecot no listener
 
Dovecot is not binding or listening on port 993 when I start it.

Code:

$ sudo netstat -tlnp | grep -c 993
0

Dovecot starts fine and runs without complaints.

Code:

$ sudo service dovecot restart
Restarting IMAP/POP3 mail server: dovecot.

$ sudo tail /var/log/mail.log
Apr  4 13:42:39 mwjones dovecot: master: Warning: Killed with signal 15 (by pid=16238 uid=0 code=kill)
Apr  4 13:42:39 mwjones dovecot: master: Dovecot v2.0.18 starting up (core dumps disabled)

$ sudo ps -ef | grep -i [d]ovecot
root    16243    1  0 13:42 ?        00:00:00 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf
dovecot  16245 16243  0 13:42 ?        00:00:00 dovecot/anvil
root    16246 16243  0 13:42 ?        00:00:00 dovecot/log
root    16248 16243  0 13:42 ?        00:00:00 dovecot/config

Still no listener :(

Code:

$ sudo netstat -tlnp | grep -c 993
0

Other infos for your scrutiny.

Code:

$ sudo dovecot --version
2.0.18

$ doveconf -n
# 2.0.18: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.5-grsec x86_64 Debian wheezy/sid ext4
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
first_valid_uid = 1000
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_debug = yes
mail_location = maildir:/home/vmail/%d/%n/Maildir
passdb {
  args = /home/vmail/%d/etc/passwd
  driver = passwd-file
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  user = root
}
service imap-login {
  service_count = 1
}
service ssl-params {
  type = startup
}
ssl_cert = </etc/apache2/ssl/GandiStandardSSLCA.pem
ssl_key = </etc/apache2/ssl/ssl.key
userdb {
  args = /home/vmail/%d/etc/passwd
  driver = passwd-file
}
verbose_ssl = yes


What am I missing and how do I fix this?

Noway2 04-05-2012 05:29 AM

You are missing part of your dovecot configuration, the part where it tells it to use IMAPS.
Code:

service imap-login {
  executable = /usr/libexec/dovecot/imap-login
  inet_listener imap {
    address = *
    port = 143
  }
  inet_listener imaps {
    address = *
    port = 993
  }
}


mwjones 04-05-2012 11:09 AM

Thanks so much all. I was missing a few items:

Code:

protocols = imap # thanks to Timo Sirainen

# thanks to Noel Butler
service imap-login {
  inet_listener imap {
    port = 0
  }
  inet_listener imaps {
    address = *
    port = 993
  }
  service_count = 1
}

Here is my final doveconf -n with listener successfully running on 993:

Code:

# 2.0.18: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.5-grsec x86_64 Debian wheezy/sid ext4
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
first_valid_gid = 1030
first_valid_uid = 1030
info_log_path = /var/log/dovecot-info.log
last_valid_gid = 1030
last_valid_uid = 1030
log_path = /var/log/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_debug = yes
mail_location = maildir:/home/vmail/%d/%n/Maildir
passdb {
  args = /home/vmail/%d/etc/passwd
  driver = passwd-file
}
protocols = imap
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  user = root
}
service imap-login {
  inet_listener imap {
    port = 0
  }
  inet_listener imaps {
    address = *
    port = 993
  }
  service_count = 1
}
service ssl-params {
  type = startup
}
ssl_cert = </etc/apache2/ssl/cert-mwjones.com.crt
ssl_key = </etc/apache2/ssl/mwjones.key
userdb {
  args = /home/vmail/%d/etc/passwd
  driver = passwd-file
}
verbose_ssl = yes


rgarcialvarez 04-12-2013 09:34 PM

solved core dump dovecot
 
if use redhat/fedora/centos just only run those command with root privileges

/etc/init.d/dovecot stop

echo 'DAEMON_COREFILE_LIMIT="unlimited"' >> /etc/sysconfig/dovecot

/etc/init.d/dovecot start


All times are GMT -5. The time now is 10:05 PM.