Re: [Dovecot] mailbox not acceced

2008-02-11 Thread mouss
Osvaldo Alvarez Pozo wrote: i changed permissions, but no results So i added a field to the table mailbox like this: alter table mailbox add last_login datetime NOT NULL default '-00-00 00:00:00'; That's not a strictly valid date. better use a real date ('1970-01-01 00:00:00' for insta

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread Benjamin R. Haskell
On Mon, 11 Feb 2008, Osvaldo Alvarez Pozo wrote: i changed permissions, but no results Are you sure the connection is opened correctly? If I were debugging this on my machine I'd: 1) Add something to check that the MySQL connection is fine: mysql postfix -e "select now()" > /root/dovecot-

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread Osvaldo Alvarez Pozo
i changed permissions, but no results So i added a field to the table mailbox like this: alter table mailbox add last_login datetime NOT NULL default '-00-00 00:00:00'; for the moment I run two cron jobs 1 egrep "dovecot: (imap|pop3)-login" /var/log/mail.log >/var/log/maillog 2 /root/account

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread Benjamin R. Haskell
On Mon, 11 Feb 2008, Osvaldo Alvarez Pozo wrote: Hi did another test if I run from the console mysql postfix -e "update mailbox set last_log = now() WHERE username = '[EMAIL PROTECTED]'" the field last_log gets updated. but no way to make it work from /etc/dovecot.dovecot.conf Sounds like a p

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread Osvaldo Alvarez Pozo
Hi did another test if I run from the console mysql postfix -e "update mailbox set last_log = now() WHERE username = '[EMAIL PROTECTED]'" the field last_log gets updated. but no way to make it work from /etc/dovecot.dovecot.conf On Feb 11, 2008 8:21 PM, Osvaldo Alvarez Pozo <[EMAIL PROTECTED]> w

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread Osvaldo Alvarez Pozo
I did some test & the value of $UID is zero. how could I recover the value of the logged user? Thanks. On Feb 11, 2008 6:57 PM, mouss <[EMAIL PROTECTED]> wrote: > Hugo Monteiro wrote: > > Osvaldo Alvarez Pozo wrote: > >> i was looking your mail and as I have a data base i added a field to > >> de

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread mouss
Hugo Monteiro wrote: Osvaldo Alvarez Pozo wrote: i was looking your mail and as I have a data base i added a field to de data base I modified the script so it lokks like this. #!/bin/sh echo "update mailbox set last_log = now() WHERE username = '$USER'" | mysql postfix exec /usr/dovecot/libexec

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread Hugo Monteiro
Osvaldo Alvarez Pozo wrote: i was looking your mail and as I have a data base i added a field to de data base I modified the script so it lokks like this. #!/bin/sh echo "update mailbox set last_log = now() WHERE username = '$USER'" | mysql postfix exec /usr/dovecot/libexec/dovecot/pop3 but not

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread Benjamin R. Haskell
On Mon, 11 Feb 2008, Hugo Monteiro wrote: Osvaldo Alvarez Pozo wrote: Hi I wonder how can I know if a mailbox is not beeing consulted. I mean I have severals mailboxs but I know some account are not used. I like to know how to determine wich mail accounts are not beeing used. Is there any way i

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread Osvaldo Alvarez Pozo
i was looking your mail and as I have a data base i added a field to de data base I modified the script so it lokks like this. #!/bin/sh echo "update mailbox set last_log = now() WHERE username = '$USER'" | mysql postfix exec /usr/dovecot/libexec/dovecot/pop3 but nothing gets written to the field

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread mouss
Osvaldo Alvarez Pozo wrote: Hi I wonder how can I know if a mailbox is not beeing consulted. I mean I have severals mailboxs but I know some account are not used. I like to know how to determine wich mail accounts are not beeing used. Is there any way in dovecot to know the las time a user loged

Re: [Dovecot] mailbox not acceced

2008-02-11 Thread Hugo Monteiro
Osvaldo Alvarez Pozo wrote: Hi I wonder how can I know if a mailbox is not beeing consulted. I mean I have severals mailboxs but I know some account are not used. I like to know how to determine wich mail accounts are not beeing used. Is there any way in dovecot to know the las time a user loged

[Dovecot] mailbox not acceced

2008-02-11 Thread Osvaldo Alvarez Pozo
Hi I wonder how can I know if a mailbox is not beeing consulted. I mean I have severals mailboxs but I know some account are not used. I like to know how to determine wich mail accounts are not beeing used. Is there any way in dovecot to know the las time a user loged in to dovecot? Thanks