Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot
On 2/25/2014 2:44 PM, Si L wrote: Here's my slightly redacted conf. # grep -v ^# dovecot.conf|grep -v ^$ Don't do that. Please post output of doveconf -n... -- Best regards, Charles
Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 25 Feb 2014, Si L wrote: You've checked out http://wiki2.dovecot.org/Upgrading ? However, I see problems with files inside directory: drwxr-xr-x 4 dovenull root 4096 Feb 25 20:35 /var/run/dovecot Here's the version: # dovecot --version 2.1.7 Where is its conf? ;-) Here's my slightly redacted conf. # grep -v ^# dovecot.conf|grep -v ^$ if these settings below work for you, locate the "service XYZ" entries in the Dovecot v2 config and replace the values there. The syntax is the same, IMHO. 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 } service imap-login { chroot = login inet_listener imap { address = 127.0.0.1 port = 3993 } inet_listener imaps { address = * port = 993 } process_limit = 256 process_min_avail = 24 service_count = 1 vsz_limit = 48 M } service pop3-login { chroot = login process_limit = 256 process_min_avail = 24 service_count = 1 vsz_limit = 48 M } - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUw2RgXD1/YhP6VMHAQLSLAf/WEcvWfBaJf6krNmxR/oktANGbAfILd1X 216GkKAreG9J00UlWtUndzHJ9fcvOBBO8ch/DUVVWgmpoUF4F/7JXm4gyrw0ZP0X si1LMVzVXZPnX0qcSqUPW3tm40iF4oEUxh8CWVFORjeCtzFXPR2TmSHYCYYgu9YZ VWHG5zsAugM/hGBfmuKtc0614S+0TbFEFe1RjFJUs05A+9tqKbbT2pC0u13UTXgz jkm8mQEkrXiz+lXMwGNKbYtcLs3m4PSj4duAHt5H/eo8/gzOqRB6vZTzQtYDocUO VeaeJ3i3yurD3U6KdVE3dLk5QmihZSg1ukoWYwRX79iGAeVxPX7zmw== =21Jr -END PGP SIGNATURE-
Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot
Downgraded successfully and dovecot 1 works and I shan't use Dovecot 2 because this was too confused to upgrade to. I think lots of you will think "Moron should have read the instructions RTFM" and well you're right but I could not find them :( If anybody's interested for downgrading on Squeeze: apt-get purge dovecot-* ( like dovecot-common and all of her other bits) remove backports lines from sources.lst rm -r /etc/dovecot/* just to be sure. apt-get update apt-get install dovecot-common dovecot-imapd copy your dovecot version 1 confs into /etc/dovecot Done :) On Tue, 25/2/14, Si L wrote: Subject: Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 17:14 Hi, Looks like I've run out of time and have to roll back from version 2 to version 1 and stick with version 1. I have dpkgs for version 1 and my orginal configuration files and think I'll have to stick with Debian Squeeze and never use Wheezy because that does not carry Dovecot 1. Does any debian dovecot peeps know if this is all the packages I need? dovecot-common_1.2.15-7_amd64.deb dovecot-dbg_1.2.15-7_amd64.deb dovecot-dev_1.2.15-7_amd64.deb dovecot-imapd_1.2.15-7_amd64.deb dovecot-pop3d_1.2.15-7_amd64.deb mysqmail-dovecot-logger_0.4.9-7_amd64.deb On Tue, 25/2/14, Si L wrote: Subject: Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 17:06 Scratch this because this was set in my dovecot.conf. and had not made any difference Is the /etc/dovecot/dovecot.conf used anymore, because dovecot is not listening on any ports ! I've looked on the wiki and only Basic Configuration is noted so I don't know if I should use: service imap-login { chroot = login inet_listener imap { address = 127.0.0.1 port = 3993 or some syntax. Any body? Off topic, Debian does not include the documentation directory with its packages: # cd /usr/share/doc/dovecot/example-config -su: cd: /usr/share/doc/dovecot/example-config: No such file or directory Regards, S On Tue, 25/2/14, Si L wrote: Subject: Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 16:52 Hi, Just noticed mode = 0666 should be set for auth-userdb however I see its not set in my converted dovecot.conf and think I should set this in the conf.d/10-master.conf, but I don't know which permissions should be secure and if secure permissions, then how should postfix interact with this or deliver to mail stores that are owned by xxx ? On Tue, 25/2/14, Si L wrote: Subject: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 16:44 Hi, I just upgraded from version 1 to version on Debian Squeeze using their backports. Like I expected my dovecot1 config had to be converted using doveconf and this I did. However, I see problems with files inside directory: drwxr-xr-x 4 dovenull root 4096 Feb 25 20:35 /var/run/dovecot All of them were created owned by root:root rw. I tried to changed, for example : chown postfix:dovecot /var/run/dovecot/auth-master but noticed when I restarted dovecot it reset the permissions back to root:root rw. Here's the version: # dovecot --version 2.1.7 Here's my slightly redacted conf. # grep -v ^# dovecot.conf|grep -v ^$ auth_mechanisms = plain login auth_verbose = yes dict { quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf } disable_plaintext_auth = no first_valid_uid = 106 log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:/var/xx/%d/%u/ mail_plugins = quota mail_privileged_group = mail maildir_very_dirty_syncs = yes passdb { args = /etc/dovecot/dovecot-mysql.conf driver = sql } plugin { quota_rule = *:storage=262144:messages=2 quota_rule2 = Trash:storage=282144:messages=23000 } 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 } service imap-login { chroot = login inet_listener imap { address = 127.0.0.1
Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot
Hi, Looks like I've run out of time and have to roll back from version 2 to version 1 and stick with version 1. I have dpkgs for version 1 and my orginal configuration files and think I'll have to stick with Debian Squeeze and never use Wheezy because that does not carry Dovecot 1. Does any debian dovecot peeps know if this is all the packages I need? dovecot-common_1.2.15-7_amd64.deb dovecot-dbg_1.2.15-7_amd64.deb dovecot-dev_1.2.15-7_amd64.deb dovecot-imapd_1.2.15-7_amd64.deb dovecot-pop3d_1.2.15-7_amd64.deb mysqmail-dovecot-logger_0.4.9-7_amd64.deb On Tue, 25/2/14, Si L wrote: Subject: Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 17:06 Scratch this because this was set in my dovecot.conf. and had not made any difference Is the /etc/dovecot/dovecot.conf used anymore, because dovecot is not listening on any ports ! I've looked on the wiki and only Basic Configuration is noted so I don't know if I should use: service imap-login { chroot = login inet_listener imap { address = 127.0.0.1 port = 3993 or some syntax. Any body? Off topic, Debian does not include the documentation directory with its packages: # cd /usr/share/doc/dovecot/example-config -su: cd: /usr/share/doc/dovecot/example-config: No such file or directory Regards, S On Tue, 25/2/14, Si L wrote: Subject: Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 16:52 Hi, Just noticed mode = 0666 should be set for auth-userdb however I see its not set in my converted dovecot.conf and think I should set this in the conf.d/10-master.conf, but I don't know which permissions should be secure and if secure permissions, then how should postfix interact with this or deliver to mail stores that are owned by xxx ? On Tue, 25/2/14, Si L wrote: Subject: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 16:44 Hi, I just upgraded from version 1 to version on Debian Squeeze using their backports. Like I expected my dovecot1 config had to be converted using doveconf and this I did. However, I see problems with files inside directory: drwxr-xr-x 4 dovenull root 4096 Feb 25 20:35 /var/run/dovecot All of them were created owned by root:root rw. I tried to changed, for example : chown postfix:dovecot /var/run/dovecot/auth-master but noticed when I restarted dovecot it reset the permissions back to root:root rw. Here's the version: # dovecot --version 2.1.7 Here's my slightly redacted conf. # grep -v ^# dovecot.conf|grep -v ^$ auth_mechanisms = plain login auth_verbose = yes dict { quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf } disable_plaintext_auth = no first_valid_uid = 106 log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:/var/xx/%d/%u/ mail_plugins = quota mail_privileged_group = mail maildir_very_dirty_syncs = yes passdb { args = /etc/dovecot/dovecot-mysql.conf driver = sql } plugin { quota_rule = *:storage=262144:messages=2 quota_rule2 = Trash:storage=282144:messages=23000 } 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 } service imap-login { chroot = login inet_listener imap { address = 127.0.0.1 port = 3993 } inet_listener imaps { address = * port = 993 } process_limit = 256 process_min_avail = 24 service_count = 1 vsz_limit = 48 M } service pop3-login { chroot = login process_limit = 256 process_min_avail = 24 service_count = 1 vsz_limit = 48 M } ssl = required ssl_ca =
Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot
Scratch this because this was set in my dovecot.conf. and had not made any difference Is the /etc/dovecot/dovecot.conf used anymore, because dovecot is not listening on any ports ! I've looked on the wiki and only Basic Configuration is noted so I don't know if I should use: service imap-login { chroot = login inet_listener imap { address = 127.0.0.1 port = 3993 or some syntax. Any body? Off topic, Debian does not include the documentation directory with its packages: # cd /usr/share/doc/dovecot/example-config -su: cd: /usr/share/doc/dovecot/example-config: No such file or directory Regards, S On Tue, 25/2/14, Si L wrote: Subject: Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 16:52 Hi, Just noticed mode = 0666 should be set for auth-userdb however I see its not set in my converted dovecot.conf and think I should set this in the conf.d/10-master.conf, but I don't know which permissions should be secure and if secure permissions, then how should postfix interact with this or deliver to mail stores that are owned by xxx ? On Tue, 25/2/14, Si L wrote: Subject: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 16:44 Hi, I just upgraded from version 1 to version on Debian Squeeze using their backports. Like I expected my dovecot1 config had to be converted using doveconf and this I did. However, I see problems with files inside directory: drwxr-xr-x 4 dovenull root 4096 Feb 25 20:35 /var/run/dovecot All of them were created owned by root:root rw. I tried to changed, for example : chown postfix:dovecot /var/run/dovecot/auth-master but noticed when I restarted dovecot it reset the permissions back to root:root rw. Here's the version: # dovecot --version 2.1.7 Here's my slightly redacted conf. # grep -v ^# dovecot.conf|grep -v ^$ auth_mechanisms = plain login auth_verbose = yes dict { quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf } disable_plaintext_auth = no first_valid_uid = 106 log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:/var/xx/%d/%u/ mail_plugins = quota mail_privileged_group = mail maildir_very_dirty_syncs = yes passdb { args = /etc/dovecot/dovecot-mysql.conf driver = sql } plugin { quota_rule = *:storage=262144:messages=2 quota_rule2 = Trash:storage=282144:messages=23000 } 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 } service imap-login { chroot = login inet_listener imap { address = 127.0.0.1 port = 3993 } inet_listener imaps { address = * port = 993 } process_limit = 256 process_min_avail = 24 service_count = 1 vsz_limit = 48 M } service pop3-login { chroot = login process_limit = 256 process_min_avail = 24 service_count = 1 vsz_limit = 48 M } ssl = required ssl_ca =
Re: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot
Hi, Just noticed mode = 0666 should be set for auth-userdb however I see its not set in my converted dovecot.conf and think I should set this in the conf.d/10-master.conf, but I don't know which permissions should be secure and if secure permissions, then how should postfix interact with this or deliver to mail stores that are owned by xxx ? On Tue, 25/2/14, Si L wrote: Subject: [Dovecot] Dovecot upgrade 1 to 2 on Debian Squeeze : broken /var/run/dovecot To: dovecot@dovecot.org Date: Tuesday, 25 February, 2014, 16:44 Hi, I just upgraded from version 1 to version on Debian Squeeze using their backports. Like I expected my dovecot1 config had to be converted using doveconf and this I did. However, I see problems with files inside directory: drwxr-xr-x 4 dovenull root 4096 Feb 25 20:35 /var/run/dovecot All of them were created owned by root:root rw. I tried to changed, for example : chown postfix:dovecot /var/run/dovecot/auth-master but noticed when I restarted dovecot it reset the permissions back to root:root rw. Here's the version: # dovecot --version 2.1.7 Here's my slightly redacted conf. # grep -v ^# dovecot.conf|grep -v ^$ auth_mechanisms = plain login auth_verbose = yes dict { quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf } disable_plaintext_auth = no first_valid_uid = 106 log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:/var/xx/%d/%u/ mail_plugins = quota mail_privileged_group = mail maildir_very_dirty_syncs = yes passdb { args = /etc/dovecot/dovecot-mysql.conf driver = sql } plugin { quota_rule = *:storage=262144:messages=2 quota_rule2 = Trash:storage=282144:messages=23000 } 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 } service imap-login { chroot = login inet_listener imap { address = 127.0.0.1 port = 3993 } inet_listener imaps { address = * port = 993 } process_limit = 256 process_min_avail = 24 service_count = 1 vsz_limit = 48 M } service pop3-login { chroot = login process_limit = 256 process_min_avail = 24 service_count = 1 vsz_limit = 48 M } ssl = required ssl_ca =