Re: Exec'ing a script from Cyrus when imapd has a client
Russell Jackson wrote: > Xavier Bestel wrote: >> Hi, >> >> I have a small install with cyrus-imapd 2.3.14, which reads some of its >> mails with fetchmail. To limit the delay in mail delivery, fetchmail >> awakes each minute to get mails. >> What I would like is let fetchmail do that only when there's a client >> actually reading its mails, i.e. an MUA actually connected to imapd. >> >> So, my question: how to hook a script each time a client >> connects/disconnects from imapd ? >> > > Check /var/imap/proc for files. If any are present, then a client is > connected. Write a > polling script to run out of cron that checks for this and runs fetchmail if > appropriate. > I'll let other's comment on the soundness of this. > Opps. Didn't see that second sub-thread that said pretty much the same exact thing already. -- Russell A. Jackson Network Analyst California State University, Bakersfield 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
Re: Exec'ing a script from Cyrus when imapd has a client
Xavier Bestel wrote: > Hi, > > I have a small install with cyrus-imapd 2.3.14, which reads some of its > mails with fetchmail. To limit the delay in mail delivery, fetchmail > awakes each minute to get mails. > What I would like is let fetchmail do that only when there's a client > actually reading its mails, i.e. an MUA actually connected to imapd. > > So, my question: how to hook a script each time a client > connects/disconnects from imapd ? > Check /var/imap/proc for files. If any are present, then a client is connected. Write a polling script to run out of cron that checks for this and runs fetchmail if appropriate. I'll let other's comment on the soundness of this. Semi-pseudo code. #/bin/sh if [ $(find /var/imap/proc -type f | wc -l) -gt 0 ]; then fetchmail fi For bonus points, you could parse the proc files and only run fetch mail for the users actually connected. find /var/imap/proc -type f | \ xargs awk 'BEGIN{FS="\t"}{if (length($2)) print $2}' | \ sort -u | \ xargs -- Russell A. Jackson Network Analyst California State University, Bakersfield signature.asc Description: OpenPGP digital signature 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
Re: Web-cyradm and Zimbra maybe?
Leon Kolchinsky wrote: > Hello All, > > I'm using web-cyradm (mysql frontend for virt. domains+cyrus+postfix > integration) for years and very happy with it. > Now we need some implementation for shared calendars (let's say calendar > solution for all our users). > > What would you recommend? > Web-cyradm and Zimbra integration? Anyone have any experience with it? How > would you handle authentication issue? > > Any other suggestions? > Bedework[1] seems interesting. [1] http://www.bedework.org/ -- Russell A. Jackson <[EMAIL PROTECTED]> Network Analyst California State University, Bakersfield Nobody can be as agreeable as an uninvited guest. smime.p7s Description: S/MIME Cryptographic Signature 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
Re: 2.3.9_1 -- what's new?
Aleksandr Stankevic wrote: > David Newman wrote: >> The FreeBSD ports collection now includes cyrus-imap 2.3.9_1. >> >> I've looked, but couldn't find, anything describing what's changed in >> this release from 2.3.9. >> >> Thanks in advance for any pointers. >> >> dn >> > > Hi, > > Nothing changed in FreeBSD ports in cyrus-imapd itself between > cyrus-imapd-2.3.9 and cyrus-imapd-2.3.9_1. > The only thing which changed is the version of autoconf ( from 2.59 to > 2.61 ) which is used to build cyrus-imapd. > More generally, the number after the underscore indicates the port revision. When the port revision changes, that means that the port was modified in such a way that the resulting package is different enough to warrant a rebuilding of the port; however, the port is still building the same version of the software. http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-naming.html#MAKEFILE-NAMING-REVEPOCH -- Russell A. Jackson <[EMAIL PROTECTED]> Network Analyst California State University, Bakersfield Food for thought is no substitute for the real thing. -- Walt Kelly, "Putluck Pogo" smime.p7s Description: S/MIME Cryptographic Signature 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
Re: Trying to implement Bulletin Boards
Andre Plante wrote: > Hi All, > I am looking at getting the bulletin boards feature of cyrus working. > So far, I have been able to create the boards in the admin console, and > they are > as such: > > listaclmailbox bb* > bb.aptest: > plante lrswipcda > anyone lrs > bb.aptest.events: > plante lrswipcda > anyone lrs > > I have purposefully given myself full permissions, and left the anyone > as the > default. > > In my imapd.conf (as well as imapd-local.conf), I have the follwoing: > postuser: bb > sharedprefix: bb > > I am not sure if both lines are required, but both seemed relevant. > > I am now trying to modify the sendmail.mc, and run the m4 command to > allow the > delivery to the mailbox. > I have searched the web but have not found anything conclusive as to > what I need > to add to this file. So far, I have tried adding: > MAILER(cyrus) > define(`confLOCAL_MAILER',`cyrus') > dnl LOCAL_RULE_0 > dnl Rbb + $+ < @ $=w . > $#cyrusbb $: $1 > > but that did not help. > > Whenever I try to send to bb+aptest, +aptest, aptest, or +aptest.events > I get > messages back saying that the mailbox does not exist. > > Can anyone provide a little guidance?? sharedprefix refers to shared user mailboxes. Bulletin boards are usually not user mailboxes and as such are created at the root of the IMAP namespace. The post user is mostly symbolic (but perhaps used by the MTA for authorization?) and can be left undefined so that addressing would be just with the plus notation. Recreate your bulletin board folders as root folders: > cm aptest > cm aptest.events If you leave post user as bb, then you would address them as: [EMAIL PROTECTED] [EMAIL PROTECTED] If you leave postuser undefined, then you would addres them as: [EMAIL PROTECTED] [EMAIL PROTECTED] The sharedprefix should be left as users. Hope this helps. -- Russell A. Jackson <[EMAIL PROTECTED]> Network Analyst California State University, Bakersfield smime.p7s Description: S/MIME Cryptographic Signature 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