Re: Captive mailbox in Cyrus IMAP?

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

 



Nik Conwell wrote:
Archiving accounts after people graduate and leave the university. We send people a bunch of e-mails letting them know they're being archived but often they're ignored. We still do this, but then before archiving we put them into a captive state for a couple of weeks. Having only 1 e-mail in your inbox makes it painfully obvious that things are indeed going away. At that point people can request an extension, register for

Do you really want new email to be deliverable while the account is in this state? I'd rather return to sender than accept and silently delete after a few weeks.

If you can live with bouncing new mail, then you can give the user a read-only mailbox with something like:

1) In cyradm, setaclmailbox user.joeschmo joeschmo lrsp
2) mv `mbpath user.joeschmo`/*. /var/imap/held-users/joeschmo
3) Send them a new message, making sure to use a UID higher than anything already there (otherwise the message might be hidden from clients in disconnected mode). Probably just email it.
4) reconstruct user.joeschmo
5) Put something into aliases or accessdb or virtusertable or LDAP that has the effect of bouncing incoming mail with an appropriate message

To undo,

1) rm `mbpath user.joeschmo`/*. (your message should be the only one)
2) mv /var/imap/held-users/joeschmo `mbpath user.joeschmo`
3) reconstruct user.joeschmo
4) setaclmailbox user.joeschmo joeschmo lrswipkxtecda (or whatever it was originally, if you're on a pre-2.3 version)
5) Remove the alias/accessdb/virtusertable bounce
--
Rich Graves <rgraves@xxxxxxxxxxxx>
Sr UNIX and Security Administrator
Ofc 507-646-7079 Cell 952-292-6529
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[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