Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 14th December 2012, 06:15
kendel kendel is offline
HowtoForge Supporter
Join Date: Aug 2010
Posts: 132
Thanks: 4
Thanked 1 Time in 1 Post
Default Confirmation if this is true.

I am configuring a mailserver but the guide I am following says:
Because the current state of ISPConfig 3 (3.0.4) does not support Dovecot 2.x, we need to handle Dovecot configuration ourselves.

    First confirm Dovecot version :
        mail1 server shell> dpkg -l | grep dovecot : Dovecot is version 2.0.13 on my system.
    Second confirm that Dovecot cannot start :
        mail1 server shell> nmap localhost : check to see which services are running - smtp is running but both pop3 & imap is down (you may need to install nmap).
        mail1 server shell> service dovecot start : it looks like we can start Dovecot, but ..
        mail1 server shell> service dovecot status : .. actually we cannot.
    Ok, time to reconfigure Dovecot. There are so many changes needed that it is most easy to rewrite the /etc/dovecot/dovecot.conf file from scratch. Here is the full dovecot.conf file as it should look like :
        !include_try /usr/share/dovecot/protocols.d/*.protocol
        !include conf.d/*.conf.
        mail_location = maildir:/var/vmail/%d/%n/Maildir : overwrite the default mail_location value. %d is domain, %n is account.
        (email messages to rasmus@example.com will be stored in /home/vmail/example.com/rasmus/Maildir)
        disable_plaintext_auth = no : otherwise I cannot get Gmail POP3 integration to work.
        namespace {
            type = private : this namespace contains only the users own mailboxes. (there are also shared and public types).
            separator = . : char for separating child folders, eg. work.design or work.programming.
            prefix = INBOX.
            inbox = yes : this namespace contains the inbox (there are only one inbox).
        protocol lda { : we need to overwrite the protocol lda setting in conf.d/01-mail-stack-delivery.conf
            auth_socket_path = /var/run/dovecot/auth-master : UNIX socket path to Dovecot LDA.
            postmaster_address = root@localhost : here it may be better to use your own email address
            mail_plugins = sieve
            log_path = /var/vmail/dovecot-deliver.log : ISPConfig creates the /var/vmail base directory
            deliver_log_format = msgid=%m: %$
            rejection_reason = Your message to <%t> was automatically rejected:%n%r
        auth default {
            user = root
            mechanisms = plain login
            passdb sql {
                args = /etc/dovecot/dovecot-sql.conf
            userdb static {
                args = uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes
            socket listen {
                master { : master socket gives access to userdb information typically so the Dovecot LDA can find mailbox locations
                    path = /var/run/dovecot/auth-master
                    mode = 0600
                    user = vmail
                client {
                    path = /var/spool/postfix/private/auth : tells Dovecot where to communicate with Postfix authentication.
                    mode = 0660 : tells Dovecot that there are read & write access.
                    user = postfix : tells Dovecot to use the postfix user for access.
                    group = postfix : tells Dovecot use the postfix group for access.
Before I made those changes I wanted to confirm, this is the current content of that file:
nano /etc/dovecot/dovecot.conf 

protocols = imap pop3
auth_mechanisms = plain login
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_privileged_group = vmail
ssl_cert = </etc/postfix/smtpd.cert
ssl_key = </etc/postfix/smtpd.key
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
plugin {
  quota = dict:user::file:/var/vmail/%d/%n/.quotausage
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  unix_listener auth-userdb {
    group = vmail
    mode = 0600
    user = vmail
  user = root
protocol imap {
  mail_plugins = quota imap_quota
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
  mail_plugins = quota
protocol lda {
  mail_plugins = sieve quota
Should I replace the code?
If you are looking for examples of an ISPConfig 3 Multiserver Setup, Visit my website Here!!!
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
500 internal error after upgrade abintipl Installation/Configuration 9 18th July 2012 13:51
SpamSnake 10.10 gachnar HOWTO-Related Questions 17 19th January 2011 15:25
Debian preseed options skipped MaTa Installation/Configuration 0 2nd August 2009 17:32
phpmyadmin error lifeisboost Installation/Configuration 9 14th August 2008 20:19
Advice on how to setup Lintrack As A LAN Gateway And An OpenVPN Bridge eddiequek HOWTO-Related Questions 0 12th July 2007 11:38

All times are GMT +2. The time now is 01:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.