Browse Source

Mailing list

Bob Mottram 11 years ago
parent
commit
227b1948c8
1 changed files with 177 additions and 34 deletions
  1. 177
    34
      beaglebone.txt

+ 177
- 34
beaglebone.txt View File

@@ -3267,6 +3267,157 @@ Now with a web browser navigate to https://mydomainname.com/shell and log in.
3267 3267
 
3268 3268
 If you're in a very locked down environment where access to web sites is severely restricted then as a last resort you may be able to use a command line browser, such as [[https://en.wikipedia.org/wiki/Lynx_%28web_browser%29][lynx]] from within /shellinabox/.
3269 3269
 
3270
+** Set up a mailing list
3271
+
3272
+#+BEGIN_VERSE
3273
+/All over the world there are many people who are united in creating software, content, and culture that is freely available for others to share, enjoy and enrich their lives. Together we believe that freedom is good. We believe it helps people do good things, make better choices, and lead safer and more secure lives. Together we are a community united by this belief./
3274
+
3275
+-- Jono Bacon
3276
+#+END_VERSE
3277
+
3278
+Mailing lists are old skool but still a common and easy way of communicating on the internet.  If you're running a public organisation such as an open source project or community group then you may want to set one up.
3279
+
3280
+#+BEGIN_SRC: bash
3281
+apt-get install mailman
3282
+newlist mailman
3283
+#+END_SRC
3284
+
3285
+Enter an email address for the list administrator and a password.
3286
+
3287
+Add some settings.
3288
+
3289
+#+BEGIN_SRC: bash
3290
+emacs /etc/exim4/conf.d/main/04_mailman_options
3291
+#+END_SRC
3292
+
3293
+Add the following, replacing /mydomainname.com/ with your domain name.
3294
+
3295
+#+BEGIN_SRC: bash
3296
+# Mailman macro definitions
3297
+
3298
+# Home dir for the Mailman installation
3299
+MM_HOME=/var/lib/mailman
3300
+
3301
+# User and group for Mailman
3302
+MM_UID=list
3303
+MM_GID=list
3304
+
3305
+#
3306
+# Domains that your lists are in - colon separated list
3307
+# you may wish to add these into local_domains as well
3308
+domainlist mm_domains=mydomainname.com
3309
+
3310
+# The path of the Mailman mail wrapper script
3311
+MM_WRAP=MM_HOME/mail/mailman
3312
+#
3313
+# The path of the list config file (used as a required file when
3314
+# verifying list addresses)
3315
+MM_LISTCHK=MM_HOME/lists/${lc::$local_part}/config.pck
3316
+#+END_SRC
3317
+
3318
+Save and exit.
3319
+
3320
+#+BEGIN_SRC: bash
3321
+emacs
3322
+/etc/exim4/conf.d/router/450_mailman_aliases
3323
+#+END_SRC
3324
+
3325
+Add the following:
3326
+
3327
+#+BEGIN_SRC: bash
3328
+mailman_router:
3329
+  driver = accept
3330
+  domains = +mm_domains
3331
+  require_files = MM_LISTCHK
3332
+  local_part_suffix_optional
3333
+  local_part_suffix = -admin : \
3334
+    -bounces   : -bounces+*  : \
3335
+    -confirm   : -confirm+*  : \
3336
+    -join      : -leave      : \
3337
+    -owner     : -request    : \
3338
+    -subscribe : -unsubscribe
3339
+  transport = mailman_transport
3340
+#+END_SRC
3341
+
3342
+Save and exit.
3343
+
3344
+#+BEGIN_SRC: bash
3345
+emacs /etc/exim4/conf.d/transport/40_mailman_pipe
3346
+#+END_SRC
3347
+
3348
+Add the following:
3349
+
3350
+#+BEGIN_SRC: bash
3351
+mailman_transport:
3352
+  driver = pipe
3353
+  command = MM_WRAP \
3354
+    '${if def:local_part_suffix \
3355
+    {${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
3356
+    {post}}' \
3357
+    $local_part
3358
+  current_directory = MM_HOME
3359
+  home_directory = MM_HOME
3360
+  user = MM_UID
3361
+  group = MM_GID
3362
+#+END_SRC
3363
+
3364
+Save and exit.
3365
+
3366
+#+BEGIN_SRC: bash
3367
+update-exim4.conf
3368
+service exim4 restart
3369
+emacs /etc/apache2/conf.d/mailman
3370
+#+END_SRC
3371
+
3372
+Add the following:
3373
+
3374
+#+BEGIN_SRC: bash
3375
+Alias /pipermail /var/lib/mailman/archives/public
3376
+Alias /images/mailman /usr/share/images/mailman
3377
+<directory /var/lib/mailman/archives/public>
3378
+    DirectoryIndex index.html
3379
+</directory>
3380
+#+END_SRC
3381
+
3382
+Save and exit.
3383
+
3384
+#+BEGIN_SRC: bash
3385
+emacs /etc/apache2/sites-available/$HOSTNAME
3386
+#+END_SRC
3387
+
3388
+Add the following to the 443 section.
3389
+
3390
+#+BEGIN_SRC: bash
3391
+  <Location /mailman>
3392
+    Options Indexes FollowSymLinks MultiViews
3393
+    Order allow,deny
3394
+    Allow from all
3395
+
3396
+    RedirectMatch ^/$ /cgi-bin/mailman/listinfo
3397
+  </Location>
3398
+#+END_SRC
3399
+
3400
+Save and exit.
3401
+
3402
+#+BEGIN_SRC: bash
3403
+service apache2 restart
3404
+#+END_SRC
3405
+
3406
+Now add your mailing list.  The list name should not include any spaces.
3407
+
3408
+#+BEGIN_SRC: bash
3409
+newlist mymailinglistname
3410
+/var/lib/mailman/bin/genaliases -q
3411
+#+END_SRC
3412
+
3413
+With a browser visit https://$HOSTNAME/cgi-bin/mailman/admin/mymailinglistname to configure the mailing list.
3414
+
3415
+Under *General Options* add an email address for a moderator (could be the same as the administrator) and click *Submit your changes*.
3416
+
3417
+Under *Privacy Options* set steps required for subscription to *Confirm and approve* and click *Submit your changes*.
3418
+
3419
+Also change these settings for the account within https://$HOSTNAME/cgi-bin/mailman/admin/mailman
3420
+
3270 3421
 ** Install Tripwire
3271 3422
 
3272 3423
 #+BEGIN_VERSE
@@ -3447,25 +3598,13 @@ adduser --system --home=/var/www/$HOSTNAME/htdocs/etherpad/ --group etherpad
3447 3598
 chown -R etherpad: /var/www/$HOSTNAME/htdocs/etherpad/
3448 3599
 #+END_SRC
3449 3600
 
3450
-Chick that it runs.
3451
-
3452
-#+BEGIN_SRC: bash
3453
-su -c "/var/www/$HOSTNAME/htdocs/etherpad/bin/run.sh" -s /bin/bash etherpad
3454
-#+END_SRC
3455
-
3456
-If it ran without exiting abnormally or complaining about node.js being missing then kill the process.
3457
-
3458
-#+BEGIN_SRC: bash
3459
-pkill -u etherpad
3460
-#+END_SRC
3461
-
3462
-Create an init script using your favorite editor, changing /mydomainname.com/ to your domain name.
3601
+Create an init script using your favorite editor.
3463 3602
 
3464 3603
 #+BEGIN_SRC: bash
3465 3604
 emacs /etc/init.d/etherpad
3466 3605
 #+END_SRC
3467 3606
 
3468
-Add the following:
3607
+Add the following, replacing /mydomainname.com/ with your domain name:
3469 3608
 
3470 3609
 #+BEGIN_SRC: bash
3471 3610
 #!/bin/sh
@@ -3561,30 +3700,22 @@ Update your Apache configuration.
3561 3700
 emacs /etc/apache2/sites-available/$HOSTNAME
3562 3701
 #+END_SRC
3563 3702
 
3564
-Within the 443 section add the following:
3703
+Within the section which begins with *<VirtualHost *:443>* add the following:
3565 3704
 
3566 3705
 #+BEGIN_SRC: bash
3567 3706
   <Location /etherpad>
3568
-      AuthType Basic
3569
-      AuthName "Welcome to Etherpad"
3570
-      AuthUserFile /home/mydomainname.com/public_html/.htpasswd
3571
-      AuthGroupFile /home/mydomainname.com/public_html/.htgroup
3572
-      Require group etherpad
3573
-  </Location>
3707
+    ProxyPass http://localhost:9001/
3708
+    ProxyPassReverse http://localhost:9001/
3574 3709
 
3575
-  <IfModule mod_proxy.c>
3576
-      ProxyVia On
3577
-      ProxyRequests Off
3578
-      ProxyPass /etherpad http://192.168.1.60:9001/
3579
-      ProxyPassReverse /etherpad 192.168.1.60:9001/
3580
-      ProxyPreserveHost on
3581
-      <Proxy *>
3582
-          Options FollowSymLinks MultiViews
3583
-          AllowOverride All
3584
-          Order allow,deny
3585
-          allow from all
3586
-      </Proxy>
3587
-  </IfModule>
3710
+    Order allow,deny
3711
+    allow from all
3712
+
3713
+    AuthName "Welcome to Etherpad"
3714
+    AuthUserFile /home/mydomainname.com/public_html/.htpasswd
3715
+    AuthGroupFile /home/mydomainname.com/public_html/.htgroup
3716
+    AuthType Basic
3717
+    Require group etherpad
3718
+  </Location>
3588 3719
 #+END_SRC
3589 3720
 
3590 3721
 Save and exit, then restart Apache.
@@ -3927,9 +4058,21 @@ a2enmod proxy_connect
3927 4058
 a2enmod proxy_http
3928 4059
 #+END_SRC
3929 4060
 
4061
+Upgrade the database.
4062
+
4063
+#+BEGIN_SRC: bash
4064
+mysql -p kune_prod < /usr/share/dbconfig-common/data/kune/upgrade/mysql/0.1.0+b5
4065
+mysql -p kune_prod < /usr/share/dbconfig-common/data/kune/upgrade/mysql/0.1.0+b6
4066
+mysql -p kune_prod < /usr/share/dbconfig-common/data/kune/upgrade/mysql/0.2.0+b12
4067
+mysql -p kune_prod < /usr/share/dbconfig-common/data/kune/upgrade/mysql/0.2.0+b23
3930 4068
 mysql -p kune_prod < /usr/share/dbconfig-common/data/kune/upgrade/mysql/0.2.0+b25
4069
+#+END_SRC
3931 4070
 
4071
+Edit the Apache configuration.
4072
+
4073
+#+BEGIN_SRC: bash
3932 4074
 emacs /etc/apache2/sites-available/$HOSTNAME
4075
+#+END_SRC
3933 4076
 
3934 4077
 <VirtualHost *:80>
3935 4078
     ServerName YOURSERVERNAME