#1  
Old 4th August 2011, 09:40
CSsab CSsab is offline
Senior Member
 
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Default Dovecot v2 with ISPConfig 3

Hi,
I am trying out dovecot instead of courier and was wondering if anyone has a working dovecot.conf file for v2 they could share or any other informations.

Everything works fine until ISPConfig 3 configures dovecot so I am presuming there is no support just yet.

Is anyone working on this or is it in the roadmap.

Thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 4th August 2011, 09:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
Default

Dovecot 2 is not supported yet. It is planned to add support for dovecot 2 with ISPConfig 3.0.4. There is noone working on that yet. Would be a big help if you could amke a dovecot.conf and dovecot-sql.conf file which we could use.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 4th August 2011, 11:51
CSsab CSsab is offline
Senior Member
 
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Default

I can help to a limited extent - wish I had the knowledge base !!
I can only see what needs to be done and not know how to do it - very frustrating.

I can certainly try but will need help and confirmation.

Here are some of my questions:

1. If I run:
openssl x509 -in /etc/ssl/certs/dovecot.pem -noout -text

The correct cert has been written with the CN hostname details and so on. The only thing I would change is the email address which is root@mydomain.tld.
At the moment I can just add an alias in /etc/aliases for root: postmaster@mydomain.tld
and then run
newaliases
/etc/init.d/postfix reload

So the means by which certs can be recreated are not available in binary distributions unless I am missing something - I would have to go here:
http://wiki.dovecot.org/SSL/CertificateCreation
and download mkcert.sh and so on ...

Could you tell me the correct way to do this.

2. These are my dovecot packages (this is a testing system because I am looking at the dovecot-managesieved package in wheezy):
dovecot-common dovecot-imapd dovecot-managesieved dovecot-pop3d dovecot-sieve

The following NEW packages will be installed:
dovecot-common dovecot-imapd dovecot-managesieved dovecot-pop3d dovecot-sieve
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,476 kB of archives.
After this operation, 7,004 kB of additional disk space will be used.
Selecting previously deselected package dovecot-common.
(Reading database ... 29783 files and directories currently installed.)
Unpacking dovecot-common (from .../dovecot-common_1%3a2.0.13-1.1_amd64.deb) ...
Selecting previously deselected package dovecot-imapd.
Unpacking dovecot-imapd (from .../dovecot-imapd_1%3a2.0.13-1.1_amd64.deb) ...
Selecting previously deselected package dovecot-sieve.
Unpacking dovecot-sieve (from .../dovecot-sieve_1%3a2.0.13-1.1_amd64.deb) ...
Selecting previously deselected package dovecot-managesieved.
Unpacking dovecot-managesieved (from .../dovecot-managesieved_1%3a2.0.13-1.1_amd64.deb) ...
Selecting previously deselected package dovecot-pop3d.
Unpacking dovecot-pop3d (from .../dovecot-pop3d_1%3a2.0.13-1.1_amd64.deb) ...
Setting up dovecot-common (1:2.0.13-1.1) ...

Creating config file /etc/dovecot/dovecot.conf with new version
Creating config file /etc/dovecot/dovecot-db.conf.ext with new version
Creating config file /etc/dovecot/dovecot-dict-sql.conf.ext with new version
Creating config file /etc/dovecot/dovecot-sql.conf.ext with new version
Creating config file /etc/dovecot/conf.d/10-auth.conf with new version
Creating config file /etc/dovecot/conf.d/10-director.conf with new version
Creating config file /etc/dovecot/conf.d/10-logging.conf with new version
Creating config file /etc/dovecot/conf.d/10-mail.conf with new version
Creating config file /etc/dovecot/conf.d/10-master.conf with new version
Creating config file /etc/dovecot/conf.d/10-ssl.conf with new version
Creating config file /etc/dovecot/conf.d/15-lda.conf with new version
Creating config file /etc/dovecot/conf.d/90-acl.conf with new version
Creating config file /etc/dovecot/conf.d/90-plugin.conf with new version
Creating config file /etc/dovecot/conf.d/90-quota.conf with new version
Creating config file /etc/dovecot/conf.d/auth-deny.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-master.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-passwdfile.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-static.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-system.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-vpopmail.conf.ext with new version
Creating generic self-signed certificate: /etc/ssl/certs/dovecot.pem
This certificate will expire in 10 years.
(replace with hand-crafted or authorized one if needed).
Starting IMAP/POP3 mail server: dovecot.
Setting up dovecot-imapd (1:2.0.13-1.1) ...
Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
Restarting IMAP/POP3 mail server: dovecot.
Setting up dovecot-sieve (1:2.0.13-1.1) ...
Creating config file /etc/dovecot/conf.d/90-sieve.conf with new version
Restarting IMAP/POP3 mail server: dovecot.
Setting up dovecot-managesieved (1:2.0.13-1.1) ...
Creating config file /etc/dovecot/conf.d/20-managesieve.conf with new version
Restarting IMAP/POP3 mail server: dovecot.
Setting up dovecot-pop3d (1:2.0.13-1.1) ...
Creating config file /etc/dovecot/conf.d/20-pop3.conf with new version
Restarting IMAP/POP3 mail server: dovecot.




netstat -tap
tcp 0 0 *:smtp *:* LISTEN 1290/master
tcp 0 0 *:sieve *:* LISTEN 4629/dovecot
tcp 0 0 *:imaps *:* LISTEN 4629/dovecot
tcp 0 0 *op3s *:* LISTEN 4629/dovecot
tcp 0 0 localhost.localdo:10024 *:* LISTEN 513/amavisd (master
tcp 0 0 localhost.localdo:10025 *:* LISTEN 1290/master
tcp 0 0 localhost.localdo:mysql *:* LISTEN 1091/mysqld
tcp 0 0 *op3 *:* LISTEN 4629/dovecot
tcp 0 0 *:imap2 *:* LISTEN 4629/dovecot
tcp 0 0 localhost.localdo:spamd *:* LISTEN 849/spamd.pid
tcp 0 0 *:ssh *:* LISTEN 843/sshd
tcp6 0 0 [::]:sieve [::]:* LISTEN 4629/dovecot
tcp6 0 0 [::]:imaps [::]:* LISTEN 4629/dovecot
tcp6 0 0 [::]op3s [::]:* LISTEN 4629/dovecot
tcp6 0 0 [::]op3 [::]:* LISTEN 4629/dovecot
tcp6 0 0 [::]:imap2 [::]:* LISTEN 4629/dovecot
tcp6 0 0 [::]:www [::]:* LISTEN 525/apache2
tcp6 0 0 [::]:ssh [::]:* LISTEN 843/sshd

So here is /etc/dovecot.conf (uncommented only) before ISPConfig.

!include_try /usr/share/dovecot/protocols.d/*.protocol
dict {
#quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
#expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
}
!include_try local.conf


So the configurations are in /etc/dovecot/conf.d/
10-auth.conf 10-mail.conf 15-lda.conf 20-pop3.conf 90-quota.conf auth-master.conf.ext auth-system.conf.ext
10-director.conf 10-master.conf 20-imap.conf 90-acl.conf 90-sieve.conf auth-passwdfile.conf.ext auth-vpopmail.conf.ext
10-logging.conf 10-ssl.conf 20-managesieve.conf 90-plugin.conf auth-deny.conf.ext auth-static.conf.ext


Which of these need to be modified by the ISPConfig installer?

Further info:
At the moment when I install ISPConfig 3 the following is appended to the dovecot.conf:

driver = mysql
connect = host=localhost dbname=mydatabasename user=ispconfig password=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
default_pass_scheme = CRYPT

password_query = SELECT password FROM mail_user WHERE mymailname = '%u' AND disable%Ls = 'n'
user_query = SELECT (mymailname) as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('maildir:storage=', floor(quota/1024)) AS quota, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE mymailname = '%u' AND disable%Ls = 'n'

Then the following errors are thrown off from the ISPConfig 3 installer:

Configuring Dovecot
PHP Warning: chmod(): No such file or directory in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 750
PHP Stack trace:
PHP 1. {main}() /tmp/ispconfig3_install/install/install.php:0
PHP 2. installer_base->configure_dovecot() /tmp/ispconfig3_install/install/install.php:337
PHP 3. chmod() /tmp/ispconfig3_install/install/lib/installer_base.lib.php:750

Configuring Spamassassin
Configuring Amavisd


What is the path to the sql file used currently?

Other errors are:
Stopping amavisd: amavisd-new.
defined(%hash) is deprecated at /usr/share/perl5/Mail/SpamAssassin/Dns.pm line 757.
(Maybe you should just omit the defined()?)
Starting amavisd: amavisd-new.

And the main ones are:

Configuring Getmail
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
Stopping SASL Authentication Daemon: saslauthd.
Starting SASL Authentication Daemon: saslauthd.


Stopping amavisd: amavisd-new.
defined(%hash) is deprecated at /usr/share/perl5/Mail/SpamAssassin/Dns.pm line 757.
(Maybe you should just omit the defined()?)
Starting amavisd: amavisd-new.
Stopping ClamAV daemon: clamd.
Starting ClamAV daemon: clamd Bytecode: Security mode set to "TrustSigned".
.
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'imaps' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'pop3s' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:529: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:587: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:664: protocol managesieve {} has been replaced by protocol sieve { }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:681: sieve has been moved into plugin {} section
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:686: sieve_storage has been moved into plugin { sieve_dir }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:813: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:924: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:985: userdb sql {} has been replaced by userdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1014: auth_user has been replaced by service auth { user }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: mail_plugin_dir: access(/usr/lib/dovecot/modules/lda) failed: No such file or directory
doveconf: Error: managesieve-login: dump-capability process returned 89
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'imaps' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'pop3s' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:529: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:587: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:664: protocol managesieve {} has been replaced by protocol sieve { }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:681: sieve has been moved into plugin {} section
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:686: sieve_storage has been moved into plugin { sieve_dir }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:813: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:924: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:985: userdb sql {} has been replaced by userdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1014: auth_user has been replaced by service auth { user }
doveconf: Error: ssl enabled, but ssl_cert not set
doveconf: Error: ssl enabled, but ssl_cert not set
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'imaps' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'pop3s' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:529: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:587: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:664: protocol managesieve {} has been replaced by protocol sieve { }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:681: sieve has been moved into plugin {} section
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:686: sieve_storage has been moved into plugin { sieve_dir }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:813: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:924: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:985: userdb sql {} has been replaced by userdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1014: auth_user has been replaced by service auth { user }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: mail_plugin_dir: access(/usr/lib/dovecot/modules/lda) failed: No such file or directory
doveconf: Error: managesieve-login: dump-capability process returned 89
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'imaps' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'pop3s' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:529: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:587: mail_executable has been replaced by service { executable }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:664: protocol managesieve {} has been replaced by protocol sieve { }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:681: sieve has been moved into plugin {} section
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:686: sieve_storage has been moved into plugin { sieve_dir }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:813: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:924: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:985: userdb sql {} has been replaced by userdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1014: auth_user has been replaced by service auth { user }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set

Restarting IMAP/POP3 mail server: dovecot failed!
Configure Jailkit (y,n) [y]:


This error relates to "<" in:

ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem

Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set
and it goes away when the correct path is set.

I don't mind trying to write a new sql file but there are people better able to do that here than me with my limited knowhow.

I am still very keen to help in any way so can post the outputs of anything else needed and can also set up testing systems in either Lenny or Squeeze with very little trouble.
Reply With Quote
  #4  
Old 9th August 2011, 16:33
xabbu xabbu is offline
Junior Member
 
Join Date: Dec 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello all,

I've already written a way to integrate dovecot2 into ispconfig3.

Here my post:

http://www.howtoforge.de/forum/entwi...e-11-3-a-3848/

at the moment german only but if you are interested, I'll translate.

Regards,
xabbu
Reply With Quote
  #5  
Old 9th August 2011, 16:55
CSsab CSsab is offline
Senior Member
 
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Thumbs up

Hi xabbu,
Thanks very much.

I am having a look at it now and will let you know how I go.
Reply With Quote
  #6  
Old 9th August 2011, 17:52
CSsab CSsab is offline
Senior Member
 
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Default

Thank you for the dovecot.conf.

I am not completely understanding step 7:

Step 7.
I edit

/usr/local/ispconfig/interface/web/mail/mail_user_edit.php

and change which part?

This is what I have in line 261 ish.

$sql = "UPDATE mail_user SET disableimap = '$disableimap', disablepop3 = '$disablepop3', disablesmtp = '$disablesmtp', disabledeliver = '$disabledeliver' WHERE mailuser_id = ".$this->id;
$app->db->query($sql);


Is this the part you mean and how should I change that?

Thanks
Reply With Quote
Reply

Bookmarks

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
SOS,Can not receive mail! jason.cn Installation/Configuration 1 4th May 2011 17:38
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 20:01
Perfect server... ISPConfig trashing dovecot config krissie HOWTO-Related Questions 2 30th June 2010 10:38
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 22:47
ISPconfig Dovecot problem dolmax General 2 15th March 2008 13:17


All times are GMT +2. The time now is 21:55.


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