Linode Forum
https://forum.linode.com/

Email with Postfix,Dovecot&MySQL on CentOS 5-CentOS 6 is
https://forum.linode.com/viewtopic.php?f=11&t=8801
Page 2 of 2

Author:  jerzzp [ Thu May 10, 2012 2:30 pm ]
Post subject: 

The config files for Dovecot should be pretty platform independent across linux distros I'd imagine. What errors were you getting?

Wish I could be of more help as far as finding a Dovecot 1.x package but I have no experience with CentOS/yum.

Hope you get things working.

Author:  redhat19 [ Wed May 16, 2012 4:03 am ]
Post subject: 

Hi @Jerzzp,

First it was around the lower part of the namespace block

namespace {
inbox = yes
location =
prefix = INBOX.
separator = .
type = private
}

a delimiter was being expected. I think it was the "." after "separator"

when I got past that, then there was another issue:
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem

it was something about the URLs not being correct/files did not exist.
I eventually had to get some help.

It is working fine now.
Thanks a whole lot.

How do you now create virtual mailbox users?
from the command line?

Been searching for a visual tool, then I ran into Postfix Admin.. but Postfix admin has its own database for managing virtual domains/user mailboxes and you're supposed to configure Postfix to work with that..

but I have already created a database in MySQL for that....

How did you get around this problem?

Author:  jerzzp [ Wed May 16, 2012 3:06 pm ]
Post subject: 

Well I'd just get a tool for MySQL. I use phpMyAdmin.

Author:  jackman0 [ Sun Jul 15, 2012 11:40 pm ]
Post subject:  Re: Email with Postfix,Dovecot&MySQL on CentOS 5-CentOS 6 is

I used the built-in tool to convert my config files. Things are working pretty well.

Code:
doveconf -n -c dovecot.conf-centos5 > dovecot.conf


/etc/dovecot/dovecot.conf (notice the directory structure change).
Code:
# 2.0.9: dovecot.conf-centos5
# OS: Linux 2.6.32-220.el6.i686 i686 CentOS release 6.3 (Final) ext4
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n/Maildir
namespace {
  inbox = yes
  location =
  prefix = INBOX.
  separator = .
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocols = imap pop3
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix                                                           
    mode = 0660
    user = postfix
  }
  unix_listener auth-master {
    mode = 0600
    user = vmail
  }
  user = root
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
  driver = static
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  log_path = /home/vmail/dovecot-deliver.log
  postmaster_address = postmaster@jackmanlabs.net
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}

Page 2 of 2 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/