From aba at not.so.argh.org Sat Dec 6 10:30:18 2008 From: aba at not.so.argh.org (Andreas Barth) Date: Sat, 6 Dec 2008 11:30:18 +0100 Subject: [Webmail-devel] setting up beammail Message-ID: <20081206103018.GK26549@mails.so.argh.org> Hi, I tried to setup beammail according to the instructions in the svn. However, there is no modules/webmailConfig.py, but in server/. Is that a template? Should I create modules? Why (and when) should I want to recompile pyjamas? How can I change the path from /var/spool/webmail/ to some other place more appropriate for my environment? Is there an apache-config-snippet I can use? Thanks for your help. Cheers, Andi From tv at beamnet.de Sat Dec 6 12:58:35 2008 From: tv at beamnet.de (Thomas Viehmann) Date: Sat, 06 Dec 2008 13:58:35 +0100 Subject: [Webmail-devel] setting up beammail In-Reply-To: <20081206103018.GK26549@mails.so.argh.org> (sfid-20081206_120816_580890_DCAF0CBECBBBC963) References: <20081206103018.GK26549@mails.so.argh.org> (sfid-20081206_120816_580890_DCAF0CBECBBBC963) Message-ID: <493A76FB.8090707@beamnet.de> Hi Andi, thanks for trying out beamMail! Andreas Barth wrote: > I tried to setup beammail according to the instructions in the svn. > However, there is no modules/webmailConfig.py, but in server/. Is that a > template? Should I create modules? Why (and when) should I want to > recompile pyjamas? How can I change the path from /var/spool/webmail/ to > some other place more appropriate for my environment? Is there an > apache-config-snippet I can use? Ah, sorry. So in order: - modules has moved to server, - you want to recompile the pyjamas part if you change something there, to update the static dir, - unfortunately, the path is hardcoded at the moment (in three places in webmail-server.py)[*], - here is my apache config (all it does is do HTTPS and forward to HTTP), in principle you can run SSL directly too, but I just have it on a virtual host, so I didn't implement this yet[*]. ServerName mail.example.com:443 ProxyRequests off ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ DocumentRoot "/dev/null" Allow from all SSLEngine on SSLCertificateFile /etc/apache2/ssl/https.beamnet.crt SSLCertificateKeyFile /etc/apache2/ssl/https.beamnet.key SSLOptions +StdEnvVars SSLOptions +StdEnvVars Mind you, I have just pushed a couple of fixes from my local tree. If you need anything else, please don't hesitate to ask here or catch me on IRC. Kind regards T. *. If you need this, I'll fix this quickly, too, or take your patch. :) -- Thomas Viehmann, http://thomas.viehmann.net/ From aba at not.so.argh.org Sat Dec 6 15:52:23 2008 From: aba at not.so.argh.org (Andreas Barth) Date: Sat, 6 Dec 2008 16:52:23 +0100 Subject: [Webmail-devel] setting up beammail In-Reply-To: <493A76FB.8090707@beamnet.de> References: <20081206103018.GK26549@mails.so.argh.org> <493A76FB.8090707@beamnet.de> Message-ID: <20081206155223.GM26549@mails.so.argh.org> * Thomas Viehmann (tv at beamnet.de) [081206 13:44]: > - here is my apache config (all it does is do HTTPS and forward to > HTTP), in principle you can run SSL directly too, but I just have it > on a virtual host, so I didn't implement this yet[*]. Can you show the apache config of the 8080-hosts as well - that's the more interesting. Below the first docu update patch. Cheers, Andi diff --git a/doc/README b/doc/README index b2df6a4..a0ceff8 100644 --- a/doc/README +++ b/doc/README @@ -20,10 +20,13 @@ that also does https for you. "Set up guide" -You need to adjust modules/webmailConfig.py (read through it, too). -If you want to recompile the web app use pyjamas/build.sh. +You need to adjust server/webmailConfig.py (read through it, too). + +If you change something in the pyjamas part you need to recompile it +with pyjamas/build.sh. You need to set up /var/spool/webmail/ to be read-writable (only) -by the user running webmail. +by the user running webmail - the directory is hardcoded at the moment +in webmail-server.py, but should be changed someday. Run webmail-server.py. From tv at beamnet.de Sat Dec 6 21:30:17 2008 From: tv at beamnet.de (Thomas Viehmann) Date: Sat, 06 Dec 2008 22:30:17 +0100 Subject: [Webmail-devel] setting up beammail In-Reply-To: <20081206155223.GM26549@mails.so.argh.org> (sfid-20081206_220535_402390_56379C2015D3C252) References: <20081206103018.GK26549@mails.so.argh.org> <493A76FB.8090707@beamnet.de> <20081206155223.GM26549@mails.so.argh.org> (sfid-20081206_220535_402390_56379C2015D3C252) Message-ID: <493AEEE9.1050407@beamnet.de> Andreas Barth wrote: > * Thomas Viehmann (tv at beamnet.de) [081206 13:44]: >> - here is my apache config (all it does is do HTTPS and forward to >> HTTP), in principle you can run SSL directly too, but I just have it >> on a virtual host, so I didn't implement this yet[*]. > Can you show the apache config of the 8080-hosts as well - that's the more > interesting. webmail-server.py listens on 8080, so it's not apache (sorry about the old mod-python references) on the webpage. > Below the first docu update patch. Thanks! Kind regards T. -- Thomas Viehmann, http://thomas.viehmann.net/ From aba at not.so.argh.org Sat Dec 6 21:58:14 2008 From: aba at not.so.argh.org (Andreas Barth) Date: Sat, 6 Dec 2008 22:58:14 +0100 Subject: [Webmail-devel] setting up beammail In-Reply-To: <493AEEE9.1050407@beamnet.de> References: <20081206103018.GK26549@mails.so.argh.org> <493A76FB.8090707@beamnet.de> <20081206155223.GM26549@mails.so.argh.org> <493AEEE9.1050407@beamnet.de> Message-ID: <20081206215814.GP26549@mails.so.argh.org> * Thomas Viehmann (tv at beamnet.de) [081206 22:23]: > Andreas Barth wrote: > > * Thomas Viehmann (tv at beamnet.de) [081206 13:44]: > >> - here is my apache config (all it does is do HTTPS and forward to > >> HTTP), in principle you can run SSL directly too, but I just have it > >> on a virtual host, so I didn't implement this yet[*]. > > > Can you show the apache config of the 8080-hosts as well - that's the more > > interesting. > webmail-server.py listens on 8080, so it's not apache (sorry about the > old mod-python references) on the webpage. Next patch then. Thanks. Cheers, Andi diff --git a/doc/README b/doc/README index a0ceff8..90f5493 100644 --- a/doc/README +++ b/doc/README @@ -29,4 +29,7 @@ You need to set up /var/spool/webmail/ to be read-writable (only) by the user running webmail - the directory is hardcoded at the moment in webmail-server.py, but should be changed someday. -Run webmail-server.py. +Run webmail-server.py. This programm will listen on the address and +port configured in server/webmailConfig.py, so ensure that this address +isn't reachable by untrusted clients (but use e.g. apache with SSL as +front-proxy).