Re: Detecting last login IMAP and expire old messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In my case authentication is with  saslauthd with ldap. ( OpenLDAP )

And this LDAP is used for another systems.

User can use LDAP for UNIX authentication for example and not
use LDAP dor imap.

Aby other idea ?

-----------------------------------------------------------

Cyrus IMAP has the annotation  /vendor/cmu/cyrus-imapd/lastpop
with the last pop login hour.

But i don't see:     /vendor/cmu/cyrus-imapd/lastimap

-----------------------------------------------------------------------------

Exist a way to execute a script an get some parameters $login, $hour
and etc .. after
a succesful connection in cyrus imap or saslauthd  ?


Regards
Zinato












On Mon, Jan 10, 2011 at 12:00 PM,  <steffo76@xxxxxx> wrote:
>
> -------- Original-Nachricht --------
>> Datum: Mon, 10 Jan 2011 08:37:14 -0500
>> Von: Adam Tauno Williams <awilliam@xxxxxxxxxxxxx>
>> An: info-cyrus@xxxxxxxxxxxxxxxxxxxx
>> Betreff: Re: Detecting last login IMAP and expire old messages
>
>> On Mon, 2011-01-10 at 09:13 -0400, Patrick Boutilier wrote:
>> > On 01/10/2011 08:03 AM, Adam Tauno Williams wrote:
>> > > On Sat, 2011-01-08 at 23:35 -0200, Lucas Zinato Carraro wrote:
>> > >> Is there a way to get messages from a user account automatic expire
>> if
>> > >> account is not in used for 6 months ?
>> > > Yes, set the "expire" annotation on the folder.  For example, we set
>> > > this to 365 on the user's sent-mail folder and to 14 for the users
>> SPAM
>> > > folder.
>> > But he only wants to expire messages if the user has not logged in in
>> > the last 6 months.
>>
>> Ah, my bad.
>>
>> I suppose then it is really an authentication question and not a mailbox
>> question.  Hrm.... it would be nice to have a reliable and standard way
>> to determine when the last time user xyz was authenticated; but I'm not
>> aware of any such thing.
>
> If pam is being used (I don't have the original mail here) you could use pam_lastlog with the 'silent' option so it just updates /var/log/lastlog each time the user logs in via imap or pop. Naturally if you allow other forms of login like ssh etc. lastlog might get updated each time someone logs in (depending on the other pam configurations). If you then say lastlog -b 180 it will show you all the usernames which haven't logged in for at least 180 days.
>
>
> --
> Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!
> Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/



[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux