Re: [Dovecot] meaning of parameter imap_idle_notify_interval??

2009-11-04 Thread Ingo Thierack

a little bit late but now.

As far as I can see, no EXISTS, after idling

Even can't see the additional output in the logmessages.

Looks like the code is never reached?

telnet:

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
STARTTLS AUTH=PLAIN AUTH=CRAM-MD5 AUTH=DIGEST-MD5] ready.

a login xxx x
a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
SORT THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN 
NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH 
ESORT SEARCHRES WITHIN CONTEXT=SEARCH] Logged in

b select inbox
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk 
\*)] Flags permitted.

* 6 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1252958392] UIDs valid
* OK [UIDNEXT 41] Predicted next UID
* OK [HIGHESTMODSEQ 104] Highest
b OK [READ-WRITE] Select completed.
c idle
+ idling
* OK Still here
* OK Still here

logfile

Nov 04 12:20:47 dovecot: Info: This is Dovecot's info log
Nov 04 12:20:47 dovecot: Warning: This is Dovecot's warning log
Nov 04 12:20:47 dovecot: Error: This is Dovecot's error log
Nov 04 12:20:47 dovecot: Fatal: This is Dovecot's fatal log
Nov 04 12:25:01 IMAP(ingo): Info: Effective uid=2, gid=2, 
home=/mnt/mail/home/ingo
Nov 04 12:25:01 IMAP(ingo): Info: dbox: 
data=/mnt/mail/mail/ingo:INDEX=/var/spool/indexes/ingo
Nov 04 12:25:01 IMAP(ingo): Info: fs: root=/mnt/mail/mail/ingo, 
index=/var/spool/indexes/ingo, control=, inbox=
Nov 04 12:25:01 imap-login: Info: Login: user=ingo, method=PLAIN, 
rip=127.0.0.1, lip=127.0.0.1, secured
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: Loading modules from 
directory: /opt/dovecot/lib/dovecot/lda
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: Module loaded: 
/opt/dovecot/lib/dovecot/lda/lib90_sieve_plugin.so
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: auth input: 
home=/mnt/mail/home/ingo
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: auth input: 
mail=dbox:/mnt/mail/mail/ingo:INDEX=/var/spool/indexes/ingo

Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: auth input: uid=2
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: auth input: gid=2
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: dbox: 
data=/mnt/mail/mail/ingo:INDEX=/var/spool/indexes/ingo
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: fs: 
root=/mnt/mail/mail/ingo, index=/var/spool/indexes/ingo, control=, inbox=
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: sieve: using sieve 
path for user's script: /mnt/mail/home/ingo/.dovecot.sieve
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: sieve: opening script 
/mnt/mail/home/ingo/.dovecot.sieve
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: sieve: executing 
compiled script /mnt/mail/home/ingo/.dovecot.sieve
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: sieve: 
msgid=of7bc0b05a.aeffd6e5-onc1257664.003ec4a0-c1257664.003ec...@conrad.de: 
forwarded to i...@a263722.exchange-mail.eu
Nov 04 12:26:28 deliver(i...@ghostdive.org): Info: sieve: 
msgid=of7bc0b05a.aeffd6e5-onc1257664.003ec4a0-c1257664.003ec...@conrad.de: 
stored mail into mailbox 'INBOX'


after that nothing more. Must I change some switch?

raw-log in

b select 
inbox   

 

c 
idle   




raw-log out

* OK [RAWLOG TIMESTAMP] 2009-11-04 
12:25:01 

a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
SORT THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDL
E CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC 
ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH] Logged in  
 

* OK [RAWLOG TIMESTAMP] 2009-11-04 
12:25:15 

* FLAGS (\Answered \Flagged \Deleted \Seen \Draft 
NonJunk)   

* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk 
\*)] Flags permitted.   
* 6 
EXISTS  

* 0 
RECENT  

* OK [UIDVALIDITY 1252958392] UIDs 
valid

* OK 

Re: [Dovecot] quota ignore sent folder

2009-11-04 Thread juan carlos
Do you have an example with different quotas using mysql. 
These are my config files:

dovecot-sql.conf

password_query = SELECT email AS user, password,
'/home/vmail/%d/%n' AS userdb_home, 
'maildir:/home/vmail/%d/%n' AS userdb_mail, 
5000 AS userdb_uid, 
5000 AS userdb_gid, 
CONCAT('maildir:storage=', ROUND(quota/1000) ) AS userdb_quota 
FROM users WHERE email = '%u'



user_query = SELECT '/home/vmail/%d/%n' AS home, 
'maildir:/home/vmail/%d/%n' AS mail, 5000 AS uid, 5000 AS gid, 
CONCAT('maildir:storage=', ROUND(quota/1000) ) AS quota 
FROM users WHERE email = '%u'


dovecot.conf

plugin:
  quota: maildir:storage=51200:messages=1000:ignore=Trash
  trash: /etc/dovecot/dovecot-trash.conf






Re: [Dovecot] quota ignore sent folder

2009-11-04 Thread Pascal Volk
On 11/04/2009 04:21 PM juan carlos wrote:
 Do you have an example with different quotas using mysql. 
 These are my config files:
 
 dovecot-sql.conf
 password_query = SELECT email AS user, password,
 '/home/vmail/%d/%n' AS userdb_home, 
 'maildir:/home/vmail/%d/%n' AS userdb_mail, 
 5000 AS userdb_uid, 
 5000 AS userdb_gid, 
 CONCAT('maildir:storage=', ROUND(quota/1000) ) AS userdb_quota 
 FROM users WHERE email = '%u'
 
 user_query = SELECT '/home/vmail/%d/%n' AS home, 
 'maildir:/home/vmail/%d/%n' AS mail, 5000 AS uid, 5000 AS gid, 
 CONCAT('maildir:storage=', ROUND(quota/1000) ) AS quota 
 FROM users WHERE email = '%u'
 
 
 dovecot.conf
 
 plugin:
   quota: maildir:storage=51200:messages=1000:ignore=Trash
   trash: /etc/dovecot/dovecot-trash.conf

Your dovecot -n output¹ does not show 'prefetch user database' settings.
Please check your password_query. There is an example² in the wiki.
How to configure global quota rules and overwrite it per user, is also
described³ in the wiki (including examples).


Regards,
Pascal
--
1 = http://dovecot.org/list/dovecot/2009-November/044199.html
2 = http://wiki.dovecot.org/AuthDatabase/SQL#MySQL
3 = http://wiki.dovecot.org/Quota/1.1
-- 
The trapper recommends today: beeffeed.0930...@localdomain.org


Re: [Dovecot] Post login script issue with pop3 protocol

2009-11-04 Thread Marcus Rueckert
On 2009-11-04 09:49:23 +0800, Zhang Huangbin wrote:
[[[
 modifying entry  
 mail=...@a.cn,ou=Users,domainName=a.cn,o=domains,dc=iredmail,dc=org
 
]]]

that looks like some debug output from your script
which shouldnt be sent to the client

it also reappears in the error message from thunderbird.

darix

-- 
   openSUSE - SUSE Linux is my linux
   openSUSE is good for you
   www.opensuse.org


Re: [Dovecot] dovecot + dns srv registers

2009-11-04 Thread Marcus Rueckert
On 2009-11-04 14:39:58 -0200, maximatt wrote:
 Dovecot support dns srv registers... for ldap service?

what do you mean with it? resolving srv records?

darix

-- 
   openSUSE - SUSE Linux is my linux
   openSUSE is good for you
   www.opensuse.org


Re: [Dovecot] dovecot + dns srv registers

2009-11-04 Thread maximatt
if dovecot can query dns for ldap service available... (i prefer not
configure rr-dns for ldap service, i prefer use srv records).

maximatt

2009/11/4 Marcus Rueckert da...@opensu.se

 On 2009-11-04 14:39:58 -0200, maximatt wrote:
  Dovecot support dns srv registers... for ldap service?

 what do you mean with it? resolving srv records?

darix

 --
   openSUSE - SUSE Linux is my linux
   openSUSE is good for you
   www.opensuse.org




-- 
Salu2 ;)


Re: [Dovecot] dovecot + dns srv registers

2009-11-04 Thread maximatt
sorry the message send without finish them 

if dovecot can query dns for ldap service available... and if docecot can
autodiscover them (the service of course)
(i prefer not configure rr-dns for ldap service).

thanks in advance

2009/11/4 maximatt aza...@gmail.com

 if dovecot can query dns for ldap service available... (i prefer not
 configure rr-dns for ldap service, i prefer use srv records).

 maximatt

 2009/11/4 Marcus Rueckert da...@opensu.se

 On 2009-11-04 14:39:58 -0200, maximatt wrote:
  Dovecot support dns srv registers... for ldap service?

 what do you mean with it? resolving srv records?

darix

 --
   openSUSE - SUSE Linux is my linux
   openSUSE is good for you
   www.opensuse.org




 --
 Salu2 ;)




-- 
Salu2 ;)


Re: [Dovecot] dovecot + dns srv registers

2009-11-04 Thread Timo Sirainen
I still don't really understand. Probably because I don't know how
exactly SRV records are supposed to even work. How would I query LDAP
service with e.g. dig?

On Wed, 2009-11-04 at 15:14 -0200, maximatt wrote:
 sorry the message send without finish them 
 
 if dovecot can query dns for ldap service available... and if docecot can
 autodiscover them (the service of course)
 (i prefer not configure rr-dns for ldap service).
 
 thanks in advance
 
 2009/11/4 maximatt aza...@gmail.com
 
  if dovecot can query dns for ldap service available... (i prefer not
  configure rr-dns for ldap service, i prefer use srv records).
 
  maximatt
 
  2009/11/4 Marcus Rueckert da...@opensu.se
 
  On 2009-11-04 14:39:58 -0200, maximatt wrote:
   Dovecot support dns srv registers... for ldap service?
 
  what do you mean with it? resolving srv records?
 
 darix
 
  --
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
 
 
 
 
  --
  Salu2 ;)
 
 
 
 



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Dovecot lock problem

2009-11-04 Thread Simon Gao
 What is the process doing? Check with strace -p imap process pid?
 How large is the user's mailbox?

We just have another user reporting problem. There is no lock on 
/var/spool/mail/user file. 

The strace has following:

 # strace -p 8117
Process 8117 attached - interrupt to quit
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)   
  
--- SIGALRM (Alarm clock) @ 0 (0) ---   
 
sigreturn() = ? (mask now [])   
 
time(NULL)  = 1257362101
 
alarm(5)= 0 
 
time(NULL)  = 1257362101
 
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)   
  
--- SIGALRM (Alarm clock) @ 0 (0) ---   
 
sigreturn() = ? (mask now [])   
 
time(NULL)  = 1257362106
 
alarm(5)= 0 
 
time(NULL)  = 1257362106
 
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)   
  
--- SIGALRM (Alarm clock) @ 0 (0) ---   
 
sigreturn() = ? (mask now [])   
 
time(NULL)  = 1257362111
 
alarm(5)= 0 
 
time(NULL)  = 1257362111
 
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)   
  
--- SIGALRM (Alarm clock) @ 0 (0) ---   
 
sigreturn() = ? (mask now [])   
 
time(NULL)  = 1257362116
 
alarm(5)= 0 
 
time(NULL)  = 1257362116
 
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)   
  
--- SIGALRM (Alarm clock) @ 0 (0) ---   
 
sigreturn() = ? (mask now [])   
 
time(NULL)  = 1257362121
 
alarm(5)= 0 
 
time(NULL)  = 1257362121
 
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)   
  
--- SIGALRM (Alarm clock) @ 0 (0) ---   
 
sigreturn() = ? (mask now [])   
 
time(NULL)  = 1257362126
 
alarm(5)= 0 
 
time(NULL)  = 1257362126
 
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)   
  
--- SIGALRM (Alarm clock) @ 0 (0) ---   
 
sigreturn() = ? (mask now [])   
 
time(NULL)  = 1257362131
 
alarm(5)= 0 
 
time(NULL)  = 1257362131
 
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 
0xff9f4db4) = ? ERESTARTSYS (To be restarted)   
  
--- SIGALRM (Alarm clock) @ 0 (0) ---   
 
sigreturn() = ? (mask now [])   
 
time(NULL)  = 1257362136
 
alarm(5)= 0 
 
time(NULL)  = 1257362136
 
fcntl64(8, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, 

Re: [Dovecot] dovecot + dns srv registers

2009-11-04 Thread Jason Gunthorpe
On Wed, Nov 04, 2009 at 02:33:07PM -0500, Timo Sirainen wrote:
 I still don't really understand. Probably because I don't know how
 exactly SRV records are supposed to even work. How would I query LDAP
 service with e.g. dig?

Latest versions of openldap do this automatically, IIRC you specify a
LDAP url something like:

 ldap:///DC=foo,DC=bar,DC=com

And it looks up _ldap._tcp.foo.bar.com:
$ dig -t SRV _ldap._tcp.foo.bar.com.
_ldap._tcp.foo.bar.com. 600   IN  SRV 0 100 389 ldap.foo.bar.com.

And then it picks the best priority SRV and looks that up, and
rotates around to the other ones if the first doesn't work.

SRV records are better than RR DNS because the priority field lets the
client sort them. In MS implementations the DNS server will return
priority fields that reflect the queriers subnet - it will dynamically
make closer servers have better priority.

Jason