Last accessed date

2001-05-02 Thread Dan Ellis

Hello, we are trying to purge accounts not used in more than 180 days.  Hwat is
the best method for tracking the last login date of a user?  The directory date
seems more the last time mail was received, which does us really no good.  Is
there a timestamp built into one of the cyrus.* files in the user. directory?

What have others done?

Thanks in advance.

Dan

-
Sent by Black Hills Fibercom Webmail!



PHP module for timsieved

2001-04-05 Thread Dan Ellis

Just to let the list know that I have finished a small libary for PHP that
allows PHP interaction with the 2.0.12 Cyrus timsieved server.  Not the
greatest, but it works good.

Surprisingly, I was unable to find any other sieve products besides websieve.  I
thought there should be a PHP solution too!

Its on freshmeat under sieve-php.  Maybe its worth while to add to the sieve
conrib/distro?

Dan

-
Sent by Black Hills Fibercom Webmail!



Re: WEBSIEVE

2001-04-04 Thread Dan Ellis

I've written a php class to handle interaction with the timsieved on 2.xx.  If
anyone wants it, email me.  I will hopfully post it to freshmeat in the next few
days... (time permitting)...

Dan 

Quoting Patrick Lin <[EMAIL PROTECTED]>:

> thanks
> ok i will see i can get an answer on the list :(((
> but your soft is so useful .
> and i run imapd 2.0.12 and timsieve seems to be very usefull but need
> interface :((
> 
> ok let me know if you find a solution to my prob
> 
> thanks
> Alain Turbide a écrit :
> > 
> > I see you're using version 2.0.12 of imad..  I have'nt had a chance to
> fully
> > test the script with the latest version of cyrus yet.. Still running
> 1.6.25
> > in production.. Lack of time in upgrading/testing  the new version
> (The old
> > is more than adequate for us at this time..).  Therefore it might be
> an
> > imcompatibility with the new version.  Maybe someone who's uing it
> with the
> > latest Cyrus might be able to enlighten you if that could be the
> problem.  I
> > fully intend on switching over to the Cyrus perl API for all Websieve
> > functions eventually..
> > 
> > Alain
> > - Original Message -
> > From: "Patrick Lin" <[EMAIL PROTECTED]>
> > To: "Alain Turbide" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 04, 2001 9:57 AM
> > Subject: Re: WEBSIEVE
> > 
> > > hi,
> > >
> > > Ok i verify i have port 2000 on the script
> > > when i push the login Button i have this on my log
> > >
> > > Apr  4 14:56:30 earth master[21642]: about to exec
> > > /usr/local/depot/cyrus-imapd-2.0.12/bin/timsieved
> > > Apr  4 14:56:30 earth service-timsieved[21642]: executed
> > > Apr  4 14:56:30 earth service-timsieved[21642]: accepted connection
> > > Apr  4 14:56:30 earth timsieved[21642]: login: localhost[127.0.0.1]
> > > patrickl PLAIN User logged in
> > >
> > > so the script connect to the sieve server
> > >
> > > patrick
> > >
> > > Alain Turbide a écrit :
> > > >
> > > > Usually that happens if the script can't connect to the sieve
> server.
> > > > Obviously it can connect to the Imap server ok since it
> authenticates
> > you.
> > > > I haven't had a chance on making the script more verbose for this
> type
> > of
> > > > error.  Make sure that your sieve server daemon is accessable and
> that
> > you
> > > > have the proper port set in the script..
> > > >
> > > > Alain
> > > > - Original Message -
> > > > From: "Patrick Lin" <[EMAIL PROTECTED]>
> > > > To: "Scott Smith" <[EMAIL PROTECTED]>
> > > > Cc: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, April 04, 2001 8:32 AM
> > > > Subject: Re: WEBSIEVE
> > > >
> > > > > Scott Smith a écrit :
> > > > > >
> > > > > > Check your web server logs.
> > > > > >
> > > > > > On Tue, 3 Apr 2001, Patrick Lin wrote:
> > > > > >
> > > > > > > hello
> > > > > > >
> > > > > > > someone have any luck run Websieve stuff :
> > > > > > > http://24.112.168.35/websieve/
> > > > > > > me i try to install Websieve 0.48
> > > > > > > and i have the login page
> > > > > > > i enter username /password , on the log i can see auth
> success on
> > > > > > > timsieve then nothing happend
> > > > > > > if i put a wrong password , on the log i can see auth
> failure but
> > > > > > > nothing happen
> > > > > > > still running
> > > > > > >
> > > > > > > any help
> > > > > > > patrick
> > > > >
> > > > > hmmm
> > > > > of course , the fisrt thing i do is go to see my Web log :))
> > > > > but no errors, nothing... strange
> > > > >
> > > > > any other help
> > > > >
> > > > > best regards
> > > > > Patrick
> > > > >
> > > > > --
> > > > >   
> > > > >__(   /
> > > > >   |  |  /
> > > > >   \   | This message is transmitted by   |  \
> > > > >\  |   100 % recycled electrons   |___\
> > > > >/  |__(
> > > > >   /__)
> > > > >
> > > > >
> > >
> > > --
> > >   
> > >__(   /
> > >   |  |  /
> > >   \   | This message is transmitted by   |  \
> > >\  |   100 % recycled electrons   |___\
> > >/  |__(
> > >   /__)
> > >
> > >
> 
> -- 
>   
>__(   /
>   |  |  /
>   \   | This message is transmitted by   |  \
>\  |   100 % recycled electrons   |___\
>/  |__(
>   /__)
> 


-
Sent by Black Hills Fibercom Webmail!



Re: creating mailbox from php

2001-03-19 Thread Dan Ellis

This has problems when trying to delete mailboxes via php.

You have to set the acl on the mailbox before the admin has rights to delete
it.  Php does not have this functionality in its current imap functions.

It would be nice to just call imap_deletemailbox() but cyrus admins do not
automatically have permission to do it. 

Cyradm-php has a great imap toolkit for php built into a lib file.  I use it. 
It works great.

Dan

Quoting "Justin R. Miller" <[EMAIL PROTECTED]>:

> Hey,
> 
> This seems to work fine if you call it thusly:
> 
>   imap_open("{localhost:143}", "cyrus", "password");
> 
> I'm working on a set of Cyrus tools and have had success with this.
> 
> -Justin
 


-
Sent by Black Hills Fibercom Webmail!



Setup questions...

2001-03-06 Thread Dan Ellis

Hello, I am new to Cyrus, so please bare with...

I'm trying to install cyrus using ldap for authentication. We require no
encryption of passwords or of the imap sessions.
Do we still need to use cyrus-sasl?
What is th best method to auth?  Pam or pwcheck?
I am assuming that if I use pwcheck, the underlying database is irrelevent as
pwcheck abstracts that to cyrus.  (Meaning it is irrelevent whther we use mysql
or ldap as long as the pwcheck script/program handles the auth with mysql/ldap),
cprrect?  Pwcheck must simply return and OK or an error message, corect?  Also,
how does pwcheck relate (is it a part of sasl or of cyrus)?
I have read almost everything that I can find, but being so new, the docs are a
little confusing and sparse at this point of my knowledge level.

Thanks in advance for putting up with such trivial questions (to you, but major
to me :)) and helping me out.

Dan

-
Sent by Black Hills Fibercom Webmail!