Re: If it possible to manipulate imap accounts from the client side with certain account
Dear all, I have an perl script to archive imap mailboxes from the client side. The script uses Perl::LDAP modules from cpan. It is succeed to archive all my old mails to new mailboxes, such as mail_2007 and mail_2008 and so on. The question now is, i don't know other peoples' password and well even if i know the passwords, it is much more frustrated to change an account and password for every account. So, i wonder if it is possible that one mail account can access all other mail accounts just as the account owner. Then, this way, i just need to run the script once and do archive on all account in the same domain. Hi, You may want to check the proxyservers option in imapd.conf. Looks like what you are looking for. Regards, Simon 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
Repeating emails
Title: myEMAILsignature Hello all, Not sure if this is the place to ask this, just trying to track it down. I'm running Cyrus 2.2.12 with Postfix 2.2.2 for only 45 users. Every once in a while, but much more recently, users are receiving emails sent a few days ago - again. The recent repeat emails were all from users on our network sent to all users on our network. The headers appear like regular, legit emails. Any thoughts as to what could be going on or where to begin looking. Any input is greatly appreciated. Thanks. -- Thomas E. Plancon CAD/IS Manager B K A Architects, Inc. 142 Crescent Street Brockton, MA 02302 tel: 508 . 583 . 5603 ext 313 fax: 508 . 584 . 2914 www.bkaarchitects.com 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: Repeating emails
--On Tuesday, November 3, 2009 9:44 AM -0500 Tom Plancon tplan...@bkaarchs.com wrote: Hello all, Not sure if this is the place to ask this, just trying to track it down. I'm running Cyrus 2.2.12 with Postfix 2.2.2 for only 45 users. Every once in a while, but much more recently, users are receiving emails sent a few days ago - again. The recent repeat emails were all from users on our network sent to all users on our network. The headers appear like regular, legit emails. Any thoughts as to what could be going on or where to begin looking. Any input is greatly appreciated. Thanks. Find out whether the message was actually sent twice by the sender. See system log ; diff the Received headers and Message-ID. Most likely it was sent twice, indicating a sender client problem. If sent only once, find out whether the message is really repeated on the cyrus server. Grep the Message-ID. If it's there only once, it's some kind of index problem on cyrus or in the client. You could reconstruct. You could have the recipient read the mailbox with a different client and see whether the duplication still appears. Joseph Brennan Columbia University Information Technology 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: Repeating emails
On 11/03/2009 08:44 AM, Tom Plancon wrote: Hello all, Not sure if this is the place to ask this, just trying to track it down. I'm running Cyrus 2.2.12 with Postfix 2.2.2 for only 45 users. Every once in a while, but much more recently, users are receiving emails sent a few days ago - again. The recent repeat emails were all from users on our network sent to all users on our network. The headers appear like regular, legit emails. Any thoughts as to what could be going on or where to begin looking. Any input is greatly appreciated. Thanks. We saw a situation like this some years back, which was caused by misconfiguration between postfix and cyrus. The specific problem we saw was that when a local user sent a message to a group of local users, and one member of the group (mailing list, alias expansion or whatever) generated a 4XX (temp fail) error on delivery, then we would see the whole list get the message again when the cause of the temp fail was cleared up (such as quota getting fixed). I don't remember the exact fix, but it involved switching from mailbox_transport to local_transport in postfix, and switching from alias_maps to virtual_alias_maps as well. This causes the redelivery attempts to occur post-alias expansion rather than pre-alias expansion. I know this is off topic for the cyrus-imapd list, but thought others may find it helpful. Cheers, -nic -- Nic Bernstein n...@onlight.com Onlight llc. www.onlight.com 219 N. Milwaukee St., Suite 2av. 414.272.4477 Milwaukee, Wisconsin 53202 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
avelsieve problem switching mail servers
Hi there, I tried posting this on the squirrelmail plugin mailing list, but didn't get a response, so thought maybe someone on this list might be able to give me a hint, since I know a lot of you have sieve set up with cyrus and squirrelmail. Feel free to tell me this is the wrong list, and I will try elsewhere, but if someone can help, I would be very grateful. I recently moved my mail server to a new server, and have managed to get everything working except for sieve access through squirrelmail. I hope this mail isn't too confusing, but wanted to lay out a few different possibilities for what might be going on. Initially, when I tried to go to filters after logging into squirrelmail, squirrelmail would hang, and eventually time out with no error messages (just a reset by peer, I think). I tried going into imapd.conf and turning off tls for sieve to see if there was an authentication problem: sieve_tls_cert_file: disable When I do this, then I get an error message when I click on filters: Warning: stream_socket_enable_crypto() [function.stream-socket-enable-crypto]: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number in /usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php on line 514 ERROR: Could not log on to timsieved daemon on your IMAP server localhost:2000. Error Encountered: 255 Please contact your administrator. I looked at the managesieve.lib.php script, and I noticed that it uses php4, but I am using php5. But, it seems kind of strange that it would require php4, since this is the stable package for debian with default settings, and I didn't have any dependency issues installing, so I'm not sure this is the problem. squirrelmail2:1.4.15-4+lenny2 avelsieve 1.9.7-6+lenny1 TLS/SSL works for eveything else (imap,imaps,smtp,and apache), so I'm a little bit suspicious for that being the problem. Something I did notice was that in the previous installation, we seemed to be using something called websieve, although we also had the avelsieve plugin installed. I copied the websieve directory, but I haven't found any documentation about how websieve is different from avelsieve or whether you can use both, or how squirrelmail/avelsieve/websieve interact. I think I need to get rid of websieve, and just use avelsieve, but I'm not sure about this. Would I run into problems if I just got rid of the websieve directory? How is avelsieve suppose to interact with squirrelmail? thanks for any hints, maria 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
You know, I don't know if I agree with all the objections over this person's request. I actually have a similar setup where Fetchmail is used to retrieve messages from a remote mailbox for injection into a Cyrus setup, primarily because of quota requirements on the far end. Yes, modern MUA's offer the ability to store messages locally, but what if you have that MUA installed in several computers in different locations? Moving to 'local folders' in that case isn't helpful. And yes, you could setup two accounts - one on the main server and one to your cyrus setup - and move messages manually, but then why not fetchmail to the cyrus setup directly too? - Original Message - From: Greg A. Woods woods-cy...@weird.com To: Cyrus User's Mailing List info-cyrus@lists.andrew.cmu.edu Sent: Friday, October 23, 2009 2:57 PM Subject: Re: Exec'ing a script from Cyrus when imapd has a client At Thu, 22 Oct 2009 18:43:41 -0700 (PDT), David Lang david.l...@digitalinsight.com wrote: Subject: Re: Exec'ing a script from Cyrus when imapd has a client there can be cases where you are providing mail services for several people, or have multiple machines you use yourself where having an IMAP server is worthwhile. Neither of those things make any real sense whatsoever. They certainly don't define any clear requirements that make sense in this context. Every modern and useful IMAP-capable MUA can collect e-mail from any combination of many IMAP servers anywhere and everywhere all at once. If fetchmail can fetch the mail from an IMAP server, then so can any MUA. Just get rid of all the unnecessary complexity in the middle and just use the MUA for what it's designed to be used for! now, it's unusual to use something like this without having a full MTA, but it's not unheard of. It's not unusual for people to create all kinds of crazy complicated setups that have no real purpose, in every domain in life. I'm sure I make my own life more complicated than it needs to be in some ways. However things do not _need_ to be made more complicated than necessary, Here the OP's question provides a perfect clue showing that something is far more complicated than it needs to be because we see that it will even have to get more complex (and even less robust) before it begins to work the way it would actually work without any of this unnecessary complexity in the middle in the first place. -- Greg A. Woods +1 416 218-0098VE3TCP RoboHack wo...@robohack.ca Planix, Inc. wo...@planix.com Secrets of the Weird wo...@weird.com 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 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: If it possible to manipulate imap accounts from the client side with certain account
Simon Matter wrote: Hi, You may want to check the proxyservers option in imapd.conf. Looks like what you are looking for. Thanks very much. For proxyservers, i have done some test on it and final didn't get any idea on howto use it. It seems that no documents about proxyservers. If you have experience on this, please help! I don't remember exactly how I have used it. It was to copy mailboxes from cyrus-imapd to another system using imapsync. It was something like - create a proxy user, in our case called proxy. I don't remember whether it needed a mailbox or maybe we only created it in the auth db. - add proxyservers: proxy to imapd.conf Now, with an IMAP client, you can authenticate as user proxy with proxy's password but then login as the target user. That means you don't need the target users password. With imapsync that was done using imapsync --authuser1 proxy --user1 buddy ... I hope someone on the list can tell you how to do this in perl. Regards, Simon 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: avelsieve problem switching mail servers
Hi there, I tried posting this on the squirrelmail plugin mailing list, but didn't get a response, so thought maybe someone on this list might be able to give me a hint, since I know a lot of you have sieve set up with cyrus and squirrelmail. Feel free to tell me this is the wrong list, and I will try elsewhere, but if someone can help, I would be very grateful. I recently moved my mail server to a new server, and have managed to get everything working except for sieve access through squirrelmail. I hope this mail isn't too confusing, but wanted to lay out a few different possibilities for what might be going on. Initially, when I tried to go to filters after logging into squirrelmail, squirrelmail would hang, and eventually time out with no error messages (just a reset by peer, I think). I tried going into imapd.conf and turning off tls for sieve to see if there was an authentication problem: sieve_tls_cert_file: disable When I do this, then I get an error message when I click on filters: Warning: stream_socket_enable_crypto() [function.stream-socket-enable-crypto]: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number in /usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php on line 514 ERROR: Could not log on to timsieved daemon on your IMAP server localhost:2000. Error Encountered: 255 Please contact your administrator. I looked at the managesieve.lib.php script, and I noticed that it uses php4, but I am using php5. But, it seems kind of strange that it would require php4, since this is the stable package for debian with default settings, and I didn't have any dependency issues installing, so I'm not sure this is the problem. squirrelmail2:1.4.15-4+lenny2 avelsieve 1.9.7-6+lenny1 TLS/SSL works for eveything else (imap,imaps,smtp,and apache), so I'm a little bit suspicious for that being the problem. Something I did notice was that in the previous installation, we seemed to be using something called websieve, although we also had the avelsieve plugin installed. I copied the websieve directory, but I haven't found any documentation about how websieve is different from avelsieve or whether you can use both, or how squirrelmail/avelsieve/websieve interact. I think I need to get rid of websieve, and just use avelsieve, but I'm not sure about this. Would I run into problems if I just got rid of the websieve directory? How is avelsieve suppose to interact with squirrelmail? Hi, From you previous mail I got the impression that you have used avelsieve in the past. Now, did you use avelsieve or websieve (or both). At least I think using both at the same time doesn't make much sense. Avelsieve uses comments in your sieve scripts to store it's metadata and other tools won't understand them. On one host running RHEL4 (which means PHP 4) I'm running avelsieve-1.9.8 and in it's config file I see this: /** * @var boolean Disable STARTTLS for ManageSieve. You can set this to true, * if you do not wish to use encryption via TLS mechanisms (i.e. the server * is not configured properly, or this is a local connection and TLS is not * needed. * Note that STARTTLS is supported only in PHP5+. In PHP4 this option will * have no effect and STARTTLS will be disabled anyway. */ global $avelsieve_disabletls; $avelsieve_disabletls = false; I was using avelsieve 1.9.7 before and a patch was needed to get the same behaviour. The patch is attached, don't remember where I got it, I think from avelsieve CVS. That said, I have used it to run sieve on the local host with STARTTLS. If you want to use STARTTLS then I don't know how to make it work. Regards, Simon avelsieve-1.9.7-php5_disabletls.patch.gz Description: GNU Zip compressed data 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