Re: Authentication Problem with dovecot-2.3.0.1

2018-03-08 Thread Aki Tuomi

> On 08 March 2018 at 10:00 Odhiambo Washington  wrote:
> 
> 
> On 8 March 2018 at 10:09, Aki Tuomi  wrote:
> 
> >
> >
> > On 07.03.2018 22:07, Odhiambo Washington wrote:
> >
> > I am a little confused here.
> >
> > I have been running 2.2.34 which I installed in /opt/dovecot2.2
> > I installed 2.3.0.1 to /opt/dovecot23
> >
> > I then used config files from /opt/dovecot2.2/etc/dovecot to
> > /opt/dovecot2.3/etc/dovecot and all I did was sed -i.BAK
> > 's/dovecot2.2/dovecot2.3/g'. Dovecot started and was running file.
> >
> > Next, I manually crafted config files for 2.3.0.1 based on the example
> > config files provided which diff-ing those with what I had for 2.2.34. I
> > doub't if I missed something crucial during the process.
> >
> > 1. I realized that I cannot start 2.3.0.1 when I enable submission, since
> > my Exim MTA is already using that port. This persists even if I tell the
> > submission protocol to use a different port than 587. I tested 2587, but it
> > would appear that 587 is hard-coded!
> >
> > 2. I realize that "unix_listener auth-client" service ceased to exist!
> >
> > 3. *I realized that while 2.2.34 runs with default_pass_scheme =
> > MD5-CRYPT, 2.3.0.1 would not run with it.*
> >
> > 4. I have run dovecot -n from my 2.2.x installation and 2.3.x installation
> > and here is the diff from the two files.
> >
> > I am confused why authentication is failing with dovecot-2.3.0.1 when it
> > uses 2.3.x config files using MD5-CRYPT scheme while it is succeeding with
> > dovecot-2.2.34 using the same.
> > *Mar 07 22:30:22 auth: Info: sql(user.n...@domain.name
> > ,192.168.55.97,<4CETl9dmscvAqDdh>): Requested
> > DIGEST-MD5 scheme, but we have only MD5-CRYPT*
> >
> > Maybe the problem is elsewhere??? I need a 3rd eye to help me.
> >
> > For now
> >
> > root@gw:~wash/public_html # sdiff dovecot-2.2.txt dovecot-2.3.txt | less
> > # 2.2.34 (874deae): /opt/dovecot2.2/etc/dovecot/dovecot.conf  | # 2.3.0.1
> > (ffd8a29): /opt/dovecot2.3/etc/dovecot/dovecot.conf
> > # OS: FreeBSD 9.3-STABLE i386  ufs  # OS:
> > FreeBSD 9.3-STABLE i386  ufs
> > # Hostname: localhost <
> > auth_cache_size = 20 M
> > auth_cache_size = 20 M
> > auth_master_user_separator = *
> > auth_master_user_separator = *
> > auth_mechanisms = plain login digest-md5
> > auth_mechanisms = plain login digest-md5
> > auth_socket_path = /var/run/dovecot/auth-userdb
> >  auth_socket_path = /var/run/dovecot/auth-userdb
> > base_dir = /var/run/dovecot/base_dir =
> > /var/run/dovecot/
> > default_login_user = dovecot
> > default_login_user = dovecot
> > disable_plaintext_auth = no
> >  disable_plaintext_auth = no
> > first_valid_gid = 0
> >  first_valid_gid = 0
> > first_valid_uid = 26
> > first_valid_uid = 26
> > hostname = gw hostname = gw
> > info_log_path = /var/log/dovecot.log
> > info_log_path = /var/log/dovecot.log
> > mail_location = maildir:/var/spool/virtual/%d/%n/Maildir:INDE
> >  mail_location = maildir:/var/spool/virtual/%d/%n/Maildir:INDE
> > mail_plugins = " quota"   <
> > namespace inbox {   namespace
> > inbox {
> >   inbox = yes inbox =
> > yes
> >   location =  location
> > =
> >   mailbox Drafts {mailbox
> > Drafts {
> > special_use = \Drafts
> >  special_use = \Drafts
> >   }   }
> >   mailbox Junk {  mailbox
> > Junk {
> > special_use = \Junk
> >  special_use = \Junk
> >   }   }
> >   mailbox Sent {  mailbox
> > Sent {
> > special_use = \Sent
> >  special_use = \Sent
> >   }   }
> >   mailbox "Sent Messages" {   mailbox
> > "Sent Messages" {
> > special_use = \Sent
> >  special_use = \Sent
> >   }   }
> >   mailbox Trash { mailbox
> > Trash {
> > special_use = \Trash
> > special_use = \Trash
> >   }   }
> >   prefix =prefix =
> > }   }
> > passdb {passdb {
> >   args = /opt/dovecot2.2/etc/dovecot/passwd.master_users.ext  |   args =
> > /opt/dovecot2.3/etc/dovecot/passwd.master_users.ext
> >   driver = passwd-file  

Re: Authentication Problem with dovecot-2.3.0.1

2018-03-07 Thread Aki Tuomi


On 07.03.2018 22:07, Odhiambo Washington wrote:
> I am a little confused here.
>
> I have been running 2.2.34 which I installed in /opt/dovecot2.2
> I installed 2.3.0.1 to /opt/dovecot23
>
> I then used config files from /opt/dovecot2.2/etc/dovecot to
> /opt/dovecot2.3/etc/dovecot and all I did was sed -i.BAK
> 's/dovecot2.2/dovecot2.3/g'. Dovecot started and was running file.
>
> Next, I manually crafted config files for 2.3.0.1 based on the example
> config files provided which diff-ing those with what I had for 2.2.34.
> I doub't if I missed something crucial during the process.
>
> 1. I realized that I cannot start 2.3.0.1 when I enable submission,
> since my Exim MTA is already using that port. This persists even if I
> tell the submission protocol to use a different port than 587. I
> tested 2587, but it would appear that 587 is hard-coded!
>
> 2. I realize that "unix_listener auth-client" service ceased to exist!
>
> 3. *I realized that while 2.2.34 runs with default_pass_scheme =
> MD5-CRYPT, 2.3.0.1 would not run with it.*
> *
> *
> 4. I have run dovecot -n from my 2.2.x installation and 2.3.x
> installation and here is the diff from the two files.
>
> I am confused why authentication is failing with dovecot-2.3.0.1 when
> it uses 2.3.x config files using MD5-CRYPT scheme while it is
> succeeding with dovecot-2.2.34 using the same.
> *Mar 07 22:30:22 auth: Info: sql(user.n...@domain.name
> ,192.168.55.97,<4CETl9dmscvAqDdh>):
> Requested DIGEST-MD5 scheme, but we have only MD5-CRYPT*
>
> Maybe the problem is elsewhere??? I need a 3rd eye to help me.
>
> For now
>
> root@gw:~wash/public_html # sdiff dovecot-2.2.txt dovecot-2.3.txt | less
> # 2.2.34 (874deae): /opt/dovecot2.2/etc/dovecot/dovecot.conf  | #
> 2.3.0.1 (ffd8a29): /opt/dovecot2.3/etc/dovecot/dovecot.conf
> # OS: FreeBSD 9.3-STABLE i386  ufs                              # OS:
> FreeBSD 9.3-STABLE i386  ufs
> # Hostname: localhost                                         <
> auth_cache_size = 20 M                                         
> auth_cache_size = 20 M
> auth_master_user_separator = *                                 
> auth_master_user_separator = *
> auth_mechanisms = plain login digest-md5                       
> auth_mechanisms = plain login digest-md5
> auth_socket_path = /var/run/dovecot/auth-userdb               
>  auth_socket_path = /var/run/dovecot/auth-userdb
> base_dir = /var/run/dovecot/                                   
> base_dir = /var/run/dovecot/
> default_login_user = dovecot                                   
> default_login_user = dovecot
> disable_plaintext_auth = no                                   
>  disable_plaintext_auth = no
> first_valid_gid = 0                                           
>  first_valid_gid = 0
> first_valid_uid = 26                                           
> first_valid_uid = 26
> hostname = gw                                                 hostname
> = gw
> info_log_path = /var/log/dovecot.log                           
> info_log_path = /var/log/dovecot.log
> mail_location = maildir:/var/spool/virtual/%d/%n/Maildir:INDE 
>  mail_location = maildir:/var/spool/virtual/%d/%n/Maildir:INDE
> mail_plugins = " quota"                                       <
> namespace inbox {                                             
>  namespace inbox {
>   inbox = yes                                                   
>  inbox = yes
>   location =                                                     
> location =
>   mailbox Drafts {                                               
> mailbox Drafts {
>     special_use = \Drafts                                         
>  special_use = \Drafts
>   }                                                               }
>   mailbox Junk {                                                 
> mailbox Junk {
>     special_use = \Junk                                           
>  special_use = \Junk
>   }                                                               }
>   mailbox Sent {                                                 
> mailbox Sent {
>     special_use = \Sent                                           
>  special_use = \Sent
>   }                                                               }
>   mailbox "Sent Messages" {                                     
>  mailbox "Sent Messages" {
>     special_use = \Sent                                           
>  special_use = \Sent
>   }                                                               }
>   mailbox Trash {                                               
>  mailbox Trash {
>     special_use = \Trash                                           
> special_use = \Trash
>   }                                                               }
>   prefix =                                                        prefix =
> }                                                               }
> passdb {                                                        passdb {
>   args =