[Dovecot] how to display dovecot.index.cache

2013-11-05 Thread ldaamandy
hello dovecot@dovecot.org:
 
I want to see the contents of dovecot.index.cache .  Is there any command 
can make it become visible character displayed ?
   the command idxview can displayed doveoct.index  and  logview can dispalyed 
dovecot.index.log   but  it seems no command to displays dovecot.index.cache  
for us.  
 
 
thanks  
   amandy
  

Re: [Dovecot] how to display dovecot.index.cache

2013-11-06 Thread ldaamandy
thank you Timo Sirainen:
   
  is that The contents of the dovecot.index file containing  the content of 
index.cache or they are the same one ?
  It seems that dovecot.index is major.
 
> From: t...@iki.fi
> Date: Wed, 6 Nov 2013 22:34:34 +0200
> To: amandy_...@outlook.com
> CC: dovecot@dovecot.org
> Subject: Re: [Dovecot] how to display dovecot.index.cache
> 
> On 6.11.2013, at 9.23, ldaamandy  wrote:
> 
> > hello dovecot@dovecot.org:
> > 
> >I want to see the contents of dovecot.index.cache .  Is there any 
> > command can make it become visible character displayed ?
> >   the command idxview can displayed doveoct.index  and  logview can 
> > dispalyed dovecot.index.log   but  it seems no command to displays 
> > dovecot.index.cache  for us.  
> 
> Looking at dovecot.index also displays dovecot.index.cache contents. (The 
> cache file is unusable without dovecot.index.)
> 
  

Re: [Dovecot] how to display dovecot.index.cache

2013-11-06 Thread ldaamandy
thank you for your advice😊:
I will have a try  .  I just want to know how to sync dovecot.index to 
memory and  the meening of every field in dovecot.index.
 
> Date: Wed, 6 Nov 2013 19:16:17 +
> From: user+dove...@localhost.localdomain.org
> To: dovecot@dovecot.org
> Subject: Re: [Dovecot] how to display dovecot.index.cache
> 
> On 11/06/2013 07:23 AM ldaamandy wrote:
> > hello dovecot@dovecot.org:
> >  
> > I want to see the contents of dovecot.index.cache .  Is there any 
> > command can make it become visible character displayed ?
> 
> strings(1); for example:
>   strings mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache
> 
> For details see: http://wiki2.dovecot.org/IndexFiles#Cache_file
> 
> >the command idxview can displayed doveoct.index  and  logview can 
> > dispalyed dovecot.index.log   but  it seems no command to displays 
> > dovecot.index.cache  for us.  
> 
> Using idxview and logview indicates the you are using Dovecot v1.x. You
> should consider to update to a more recent AND better supported version.
> 
> 
> Regards,
> Pascal
> -- 
> The trapper recommends today: c01dcofe.1331...@localdomain.org
  

Re: [Dovecot] how to display dovecot.index.cache

2013-11-06 Thread ldaamandy
a ha , I have got it ,   I'm very happy to know that ,thank you very much 😉 !!  
 
> From: t...@iki.fi
> Date: Thu, 7 Nov 2013 04:49:28 +0200
> To: amandy_...@outlook.com
> CC: dovecot@dovecot.org
> Subject: Re: [Dovecot] how to display dovecot.index.cache
> 
> I mean when you run "idxview dovecot.index”, it actually opens both 
> dovecot.index and dovecot.index.cache (and also dovecot.index.log) and 
> combines all of their contents and displays the merged output. dovecot.index 
> contains only pointers inside the dovecot.index.cache file, but without these 
> pointers the dovecot.index.cache isn’t very usable.
> 
> On 7.11.2013, at 4.45, ldaamandy  wrote:
> 
> > thank you Timo Sirainen:
> > 
> >  is that The contents of the dovecot.index file containing  the content 
> > of index.cache or they are the same one ?
> >  It seems that dovecot.index is major.
> > 
> >> From: t...@iki.fi
> >> Date: Wed, 6 Nov 2013 22:34:34 +0200
> >> To: amandy_...@outlook.com
> >> CC: dovecot@dovecot.org
> >> Subject: Re: [Dovecot] how to display dovecot.index.cache
> >> 
> >> On 6.11.2013, at 9.23, ldaamandy  wrote:
> >> 
> >>> hello dovecot@dovecot.org:
> >>> 
> >>>   I want to see the contents of dovecot.index.cache .  Is there any 
> >>> command can make it become visible character displayed ?
> >>>  the command idxview can displayed doveoct.index  and  logview can 
> >>> dispalyed dovecot.index.log   but  it seems no command to displays 
> >>> dovecot.index.cache  for us.  
> >> 
> >> Looking at dovecot.index also displays dovecot.index.cache contents. (The 
> >> cache file is unusable without dovecot.index.)
> >> 
> >   
> 
  

[Dovecot] What's the parameter -w for dovecot-auth: dovecot -w

2014-01-06 Thread ldaamandy



hello:

What's the parameter -w for dovecot-auth:   dovecot -w my service of 
dovecot-auth always activing two: one is" dovecot-auth"   , the other is" 
dovecot-auth -w" i don't know the diffevent between them
  amandy
   thanks!
  

Re: [Dovecot] What's the parameter -w for dovecot-auth: dovecot -w

2014-01-06 Thread ldaamandy



thank you Darren Pilgrim  and  what should I do to not let dovecot -w 
start?  i  want to keep one dovecot-auth . Is it set in the dovecot.conf ? 
 
> Date: Mon, 6 Jan 2014 01:39:21 -0800
> From: list_dove...@bluerosetech.com
> To: amandy_...@outlook.com; dovecot@dovecot.org
> Subject: Re: [Dovecot] What's the parameter -w for dovecot-auth:   dovecot -w
> 
> On 1/6/2014 1:17 AM, ldaamandy wrote:
> > What's the parameter -w for dovecot-auth: dovecot -w my service of
> > dovecot-auth always activing two: one is" dovecot-auth", the other
> > is" dovecot-auth -w" i don't know the diffevent between them
> 
> According to the Dovecot 1.x wiki:
> 
> 'dovecot-auth -w process is an "authentication worker" process. It's 
> used only with some "blocking" authentication databases, such as MySQL.'
> 
> http://wiki1.dovecot.org/RunningDovecot

  

Re: [Dovecot] What's the parameter -w for dovecot-auth: dovecot -w

2014-01-06 Thread ldaamandy
ok  thanks for your answer . I'will  be using Dovecot 2.x  myself  soon  after 
i get 1.x .
 
thanks   
   
amandy
 
> Date: Mon, 6 Jan 2014 05:05:15 -0800
> From: list_dove...@bluerosetech.com
> To: amandy_...@outlook.com; dovecot@dovecot.org
> Subject: Re: [Dovecot] What's the parameter -w for dovecot-auth: dovecot -w
> 
> On 1/6/2014 2:02 AM, ldaamandy wrote:
> > thank you Darren Pilgrim  and  what should I do to not let
> > dovecot -w start?  i  want to keep one dovecot-auth . Is it set in
> > the dovecot.conf ?
> 
> You can't make it not start--it's necessary for certain authentication 
> databases.  Even if you could, why are you worrying about this?  If you 
> really don't want it, you'll need to switch to a different 
> authentication database.  I'm pretty sure PostgreSQL doesn't require an 
> authentication worker, but can't verify that as I no longer use Dovecot 1.x.
  

[Dovecot] Disconnected (auth failed, 1 attempts)

2014-03-25 Thread ldaamandy
hi  :

i just install dovecot-2 and start ok  but login failed  for test-user . i turn 
on all debug options  , the debug info follow:

 

"Mar 25 14:40:10 cs2c dovecot: imap-login: Disconnected (auth failed, 1 
attempts): user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, 
secured"

 

 and  the info of input->w_buffer is : cp01 CAPABILITY a001 LOGIN "q...@t.com" 
"q1q1q1q1"

 

 the auth of dovecot.conf:

>

passdb {
  args = /etc/dovecot.master
  driver = passwd-file
  master = yes
  pass = yes
}
passdb {
  args = /etc/dovecot-memcached.conf
  driver = dict
} 

 

userdb {
  args = /etc/dovecot-memcached.conf
  driver = dict
}

 

[root@cs2c log]# telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
get q1@t.com_imap
VALUE q1@t.com_imap 0 205
{"username":"q...@t.com","password":"{CRYPT}$1$d5ef98b7$brWKOJiUiqII3DysGzsfl\/","home":"\/test\/mail","mail":"maildir:\/t.com\/q...@t.com","quota_rule2":"*:messages=1","quota_rule":"*:bytes=11650727936"}
END

 

>>

 

The relevant code is:
>login-common/client-common.c<<<
bool client_read(struct client *client)
{   
switch (i_stream_read(client->input)) {//w_buffer:cp01 CAPABILITY 
a001 LOGIN "q...@t.com" "q1q1q1q1"
case -2:
/* buffer full */
client_send_line(client, CLIENT_CMD_REPLY_BYE,
 "Input buffer full, aborting");
client_destroy(client, "Disconnected: Input buffer full");
return FALSE;
case -1:
/* disconnected */
client_destroy(client, "Disconnected");//debug infomation
return FALSE;
case 0: 
/* nothing new read */
return TRUE;
default:
/* something was read */
return TRUE;
}   
}

>>imap-login/client.c<< 

 static void imap_client_input(struct client *client)
{
struct imap_client *imap_client = (struct imap_client *)client;

if (!client_read(client)) 
return;

client_ref(client);   
o_stream_cork(imap_client->common.output);
for (;;) {
if (!auth_client_is_connected(auth_client)) {
/* we're not currently connected to auth process -
   don't allow any commands */
client_send_line(client, CLIENT_CMD_REPLY_STATUS,
 AUTH_SERVER_WAITING_MSG);
if (client->to_auth_waiting != NULL)
timeout_remove(&client->to_auth_waiting);

client->input_blocked = TRUE;
break;
} else {
if (!client_handle_input(imap_client))
break;
}
}
o_stream_uncork(imap_client->common.output);
client_unref(&client);
}

 

 

 

>>other-dovecot.conf

..

protocols = pop3 imap
service auth {
  unix_listener /var/spool/postfix/dovecot-auth {
group = postfix
mode = 0666
user = postfix
  }
  unix_listener auth-master {
group = testmail
mode = 0666
user = testmail
  }
  user = testmail
}
service imap-login {
  service_count = 1
}
service imap {
  drop_priv_before_exec = no
  executable = /usr/libexec/dovecot/imap
}
service pop3-login {
  service_count = 1
}
service pop3 {
  drop_priv_before_exec = yes
  executable = /usr/libexec/dovecot/pop3
}
ssl_cert =