From riccardo.magliocchetti at gmail.com Tue Aug 26 05:40:59 2008 From: riccardo.magliocchetti at gmail.com (Riccardo Magliocchetti) Date: Tue, 26 Aug 2008 11:40:59 +0200 Subject: [imapproxy-info] imapproxy usage scenario Message-ID: <48B3CFAB.7090301@gmail.com> hi, i'm thinking on deploy imapproxy to help me deploying imap in the following scenario: - 5 clients using the same mail account, actually using pop3 - a mail server in the internet that don't want to let that "much" clients access it directly My plan is to move the clients to imap with thunderbird as client and put imapproxy in the gateway in order to reduce the load on the server. The hope is to have less connections so less imap server processes and less bandwidth usage. So i'm asking if imapproxy is suitable for that usage, if i am just stupid or whatever :) thanks in advance, Riccardo From jani+imapproxy-info at ifi.uio.no Tue Aug 26 05:58:24 2008 From: jani+imapproxy-info at ifi.uio.no (Jan Ingvoldstad) Date: Tue, 26 Aug 2008 11:58:24 +0200 Subject: [imapproxy-info] imapproxy usage scenario In-Reply-To: <48B3CFAB.7090301@gmail.com> (Riccardo Magliocchetti's message of "Tue\, 26 Aug 2008 11\:40\:59 +0200") References: <48B3CFAB.7090301@gmail.com> Message-ID: On Tue, 26 Aug 2008 11:40:59 +0200, Riccardo Magliocchetti said: > hi, > i'm thinking on deploy imapproxy to help me deploying imap in the following > scenario: > - 5 clients using the same mail account, actually using pop3 > - a mail server in the internet that don't want to let that "much" clients > access it directly > My plan is to move the clients to imap with thunderbird as client and put > imapproxy in the gateway in order to reduce the load on the server. The hope > is to have less connections so less imap server processes and less bandwidth > usage. > So i'm asking if imapproxy is suitable for that usage, if i am just stupid > or whatever :) Imapproxy is just the right thing for this scenario. Where I work, we have webmail servers with their own IMAP servers. The webmail servers must login for every operation performed by a webmail user, which means that there's a log of connections and logins. A few years back, I introduced imapproxy to the mix, and the number of logins were reduced to about 1:4 of the original (the real ratio varies between 1:3.5 and 1:4.8). The IMAP servers are none the wiser; they just see one login per user. -- In the beginning was the Bit, and the Bit was Zero. Then Someone said, Let there be One, and there was One. And Someone blessed them, and Someone said unto them, Be fruitful, and multiply, and replenish the Word and subdue it: and have dominion over every thing that is. From peter.schober at univie.ac.at Tue Aug 26 06:59:25 2008 From: peter.schober at univie.ac.at (Peter Schober) Date: Tue, 26 Aug 2008 12:59:25 +0200 Subject: [imapproxy-info] imapproxy usage scenario In-Reply-To: <48B3CFAB.7090301@gmail.com> References: <48B3CFAB.7090301@gmail.com> <48B3CFAB.7090301@gmail.com> Message-ID: <20080826105925.GA19130@wssp.cc.univie.ac.at> * Riccardo Magliocchetti [2008-08-26 11:55]: > My plan is to move the clients to imap with thunderbird as client > and put imapproxy in the gateway in order to reduce the load on the > server. The hope is to have less connections so less imap server > processes and less bandwidth usage. When using Thunderbird you won't gain anything with Imapproxy (and even might lose a few features, e.g. authentication options). * Jan Ingvoldstad [2008-08-26 12:18]: > Imapproxy is just the right thing for this scenario. No, Imapproxy is for webmail software that's unable to maintain persistent connections[1] to the IMAP daemon, resulting in numerous LOGIN/LOGOUT events at the IMAP daemon (one LOGIN/LOGOUT pair for every single click in the webmail interface). @Riccardo: Also note that if the load on the mail server is already a concern with only 5 POP users you already have problems. And switching to IMAP (which is always preferrable, IMHO) will also not help here, unless people leave their mail on the server when POPing -- which seems to be the case here since you mentioned all 5 were accessing the same INBOX (which would be a lot cleaner with e.g. shared IMAP folders, but your IMAP daemon needs to support this, see RFC 2086/4314). I'd go for IMAP with Thunderbird (leaving out Imapproxy) and see how things turn out. Cheers, -peter [1] note that there are a few that make use of persistent IMAP connections, e.g. Ryo Chijiiwa's Ilohamail, David Carter's Prayer or Fredrik Tolf's dolda). -- peter.schober at univie.ac.at - vienna university computer center Universitaetsstrasse 7, A-1010 Wien, Austria/Europe Tel. +43-1-4277-14155, Fax. +43-1-4277-9140 From riccardo.magliocchetti at gmail.com Tue Aug 26 09:13:51 2008 From: riccardo.magliocchetti at gmail.com (Riccardo Magliocchetti) Date: Tue, 26 Aug 2008 15:13:51 +0200 Subject: [imapproxy-info] imapproxy usage scenario In-Reply-To: <20080826105925.GA19130@wssp.cc.univie.ac.at> References: <48B3CFAB.7090301@gmail.com> <48B3CFAB.7090301@gmail.com> <20080826105925.GA19130@wssp.cc.univie.ac.at> Message-ID: <48B4018F.7090006@gmail.com> Hi Peter, Peter Schober wrote: > * Riccardo Magliocchetti [2008-08-26 11:55]: >> My plan is to move the clients to imap with thunderbird as client >> and put imapproxy in the gateway in order to reduce the load on the >> server. The hope is to have less connections so less imap server >> processes and less bandwidth usage. > > When using Thunderbird you won't gain anything with Imapproxy (and > even might lose a few features, e.g. authentication options). Thank you for the answer, you have confirmed my doubt that the gain is only for webmails. > @Riccardo: Also note that if the load on the mail server is already a > concern with only 5 POP users you already have problems. And switching > to IMAP (which is always preferrable, IMHO) will also not help here, > unless people leave their mail on the server when POPing -- which > seems to be the case here since you mentioned all 5 were accessing the > same INBOX (which would be a lot cleaner with e.g. shared IMAP > folders, but your IMAP daemon needs to support this, see RFC > 2086/4314). Unfortunately the server is not under my control and i've been asked to use a local imap and let the clients connect to it. I've looked at proxy solutions (this, nginx) but as you pointed out those won't help. I'm looking to use dovecot as proxy but i think it won't buy me anything. I think the server admin want me to download the mail periodically and serve them with the local imap server which sucks since i don't want to duplicate the mails. > I'd go for IMAP with Thunderbird (leaving out Imapproxy) and see how > things turn out. That was my initial plan to go straight with thunderbird. I think the problem is the common belief that imap will use a lot of bandwidth and use it all the time. Can you assure me this is wrong? This looks plausible only if people is poking with their client all day long or checking automatically new mails every few seconds. thanks, Riccardo From David.Brangaitis at marist.edu Tue Aug 26 11:01:33 2008 From: David.Brangaitis at marist.edu (David Brangaitis) Date: Tue, 26 Aug 2008 11:01:33 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) Message-ID: Hello, Am I trying to diagnose a Horde/IMP issue where the 'purge deleted' function does not work consistently. I've set "enable_admin_commands yes", connected to my locally running imapproxy, authenticated, and issued the command "P_TRACE username" -- which comes back with an invalid command. Am I missing something here? Thank you, David Marist College Information Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/imapproxy-info/attachments/20080826/e077eccc/attachment.html From dave64 at andrew.cmu.edu Tue Aug 26 11:08:53 2008 From: dave64 at andrew.cmu.edu (Dave McMurtrie) Date: Tue, 26 Aug 2008 11:08:53 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) In-Reply-To: References: Message-ID: <48B41C85.2040204@andrew.cmu.edu> David Brangaitis wrote: > Hello, > Am I trying to diagnose a Horde/IMP issue where the 'purge deleted' > function does not work consistently. > > I've set "enable_admin_commands yes", connected to my locally running > imapproxy, authenticated, and issued the command > "P_TRACE username" -- which comes back with an invalid command. Am I > missing something here? Hi David, You need to specify a tag, as well, since it's parsed just like any other imap command. C64 P_TRACE username Should work fine for you. Pay attention to how your client is sending the username. imapproxy does not strip quotes from the username if that's how the client sends it, so "username" and username are not the same to imapproxy even though they are the same to your imap server. Thanks, Dave From David.Brangaitis at marist.edu Tue Aug 26 11:20:00 2008 From: David.Brangaitis at marist.edu (David Brangaitis) Date: Tue, 26 Aug 2008 11:20:00 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) In-Reply-To: <48B41C85.2040204@andrew.cmu.edu> Message-ID: Dave, Thanks for the quick reply. I forgot to include the tag in my example -- it returns the unknown command regardless... here is the output: Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4Rev1 QUOTA UNSELECT] z/VM IMAP server Level 526 Martha ready 1 login xxxx xxxx 1 OK User logged in 2 P_TRACE xxxx 2 BAD invalid IMAP command P_TRACE -David .. Dave McMurtrie Sent by: imapproxy-info-bounces at lists.andrew.cmu.edu 08/26/2008 11:08 AM Please respond to dave64 at andrew.cmu.edu To imapproxy-info at lists.andrew.cmu.edu cc Subject Re: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) David Brangaitis wrote: > Hello, > Am I trying to diagnose a Horde/IMP issue where the 'purge deleted' > function does not work consistently. > > I've set "enable_admin_commands yes", connected to my locally running > imapproxy, authenticated, and issued the command > "P_TRACE username" -- which comes back with an invalid command. Am I > missing something here? Hi David, You need to specify a tag, as well, since it's parsed just like any other imap command. C64 P_TRACE username Should work fine for you. Pay attention to how your client is sending the username. imapproxy does not strip quotes from the username if that's how the client sends it, so "username" and username are not the same to imapproxy even though they are the same to your imap server. Thanks, Dave _______________________________________________ imapproxy-info mailing list imapproxy-info at lists.andrew.cmu.edu https://lists.andrew.cmu.edu/mailman/listinfo/imapproxy-info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/imapproxy-info/attachments/20080826/89288eab/attachment-0001.html From selsky at columbia.edu Tue Aug 26 11:20:31 2008 From: selsky at columbia.edu (Matt Selsky) Date: Tue, 26 Aug 2008 11:20:31 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) In-Reply-To: <48B41C85.2040204@andrew.cmu.edu> References: <48B41C85.2040204@andrew.cmu.edu> Message-ID: <20080826152031.GA8994@columbia.edu> On Tue, Aug 26, 2008 at 11:08:53AM -0400, Dave McMurtrie wrote: > Should work fine for you. Pay attention to how your client is sending > the username. imapproxy does not strip quotes from the username if > that's how the client sends it, so "username" and username are not the > same to imapproxy even though they are the same to your imap server. Should imapproxy canonicalize the username? Is there a good reason not to? -- Matt From dave64 at andrew.cmu.edu Tue Aug 26 11:39:52 2008 From: dave64 at andrew.cmu.edu (Dave McMurtrie) Date: Tue, 26 Aug 2008 11:39:52 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) In-Reply-To: References: Message-ID: <48B423C8.4090402@andrew.cmu.edu> David Brangaitis wrote: > Dave, > Thanks for the quick reply. I forgot to include the tag in my example -- > it returns the unknown command regardless... here is the output: > > Connected to localhost. > Escape character is '^]'. > * OK [CAPABILITY IMAP4Rev1 QUOTA UNSELECT] z/VM IMAP server Level 526 > Martha ready > 1 login xxxx xxxx > 1 OK User logged in > 2 P_TRACE xxxx > 2 BAD invalid IMAP command P_TRACE Do any of the imapproxy-specific commands work for you? Try P_DUMPICC or P_VERSION. If they do not work, did you restart imapproxy after enabling the admin commands? Are you sure that you're telnetting to the imapproxy port and not the imap port to issue the command? Thanks, Dave From dave64 at andrew.cmu.edu Tue Aug 26 11:46:14 2008 From: dave64 at andrew.cmu.edu (Dave McMurtrie) Date: Tue, 26 Aug 2008 11:46:14 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) In-Reply-To: References: Message-ID: <48B42546.80206@andrew.cmu.edu> David Brangaitis wrote: > Dave, > Thanks for the quick reply. I forgot to include the tag in my example -- > it returns the unknown command regardless... here is the output: > > Connected to localhost. > Escape character is '^]'. > * OK [CAPABILITY IMAP4Rev1 QUOTA UNSELECT] z/VM IMAP server Level 526 > Martha ready > 1 login xxxx xxxx > 1 OK User logged in Ahh -- I just realized that this is probably your issue. Try to issue the commands when not in authenticated state. Once you authenticate, imapproxy only looks for LOGOUT commands. Every other command is passed straight to your imap server. Let me know if this works for you. Thanks, Dave From dave64 at andrew.cmu.edu Tue Aug 26 11:47:49 2008 From: dave64 at andrew.cmu.edu (Dave McMurtrie) Date: Tue, 26 Aug 2008 11:47:49 -0400 Subject: [imapproxy-info] [Fwd: Re: trouble enabling P_TRACE for a user (imapproxy 1.2.6)] Message-ID: <48B425A5.4070705@andrew.cmu.edu> Sorry, I forgot to send this reply to the list. -------- Original Message -------- Subject: Re: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) Date: Tue, 26 Aug 2008 11:41:17 -0400 From: Dave McMurtrie Reply-To: dave64 at andrew.cmu.edu To: Matt Selsky References: <48B41C85.2040204 at andrew.cmu.edu> <20080826152031.GA8994 at columbia.edu> Matt Selsky wrote: > On Tue, Aug 26, 2008 at 11:08:53AM -0400, Dave McMurtrie wrote: > >> Should work fine for you. Pay attention to how your client is sending >> the username. imapproxy does not strip quotes from the username if >> that's how the client sends it, so "username" and username are not the >> same to imapproxy even though they are the same to your imap server. > > Should imapproxy canonicalize the username? Probably. > Is there a good reason not to? I think the only reason I never did was either due to laziness or lack of awareness. If you send a patch, I'd be happy to apply it. If you don't, I could probably whip something up in short order. Thanks! Dave From David.Brangaitis at marist.edu Tue Aug 26 11:55:30 2008 From: David.Brangaitis at marist.edu (David Brangaitis) Date: Tue, 26 Aug 2008 11:55:30 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) In-Reply-To: <48B423C8.4090402@andrew.cmu.edu> Message-ID: Dave, It seems that none of the imapproxy commands work. Each returns as an invalid command. I am sure I am connecting to the imapproxy instance--also just confirmed that I am calling the correct config file with "enable_admin_commands yes", and restarted again. Is there anything I could try related to the configuration option? -David Dave McMurtrie Sent by: imapproxy-info-bounces at lists.andrew.cmu.edu 08/26/2008 11:39 AM Please respond to dave64 at andrew.cmu.edu To imapproxy-info at lists.andrew.cmu.edu cc Subject Re: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) David Brangaitis wrote: > Dave, > Thanks for the quick reply. I forgot to include the tag in my example -- > it returns the unknown command regardless... here is the output: > > Connected to localhost. > Escape character is '^]'. > * OK [CAPABILITY IMAP4Rev1 QUOTA UNSELECT] z/VM IMAP server Level 526 > Martha ready > 1 login xxxx xxxx > 1 OK User logged in > 2 P_TRACE xxxx > 2 BAD invalid IMAP command P_TRACE Do any of the imapproxy-specific commands work for you? Try P_DUMPICC or P_VERSION. If they do not work, did you restart imapproxy after enabling the admin commands? Are you sure that you're telnetting to the imapproxy port and not the imap port to issue the command? Thanks, Dave _______________________________________________ imapproxy-info mailing list imapproxy-info at lists.andrew.cmu.edu https://lists.andrew.cmu.edu/mailman/listinfo/imapproxy-info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/imapproxy-info/attachments/20080826/07338462/attachment.html From David.Brangaitis at marist.edu Tue Aug 26 12:00:45 2008 From: David.Brangaitis at marist.edu (David Brangaitis) Date: Tue, 26 Aug 2008 12:00:45 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) In-Reply-To: <48B42546.80206@andrew.cmu.edu> Message-ID: Dave, Still doesn't seem to recognize the commands 1 P_TRACE xxxx 1 BAD Unrecognized command 2 P_VERSION 2 BAD Unrecognized command Which, it seems, is a different return than from an unknown command: 7 BLAHBLAH 7 BAD Please login first Thanks, David Dave McMurtrie Sent by: imapproxy-info-bounces+david.brangaitis=marist.edu at lists.andrew.cmu.edu 08/26/2008 11:46 AM Please respond to dave64 at andrew.cmu.edu To imapproxy-info at lists.andrew.cmu.edu cc Subject Re: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) David Brangaitis wrote: > Dave, > Thanks for the quick reply. I forgot to include the tag in my example -- > it returns the unknown command regardless... here is the output: > > Connected to localhost. > Escape character is '^]'. > * OK [CAPABILITY IMAP4Rev1 QUOTA UNSELECT] z/VM IMAP server Level 526 > Martha ready > 1 login xxxx xxxx > 1 OK User logged in Ahh -- I just realized that this is probably your issue. Try to issue the commands when not in authenticated state. Once you authenticate, imapproxy only looks for LOGOUT commands. Every other command is passed straight to your imap server. Let me know if this works for you. Thanks, Dave _______________________________________________ imapproxy-info mailing list imapproxy-info at lists.andrew.cmu.edu https://lists.andrew.cmu.edu/mailman/listinfo/imapproxy-info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/imapproxy-info/attachments/20080826/da2d58ce/attachment.html From dave64 at andrew.cmu.edu Tue Aug 26 12:04:16 2008 From: dave64 at andrew.cmu.edu (Dave McMurtrie) Date: Tue, 26 Aug 2008 12:04:16 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) In-Reply-To: References: Message-ID: <48B42980.7010509@andrew.cmu.edu> David Brangaitis wrote: > Dave, > Still doesn't seem to recognize the commands > > 1 P_TRACE xxxx > 1 BAD Unrecognized command > 2 P_VERSION > 2 BAD Unrecognized command > > Which, it seems, is a different return than from an unknown command: > 7 BLAHBLAH > 7 BAD Please login first Did you see the "Internal admin commands are enabled" log message when imapproxy started? Thanks, Dave From David.Brangaitis at marist.edu Tue Aug 26 12:22:57 2008 From: David.Brangaitis at marist.edu (David Brangaitis) Date: Tue, 26 Aug 2008 12:22:57 -0400 Subject: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) In-Reply-To: <48B42980.7010509@andrew.cmu.edu> Message-ID: Dave, AH, I was updating the wrong configuration file on my latest try (I have multiple), and had a typo in that one. Thank you very much for all your help! Now I'm on to figure out why IMP's 'purge deleted' function isn't working. Sincerely, David Dave McMurtrie Sent by: imapproxy-info-bounces at lists.andrew.cmu.edu 08/26/2008 12:04 PM Please respond to dave64 at andrew.cmu.edu To David Brangaitis cc imapproxy-info at lists.andrew.cmu.edu Subject Re: [imapproxy-info] trouble enabling P_TRACE for a user (imapproxy 1.2.6) David Brangaitis wrote: > Dave, > Still doesn't seem to recognize the commands > > 1 P_TRACE xxxx > 1 BAD Unrecognized command > 2 P_VERSION > 2 BAD Unrecognized command > > Which, it seems, is a different return than from an unknown command: > 7 BLAHBLAH > 7 BAD Please login first Did you see the "Internal admin commands are enabled" log message when imapproxy started? Thanks, Dave _______________________________________________ imapproxy-info mailing list imapproxy-info at lists.andrew.cmu.edu https://lists.andrew.cmu.edu/mailman/listinfo/imapproxy-info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/imapproxy-info/attachments/20080826/861d7613/attachment.html From paulb at migcom.com Tue Aug 26 09:38:21 2008 From: paulb at migcom.com (paulb) Date: Tue, 26 Aug 2008 06:38:21 -0700 Subject: [imapproxy-info] imapproxy usage scenario In-Reply-To: <48B4018F.7090006@gmail.com> References: <48B3CFAB.7090301@gmail.com> <48B3CFAB.7090301@gmail.com> <20080826105925.GA19130@wssp.cc.univie.ac.at> <48B4018F.7090006@gmail.com> Message-ID: <5B2EF506-D7F9-4123-A1F9-D6F9AB28680E@migcom.com> Hi Riccardo, Just to chime in with my experience here, we have a similar setup: courier-IMAP and qmail-smtp running on a server located offsite, so our bandwidth gets a significant amount of load with all the mail traffic coming in and out of the office. We were looking to "de- centralize" the system, but ran into the mail duplication issue you'd mentioned below. The way we'd considered was to have a local (on the LAN) imap and smtp server - the IMAP server would do a synchronize copy with the remote server every 5 minutes for only the accounts that were located at that office, but that would introduce file locking issues (what would happen when a client refreshed his mailbox information during a synchronize copy?) and a host of other problems. In short, there's no elegant solution with Courier-IMAP that I can see. I'm half-tempted to go with a commercial solution (like IceWarp) now... Anyway, one trick we did find was limiting Thunderbird to only establish 2 connections at a time. Under Thunderbird preferences, go into the Advanced Settings and into the Config. Editor. Do a filter search for "connections", which should bring up: mail.server.serverX.max_cached_connections (where X is the location in your Account settings of your server): change the value to 2. This will limit Thunderbird to only establish two connections - like one IMAP and one SMTP - which will keep down on idle sessions connected to the mail server and reduce some traffic to the mail server. -Paul B. On Aug 26, 2008, at 6:13 AM, Riccardo Magliocchetti wrote: > Hi Peter, > > Peter Schober wrote: >> * Riccardo Magliocchetti >> [2008-08-26 11:55]: >>> My plan is to move the clients to imap with thunderbird as client >>> and put imapproxy in the gateway in order to reduce the load on the >>> server. The hope is to have less connections so less imap server >>> processes and less bandwidth usage. >> >> When using Thunderbird you won't gain anything with Imapproxy (and >> even might lose a few features, e.g. authentication options). > > Thank you for the answer, you have confirmed my doubt that the gain > is only > for webmails. > >> @Riccardo: Also note that if the load on the mail server is already a >> concern with only 5 POP users you already have problems. And >> switching >> to IMAP (which is always preferrable, IMHO) will also not help here, >> unless people leave their mail on the server when POPing -- which >> seems to be the case here since you mentioned all 5 were accessing >> the >> same INBOX (which would be a lot cleaner with e.g. shared IMAP >> folders, but your IMAP daemon needs to support this, see RFC >> 2086/4314). > > Unfortunately the server is not under my control and i've been asked > to use > a local imap and let the clients connect to it. I've looked at proxy > solutions (this, nginx) but as you pointed out those won't help. I'm > looking > to use dovecot as proxy but i think it won't buy me anything. I > think the > server admin want me to download the mail periodically and serve > them with > the local imap server which sucks since i don't want to duplicate > the mails. > >> I'd go for IMAP with Thunderbird (leaving out Imapproxy) and see how >> things turn out. > > That was my initial plan to go straight with thunderbird. I think the > problem is the common belief that imap will use a lot of bandwidth > and use > it all the time. Can you assure me this is wrong? This looks > plausible only > if people is poking with their client all day long or checking > automatically > new mails every few seconds. > > thanks, > Riccardo > _______________________________________________ > imapproxy-info mailing list > imapproxy-info at lists.andrew.cmu.edu > https://lists.andrew.cmu.edu/mailman/listinfo/imapproxy-info Paul Banda IT Systems Manager Moore, Iacofano and Goltsman Inc. (MIG) 800 Hearst Ave. Berkeley, CA 94710 Phone: (510) 845-7549 x 182 Fax: (510) 845-8750 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.andrew.cmu.edu/pipermail/imapproxy-info/attachments/20080826/1f9b5725/attachment-0001.html From riccardo.magliocchetti at gmail.com Tue Aug 26 17:28:56 2008 From: riccardo.magliocchetti at gmail.com (Riccardo Magliocchetti) Date: Tue, 26 Aug 2008 23:28:56 +0200 Subject: [imapproxy-info] imapproxy usage scenario In-Reply-To: <5B2EF506-D7F9-4123-A1F9-D6F9AB28680E@migcom.com> References: <48B3CFAB.7090301@gmail.com> <48B3CFAB.7090301@gmail.com> <20080826105925.GA19130@wssp.cc.univie.ac.at> <48B4018F.7090006@gmail.com> <5B2EF506-D7F9-4123-A1F9-D6F9AB28680E@migcom.com> Message-ID: <48B47598.2000004@gmail.com> paulb wrote: > Hi Riccardo, Hi Paul, [snip] > Anyway, one trick we did find was limiting Thunderbird to only establish > 2 connections at a time. Under Thunderbird preferences, go into the > Advanced Settings and into the Config. Editor. Do a filter search for > "connections", which should bring up: > mail.server.serverX.max_cached_connections (where X is the location in > your Account settings of your server): change the value to 2. This will > limit Thunderbird to only establish two connections - like one IMAP and > one SMTP - which will keep down on idle sessions connected to the mail > server and reduce some traffic to the mail server. Thank you for the advice. thanks, Riccardo Magliocchetti From rakesh.pandit at gmail.com Thu Aug 28 12:39:26 2008 From: rakesh.pandit at gmail.com (Rakesh Pandit) Date: Thu, 28 Aug 2008 22:09:26 +0530 Subject: [imapproxy-info] adding DESTDIR to Makefile.in Message-ID: Hello list, I was about to update fedora package to 1.2.6 & found that Makefile.in does not support DESTDIR. For the time being I will apply patch (below). Suggestions? -- Thanks, rakesh --- up-imapproxy-1.2.6.org/Makefile.in 2008-08-28 21:17:12.000000000 +0530 +++ up-imapproxy-1.2.6/Makefile.in 2008-08-28 21:19:54.000000000 +0530 @@ -9,6 +9,7 @@ ## Tuneables # Paths +DESTDIR = SHELL = /bin/sh VPATH = @srcdir@ @@ -79,21 +80,21 @@ rm -f config.cache config.log config.h Makefile install: $(XYD_BIN) $(TAT_BIN) - mkdir -p $(EBIN) - $(INSTALL) -o bin -g bin -m 0755 $(XYD_BIN) $(EBIN) - $(INSTALL) -o bin -g bin -m 0755 $(TAT_BIN) $(EBIN) + mkdir -p $(DESTDIR)$(EBIN) + $(INSTALL) -o bin -g bin -m 0755 $(XYD_BIN) $(DESTDIR)$(EBIN) + $(INSTALL) -o bin -g bin -m 0755 $(TAT_BIN) $(DESTDIR)$(EBIN) install-init: - $(INSTALL) -o root -g sys -m 0755 ./scripts/imapproxy.init $(ETC)/init.d/imapproxy + $(INSTALL) -o root -g sys -m 0755 ./scripts/imapproxy.init $(DESTDIR)$(ETC)/init.d/imapproxy ln -s ../init.d/imapproxy /etc/rc2.d/S99imapproxy ln -s ../init.d/imapproxy /etc/rc0.d/K10imapproxy install-conf: - $(INSTALL) -o root -g bin -m 0644 ./scripts/imapproxy.conf $(ETC) + $(INSTALL) -o root -g bin -m 0644 ./scripts/imapproxy.conf $(DESTDIR)$(ETC) rpm-install: install - $(INSTALL) -o root -g sys -m 0644 ./scripts/imapproxy.conf $(rpm_prefix)/etc - $(INSTALL) -o root -g sys -m 0755 ./scripts/imapproxy.init $(rpm_prefix)/etc/init.d/imapproxy + $(INSTALL) -o root -g sys -m 0644 ./scripts/imapproxy.conf $(DESTDIR)$(rpm_prefix)/etc + $(INSTALL) -o root -g sys -m 0755 ./scripts/imapproxy.init $(DESTDIR)$(rpm_prefix)/etc/init.d/imapproxy pkg: pkgmk -o -r . From rakesh.pandit at gmail.com Thu Aug 28 15:02:44 2008 From: rakesh.pandit at gmail.com (Rakesh Pandit) Date: Fri, 29 Aug 2008 00:32:44 +0530 Subject: [imapproxy-info] regarding warnings I faced. Message-ID: Hi list, While packaging I found some simple to remove warnings. Below is the patch. I would not include it unless it is tested and approved my upstream thoroughly. Of course due to very small time I was not test it as much as I would have liked. But this one would be a good quick hint for anyone to go ahead and fix all of them. Usual build(using present Makefile) does not show these errors but if you build using gcc -O2 -g -pipe -Wall -Wp it will show up. In case folks need warnings log, ping me. Comments ? Suggestions ? -- rakesh diff -u up-imapproxy-1.2.6.org/src/imapcommon.c up-imapproxy-1.2.6/src/imapcommon.c --- up-imapproxy-1.2.6.org/src/imapcommon.c 2008-08-28 21:17:12.000000000 +0530 +++ up-imapproxy-1.2.6/src/imapcommon.c 2008-08-28 23:24:39.000000000 +0530 @@ -396,7 +396,7 @@ unsigned int Expiration; EVP_MD_CTX mdctx; - int md_len; + unsigned int md_len; Expiration = PC_Struct.cache_expiration_time; memset( &Server, 0, sizeof Server ); Only in up-imapproxy-1.2.6/src/: imapcommon.c~ Binary files up-imapproxy-1.2.6.org/src/imapcommon.o and up-imapproxy-1.2.6/src/imapcommon.o differ diff -u up-imapproxy-1.2.6.org/src/main.c up-imapproxy-1.2.6/src/main.c --- up-imapproxy-1.2.6.org/src/main.c 2008-08-28 21:17:12.000000000 +0530 +++ up-imapproxy-1.2.6/src/main.c 2008-08-28 23:58:45.000000000 +0530 @@ -180,11 +180,6 @@ ** */ - -static char *rcsId = "$Id: main.c,v 1.34 2007/11/15 11:14:16 dave64 Exp $"; -static char *rcsSource = "$Source: /afs/andrew.cmu.edu/usr18/dave64/work/IMAP_Proxy/src/RCS/main.c,v $"; -static char *rcsAuthor = "$Author: dave64 $"; - #define _REENTRANT #include @@ -277,7 +272,7 @@ char f_randfile[ PATH_MAX ]; int listensd; /* socket descriptor we'll bind to */ int clientsd; /* incoming socket descriptor */ - int sockaddrlen; + socklen_t sockaddrlen; struct sockaddr_storage srvaddr; struct sockaddr_storage cliaddr; pthread_t ThreadId; /* thread id of each incoming conn */ @@ -618,7 +613,7 @@ pthread_create( &RecycleThread, &attr, (void *)ICC_Recycle_Loop, NULL ); syslog(LOG_INFO, "%s: Launched ICC recycle thread with id %d", - fn, RecycleThread ); + fn, (int)RecycleThread ); /* * Now start listening and accepting connections. @@ -909,9 +904,30 @@ strerror(errno)); exit( 1 ); } - close(2); dup(i); - close(1); dup(i); - close(0); dup(i); + close(2); + if( dup(i) == -1 ) + { + syslog(LOG_ERR, "duplication of file descriptor %d failed: %d", i, + strerror(errno)); + exit( 1 ); + } + + close(1); + if( dup(i) == -1 ) + { + syslog(LOG_ERR, "duplication of file descriptor %d failed: %d", i, + strerror(errno)); + exit( 1 ); + } + + close(0); + if( dup(i) == -1 ) + { + syslog(LOG_ERR, "%s: duplication of file descriptor failed: %d", i, + strerror(errno)); + exit( 1 ); + } + close(i); } else @@ -1075,7 +1091,6 @@ ICD_Struct conn; int BytesRead; char *fn = "SetBannerAndCapability()"; - int NumRef = 0; /* initialize some stuff */ memset( &itd, 0, sizeof itd ); Only in up-imapproxy-1.2.6/src/: main.c~ Binary files up-imapproxy-1.2.6.org/src/main.o and up-imapproxy-1.2.6/src/main.o differ diff -u up-imapproxy-1.2.6.org/src/request.c up-imapproxy-1.2.6/src/request.c --- up-imapproxy-1.2.6.org/src/request.c 2008-08-28 21:17:12.000000000 +0530 +++ up-imapproxy-1.2.6/src/request.c 2008-08-29 00:11:03.000000000 +0530 @@ -518,9 +518,14 @@ if ( !Username ) { - snprintf( SendBuf, BufLen, "\n\n-----> C= %d %s PROXY: user tracing disabled. Expect further output until client logout.\n", time( 0 ), TraceUser ); - write( Tracefd, SendBuf, strlen( SendBuf ) ); - + snprintf( SendBuf, BufLen, "\n\n-----> C= %d %s PROXY: user tracing disabled. Expect further output until client logout.\n", (int)time( 0 ), TraceUser ); + if(write( Tracefd, SendBuf, strlen( SendBuf ) ) < 0) + { + syslog(LOG_ERR, "\nOut of space while writing file: %s!\n", + strerror(errno)); + exit( 1 ); + } + memset( TraceUser, 0, sizeof TraceUser ); snprintf( SendBuf, BufLen, "%s OK Tracing disabled\r\n", Tag ); if ( IMAP_Write( itd->conn, SendBuf, strlen(SendBuf) ) == -1 ) @@ -562,8 +567,14 @@ return( -1 ); } - snprintf( SendBuf, BufLen, "\n\n-----> C= %d %s PROXY: user tracing enabled.\n", time( 0 ), TraceUser ); + snprintf( SendBuf, BufLen, "\n\n-----> C= %d %s PROXY: user tracing enabled.\n", (int)time( 0 ), TraceUser ); write( Tracefd, SendBuf, strlen( SendBuf ) ); + if( write( Tracefd, SendBuf, strlen( SendBuf ) ) < 0) + { + syslog(LOG_ERR, "\nOut of space while writing file: %s!\n", + strerror(errno)); + exit( 1 ); + } UnLockMutex( &trace ); return( 0 ); @@ -692,10 +703,10 @@ { char *fn = "cmd_authenticate_login()"; char SendBuf[BUFSIZE]; - char Username[MAXUSERNAMELEN]; - char EncodedUsername[BUFSIZE]; - char Password[MAXPASSWDLEN]; - char EncodedPassword[BUFSIZE]; + unsigned char Username[MAXUSERNAMELEN]; + unsigned char EncodedUsername[BUFSIZE]; + unsigned char Password[MAXPASSWDLEN]; + unsigned char EncodedPassword[BUFSIZE]; ICD_Struct *conn; int rc; ITD_Struct Server;