You are not logged in.
I am trying to get a virtual user mail server up and running. I have VM setup to be just a mail server. I have a couple things not working but Ill start with trying to resolve this error first.
error with journalctl -b -u dovecot
Aug 13 19:22:46 hermes dovecot[574]: master: Dovecot v2.2.13 starting up for imap, sieve (core dumps disabled)
Aug 13 19:23:58 hermes dovecot[577]: imap-login: Fatal: Can't load private ssl_key: Key is for a different cert than ssl_cert
Aug 13 19:23:58 hermes dovecot[574]: master: Error: service(imap-login): command startup failed, throttling for 2 secs
Aug 13 19:24:07 hermes dovecot[577]: imap-login: Fatal: Can't load private ssl_key: Key is for a different cert than ssl_cert
Aug 13 19:24:07 hermes dovecot[574]: master: Error: service(imap-login): command startup failed, throttling for 4 secs
I tried deleting the dovecot.pem files and recreating the ssl cert and that did not change the error.
dovecot.conf
protocols = imap sieve
ssl = yes
ssl_cert = </etc/ssl/certs/server.crt
ssl_key = </etc/ssl/private/server.key
first_valid_uid = 5000
first_valid_gid = 5000
mail_home = /home/vmail/%d/%u
mail_location = maildir:~
auth_mechanisms = plain login cram-md5
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
service auth {
unix_listener auth-client {
group = postfix
mode = 0660
user = postfix
}
user = root
}
protocol imap {
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
}
protocol lda {
postmaster_address = user@example.com
hostname = example.com
sendmail_path = /usr/sbin/sendmail
mail_plugins = sieve
log_path = /var/log/dovecot-lda-errors.log
info_log_path = /var/log/dovecot-lda.log
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
service managesieve {
}
protocol sieve {
# Defaults are OK, so nothing in this section.
}
plugin {
sieve = ~/.dovecot.sieve
sieve_global_path = /home/vmail/sieve.sieverc
sieve_dir = ~/
}
passdb {
driver = sql
args = /etc/dovecot/dovecot-sql.conf
}
userdb {
driver = sql
args = /etc/dovecot/dovecot-sql.conf
}
dovecot-sql.conf
driver = mysql
connect = host=localhost dbname=postfix_db user=user password=password
default_pass_scheme = MD5-CRYPT
user_query = SELECT '/home/vmail/%d/%u' as home, 'maildir:/home/vmail/%d/%u' as mail, 5000 AS uid, 5000 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = '1'
password_query = SELECT username as user, password, '/home/vmail/%d/%u' as userdb_home, 'maildir:/home/vmail/%d/%u' as userdb_mail, 5000 as userdb_uid, 5000 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1'
Thank you to anyone who takes the time to read and especially anyone who takes the time to reply.
Last edited by ScottMB (2014-08-15 11:42:56)
Offline
fixed. I was pointing to the incorrect ssl_cert.
Offline