Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-02 Thread Frank Bonnet

On 08/02/2012 12:04 AM, Daniel Parthey wrote:

Timo Sirainen wrote:

On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:

where the  will probably work if you do something like:

a list "" *
b lsub "" *
c select inbox

if not, check what IMAP commands your IMAP client sends when it fails. 
http://wiki2.dovecot.org/Debugging/Rawlog

I ran it anyway , the output is below

All good, except the error didn't happen. So you'd need to look at the
IMAP traffic to see which command generates the error.

Frank, please do a plaintext connect on IMAP port 143 from your mail client
to dovecot with a changed test password and record your traffic using tcpdump
or wireshark, something like this:

tcpdump -n -s 0 -w /tmp/pcap.dat -i eth0 tcp port 143

Then view the file pcap.dat with wireshark[1], right click on the TCP connection
and select "Follow TCP Stream" from the context menu. Then you'll get the IMAP
commands and responses spoken between Thunderbird and Dovecot.

Regards
Daniel

[1] http://www.wireshark.org/


Hello

Thanks for your help.

well I did but haven't found anything interrestiing in tcpdump log ...
and the problem did not happened this morning since I have
mail_debug=no in 10-logging.conf file then restart dovecot ...

BTW if it matter the users's home directories is a link than point
to the real directory.






Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Daniel Parthey
Timo Sirainen wrote:
> On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
> > > where the  will probably work if you do something like:
> > >
> > > a list "" *
> > > b lsub "" *
> > > c select inbox
> > >
> > > if not, check what IMAP commands your IMAP client sends when it fails. 
> > > http://wiki2.dovecot.org/Debugging/Rawlog
> > 
> > I ran it anyway , the output is below
> 
> All good, except the error didn't happen. So you'd need to look at the
> IMAP traffic to see which command generates the error.

Frank, please do a plaintext connect on IMAP port 143 from your mail client
to dovecot with a changed test password and record your traffic using tcpdump
or wireshark, something like this:

tcpdump -n -s 0 -w /tmp/pcap.dat -i eth0 tcp port 143

Then view the file pcap.dat with wireshark[1], right click on the TCP connection
and select "Follow TCP Stream" from the context menu. Then you'll get the IMAP
commands and responses spoken between Thunderbird and Dovecot.

Regards
Daniel

[1] http://www.wireshark.org/
-- 
https://plus.google.com/103021802792276734820


Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Frank Bonnet

On 08/01/2012 02:19 PM, Timo Sirainen wrote:

On 1.8.2012, at 15.10, Frank Bonnet wrote:


On 08/01/2012 02:07 PM, Timo Sirainen wrote:

On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:

where the  will probably work if you do something like:

a list "" *
b lsub "" *
c select inbox

if not, check what IMAP commands your IMAP client sends when it fails. 
http://wiki2.dovecot.org/Debugging/Rawlog

I ran it anyway , the output is below

All good, except the error didn't happen. So you'd need to look at the
IMAP traffic to see which command generates the error.



we use thunderbird, maybe trying with evolution give some way ?

Something is wrong in Dovecot since it's logging an error. I just can't fix it 
unless I know what IMAP command causes the error.



do you think imaptest could help ?



Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Frank Bonnet

On 08/01/2012 02:19 PM, Timo Sirainen wrote:

On 1.8.2012, at 15.10, Frank Bonnet wrote:


On 08/01/2012 02:07 PM, Timo Sirainen wrote:

On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:

where the  will probably work if you do something like:

a list "" *
b lsub "" *
c select inbox

if not, check what IMAP commands your IMAP client sends when it fails. 
http://wiki2.dovecot.org/Debugging/Rawlog

I ran it anyway , the output is below

All good, except the error didn't happen. So you'd need to look at the
IMAP traffic to see which command generates the error.



we use thunderbird, maybe trying with evolution give some way ?

Something is wrong in Dovecot since it's logging an error. I just can't fix it 
unless I know what IMAP command causes the error.

ok understood , I have looked carrefully in logs , it *seems* to happen 
ONLY at the first connection of the day ...

would it be possible ? would it be a caching problem ?




Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Timo Sirainen
On 1.8.2012, at 15.10, Frank Bonnet wrote:

> On 08/01/2012 02:07 PM, Timo Sirainen wrote:
>> On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
 where the  will probably work if you do something like:
 
 a list "" *
 b lsub "" *
 c select inbox
 
 if not, check what IMAP commands your IMAP client sends when it fails. 
 http://wiki2.dovecot.org/Debugging/Rawlog
>>> 
>>> I ran it anyway , the output is below
>> All good, except the error didn't happen. So you'd need to look at the
>> IMAP traffic to see which command generates the error.
>> 
>> 
> we use thunderbird, maybe trying with evolution give some way ?

Something is wrong in Dovecot since it's logging an error. I just can't fix it 
unless I know what IMAP command causes the error.



Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Frank Bonnet

On 08/01/2012 02:07 PM, Timo Sirainen wrote:

On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:

where the  will probably work if you do something like:

a list "" *
b lsub "" *
c select inbox

if not, check what IMAP commands your IMAP client sends when it fails. 
http://wiki2.dovecot.org/Debugging/Rawlog


I ran it anyway , the output is below

All good, except the error didn't happen. So you'd need to look at the
IMAP traffic to see which command generates the error.



we use thunderbird, maybe trying with evolution give some way ?



Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Timo Sirainen
On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
> > where the  will probably work if you do something like:
> >
> > a list "" *
> > b lsub "" *
> > c select inbox
> >
> > if not, check what IMAP commands your IMAP client sends when it fails. 
> > http://wiki2.dovecot.org/Debugging/Rawlog
> 
> 
> I ran it anyway , the output is below

All good, except the error didn't happen. So you'd need to look at the
IMAP traffic to see which command generates the error.




Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Frank Bonnet

On 08/01/2012 01:27 PM, Timo Sirainen wrote:

On 1.8.2012, at 14.21, Frank Bonnet wrote:


Aug 01 13:06:09 imap(bonnetf): Error: opendir(/user/bonnetf/.imap) failed: No 
such file or directory

I don't see any obvious way for this to happen. Can you reproduce it by running 
imap process directly and talking imap protocol? Something like this would be 
helpful:

chmod a+rw /var/run/dovecot/config
gdb /usr/local/lib/dovecot/imap
b i_error
run

bt full

where the  will probably work if you do something like:

a list "" *
b lsub "" *
c select inbox

if not, check what IMAP commands your IMAP client sends when it fails. 
http://wiki2.dovecot.org/Debugging/Rawlog



I ran it anyway , the output is below


%gdb /usr/local/libexec/dovecot/imap
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging 
symbols found)...

(gdb)
(gdb) b i_error
Function "i_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (i_error) pending.
(gdb) run
Starting program: /usr/local/libexec/dovecot/imap
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...[New LWP 102225]

(no debugging symbols found)...Breakpoint 2 at 0x800ba4430
Pending breakpoint "i_error" resolved
[New Thread 801c07400 (LWP 102225/imap)]
Debug: Effective uid=3003, gid=3010, home=/user/bonnetf
Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, 
list=yes, subscriptions=yes 
location=mbox:/user/bonnetf/:INBOX=/var/mail/bonnetf:INDEX=/var/spool/dovecot/index/bonnetf
Debug: fs: root=/user/bonnetf, index=/var/spool/dovecot/index/bonnetf, 
control=, inbox=/var/mail/bonnetf, alt=
* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID 
ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND 
UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE 
QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS 
SPECIAL-USE] Logged in as bonnetf

a list "" *
* LIST (\NoInferiors \UnMarked) "/" ".dovecot.sieve"
* LIST (\NoInferiors \UnMarked) "/" "NetAPP"
* LIST (\NoInferiors \Marked) "/" "Admin"
* LIST (\NoInferiors \UnMarked) "/" "CCIP"
* LIST (\NoInferiors \UnMarked) "/" "Clement"
* LIST (\Noselect \HasChildren) "/" "sieve"
* LIST (\Noselect \HasChildren) "/" "sieve/tmp"
* LIST (\NoInferiors \UnMarked) "/" "sieve/roundcube.sieve"
* LIST (\NoInferiors \UnMarked) "/" "Drafts"
* LIST (\NoInferiors \UnMarked) "/" "ESIEE"
* LIST (\NoInferiors \UnMarked) "/" ".dovecot.sieve.log"
* LIST (\NoInferiors \UnMarked) "/" ".dovecot.svbin"
* LIST (\NoInferiors \UnMarked) "/" "FPS"
* LIST (\NoInferiors \Marked) "/" "PRIVE"
* LIST (\NoInferiors \UnMarked) "/" "Sent"
* LIST (\NoInferiors \UnMarked) "/" ".vacation.msg"
* LIST (\NoInferiors \UnMarked) "/" "Templates"
* LIST (\NoInferiors \UnMarked) "/" "Trash"
* LIST (\NoInferiors \UnMarked) "/" "UMLV"
* LIST (\NoInferiors \UnMarked) "/" "Caille"
* LIST (\NoInferiors \UnMarked) "/" "Postmaster"
* LIST (\NoInferiors \UnMarked) "/" "Junk"
* LIST (\NoInferiors \UnMarked) "/" "Archives"
* LIST (\NoInferiors \UnMarked) "/" "bkup-ldap"
* LIST (\NoInferiors \UnMarked) "/" "Deleted Messages"
* LIST (\NoInferiors \UnMarked) "/" "Apple"
* LIST (\NoInferiors \UnMarked) "/" "Notes"
* LIST (\NoInferiors \UnMarked) "/" "EmailStuff"
* LIST (\NoInferiors \UnMarked) "/" "LISTSERV"
* LIST (\NoInferiors \UnMarked) "/" "RENATER"
* LIST (\NoInferiors \UnMarked) "/" "Free"
* LIST (\NoInferiors \UnMarked) "/" "filers"
* LIST (\NoInferiors \UnMarked) "/" "PRIVE2"
* LIST (\NoInferiors \UnMarked) "/" "SUSE-NOVELL"
* LIST (\NoInferiors \UnMarked) "/" "SYBASE"
* LIST (\NoInferiors \UnMarked) "/" "Nono"
* LIST (\NoInferiors \UnMarked) "/" "NGINX"
* LIST (\NoInferiors \UnMarked) "/" "DIFFGEN"
* LIST (\NoInferiors \UnMarked) "/" "ADESOFT"
* LIST (\NoInferiors \UnMarked) "/" "RENATER-TCS"
* LIST (\NoInferiors \UnMarked) "/" "Forensic"
* LIST (\NoInferiors \UnMarked) "/" "EnCours"
* LIST (\NoInferiors \UnMarked) "/" "BSD"
* LIST (\NoInferiors \UnMarked) "/" "NYP"
* LIST (\NoInferiors \UnMarked) "/" "Sent Messages"
* LIST (\NoInferiors \UnMarked) "/" ".forward"
* LIST (\HasNoChildren) "/" "INBOX"
a OK List completed.
b lsub "" *
* LSUB () "/" "Admin"
* LSUB () "/" "CCIP"
* LSUB () "/" "Clement"
* LSUB () "/" "Drafts"
* LSUB () "/" "ESIEE"
* LSUB () "/" "FPS"
* LSUB () "/" "PRIVE"
* LSUB () "/" "Sent"
* LSUB () "/" "Templates"
* LSUB () "/" "Trash"
* LSUB () "/" "UMLV"
* LSUB () "/" "Caille"
* LSUB () "/" "Postmaster"
* 

Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Frank Bonnet

On 08/01/2012 01:27 PM, Timo Sirainen wrote:

On 1.8.2012, at 14.21, Frank Bonnet wrote:


Aug 01 13:06:09 imap(bonnetf): Error: opendir(/user/bonnetf/.imap) failed: No 
such file or directory

I don't see any obvious way for this to happen. Can you reproduce it by running 
imap process directly and talking imap protocol? Something like this would be 
helpful:

chmod a+rw /var/run/dovecot/config
gdb /usr/local/lib/dovecot/imap


it starts badly

mail# gdb /usr/local/libexec/dovecot/imap
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging 
symbols found)...

(gdb) b i_error
Function "i_error" not defined.




b i_error
run

bt full

where the  will probably work if you do something like:

a list "" *
b lsub "" *
c select inbox

if not, check what IMAP commands your IMAP client sends when it fails. 
http://wiki2.dovecot.org/Debugging/Rawlog




--
CYBERDROID Inc.

Frank BONNET

01.45.92.66.17

Service des Moyens Informatiques Generaux

ESIEE PARIS
Cité Descartes / BP 99
93162 NOISY-LE-GRAND Cedex
http://www.esiee.fr 



Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Timo Sirainen
On 1.8.2012, at 14.21, Frank Bonnet wrote:

> Aug 01 13:06:09 imap(bonnetf): Error: opendir(/user/bonnetf/.imap) failed: No 
> such file or directory

I don't see any obvious way for this to happen. Can you reproduce it by running 
imap process directly and talking imap protocol? Something like this would be 
helpful:

chmod a+rw /var/run/dovecot/config
gdb /usr/local/lib/dovecot/imap
b i_error
run

bt full

where the  will probably work if you do something like:

a list "" *
b lsub "" *
c select inbox

if not, check what IMAP commands your IMAP client sends when it fails. 
http://wiki2.dovecot.org/Debugging/Rawlog



Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Frank Bonnet

On 08/01/2012 01:16 PM, Charles Marcus wrote:

On 2012-08-01 7:03 AM, Frank Bonnet  wrote:

Yes sorry I forgot :-(

See attached the doveconf -n output


Logs?




All lines are IDENTICALS except the user id
I put MY login but it happen for ALL users when they connect


Aug 01 13:06:09 imap(bonnetf): Error: opendir(/user/bonnetf/.imap) 
failed: No such file or directory



BTW : I use real unix users thru nss_ldap & pam_ldap auth, no virtual user


On 08/01/2012 12:56 PM, Charles Marcus wrote:

Please help us help you.

Always provide bare minimum system/config/error details, like:

Full doveconf -n output
(don't 'describe' your config with a one line copy/paste from some
random config file)

Full (untrimmed) logs exhibiting the problem





--
CYBERDROID Inc.

Frank BONNET

01.45.92.66.17

Service des Moyens Informatiques Generaux

ESIEE PARIS
Cité Descartes / BP 99
93162 NOISY-LE-GRAND Cedex
http://www.esiee.fr 



Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Charles Marcus

On 2012-08-01 7:03 AM, Frank Bonnet  wrote:

Yes sorry I forgot :-(

See attached the doveconf -n output


Logs?


On 08/01/2012 12:56 PM, Charles Marcus wrote:

Please help us help you.

Always provide bare minimum system/config/error details, like:

Full doveconf -n output
(don't 'describe' your config with a one line copy/paste from some
random config file)

Full (untrimmed) logs exhibiting the problem


--

Best regards,

Charles


Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Frank Bonnet

Yes sorry I forgot :-(

See attached the doveconf -n output

Thanks




On 08/01/2012 12:56 PM, Charles Marcus wrote:

Please help us help you.

Always provide bare minimum system/config/error details, like:

Full doveconf -n output
(don't 'describe' your config with a one line copy/paste from some 
random config file)


Full (untrimmed) logs exhibiting the problem

On 2012-08-01 3:19 AM, Frank Bonnet  wrote:

hello

I see this message in the dovecot error log every time
a user connect to IMAP service.

imap(): Error: opendir(/user//.imap) failed: No such
file or directory

In the server's config I've this

mail_location =
mbox:%h/:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/index/%u

As we can see INDEX files are not living in user's home directories but
in /var/spool/dovecot/index/%u
so why this error message ?

BTW : users access normally to their IMAP folders , I'm just curious
about this message
which is not marked as warning but error





--
CYBERDROID Inc.

Frank BONNET

01.45.92.66.17

Service des Moyens Informatiques Generaux

ESIEE PARIS
Cité Descartes / BP 99
93162 NOISY-LE-GRAND Cedex
http://www.esiee.fr 

# 2.1.8: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 9.0-RELEASE-p3 amd64  
auth_verbose = yes
auth_verbose_passwords = plain
auth_worker_max_count = 100
debug_log_path = /var/log/dovecot/debug.log
default_client_limit = 6144
default_process_limit = 1024
default_vsz_limit = 1 G
disable_plaintext_auth = no
info_log_path = /var/log/dovecot/info.log
log_path = /var/log/dovecot/dovecot.log
mail_debug = yes
mail_fsync = always
mail_location = mbox:%h/:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/index/%u
mail_temp_dir = /var/tmp
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave
mbox_lock_timeout = 3 mins
mbox_write_locks = fcntl
mmap_disable = yes
namespace {
  inbox = yes
  location = 
  prefix = 
  separator = /
  subscriptions = yes
  type = private
}
passdb {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
postmaster_address = postmas...@esiee.fr
protocols = imap pop3
sendmail_path = /usr/local/sbin/sendmail
service auth {
  client_limit = 7169
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
  process_min_avail = 10
  service_count = 1
  vsz_limit = 3 G
}
service imap {
  process_limit = 2048
  vsz_limit = 3 G
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
  inet_listener sieve_deprecated {
port = 2000
  }
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
}
ssl_ca = [REMOVED INTENTIONALLY]
ssl_cert = [REMOVED INTENTIONALLY]
ssl_key = [REMOVED INTENTIONALLY]
userdb {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
verbose_proctitle = yes
protocol lda {
  info_log_path = /var/log/dovecot/dovecot-lda.log
  log_path = /var/log/dovecot/dovecot-lda-errors.log
  mail_plugins = sieve $mail_plugins
}
protocol imap {
  imap_client_workarounds = tb-extra-mailbox-sep
  mail_max_userip_connections = 30
}
protocol sieve {
  mail_max_userip_connections = 30
  managesieve_implementation_string = Dovecot Pigeonhole
}


Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Charles Marcus

Please help us help you.

Always provide bare minimum system/config/error details, like:

Full doveconf -n output
(don't 'describe' your config with a one line copy/paste from some 
random config file)


Full (untrimmed) logs exhibiting the problem

On 2012-08-01 3:19 AM, Frank Bonnet  wrote:

hello

I see this message in the dovecot error log every time
a user connect to IMAP service.

imap(): Error: opendir(/user//.imap) failed: No such
file or directory

In the server's config I've this

mail_location =
mbox:%h/:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/index/%u

As we can see INDEX files are not living in user's home directories but
in /var/spool/dovecot/index/%u
so why this error message ?

BTW : users access normally to their IMAP folders , I'm just curious
about this message
which is not marked as warning but error


--

Best regards,

Charles


[Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-01 Thread Frank Bonnet

hello

I see this message in the dovecot error log every time
a user connect to IMAP service.

imap(): Error: opendir(/user//.imap) failed: No such 
file or directory


In the server's config I've this

mail_location = 
mbox:%h/:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/index/%u


As we can see INDEX files are not living in user's home directories but 
in  /var/spool/dovecot/index/%u

so why this error message ?

BTW : users access normally to their IMAP folders , I'm just curious 
about this message

  which is not marked as warning but error

Thank you