Quellcode durchsuchen

Encrypted email mailing list

Bob Mottram vor 11 Jahren
Ursprung
Commit
082d688818
1 geänderte Dateien mit 164 neuen und 2 gelöschten Zeilen
  1. 164
    2
      beaglebone.txt

+ 164
- 2
beaglebone.txt Datei anzeigen

@@ -1215,6 +1215,11 @@ if [ ! -f "$MUTTRC" ]; then
1215 1215
   cp /etc/Muttrc $MUTTRC
1216 1216
   chown $MYUSERNAME:$MYUSERNAME $MUTTRC
1217 1217
 fi
1218
+PROCMAILLOG=/home/$MYUSERNAME/log
1219
+if [ ! -d $PROCMAILLOG ]; then
1220
+  mkdir $PROCMAILLOG
1221
+  chown -R $MYUSERNAME:$MYUSERNAME $PROCMAILLOG
1222
+fi
1218 1223
 #+END_SRC
1219 1224
 
1220 1225
 Save and exit, then make the script executable.
@@ -1277,6 +1282,11 @@ if [ ! -f "$MUTTRC" ]; then
1277 1282
   cp /etc/Muttrc $MUTTRC
1278 1283
   chown $MYUSERNAME:$MYUSERNAME $MUTTRC
1279 1284
 fi
1285
+PROCMAILLOG=/home/$MYUSERNAME/log
1286
+if [ ! -d $PROCMAILLOG ]; then
1287
+  mkdir $PROCMAILLOG
1288
+  chown -R $MYUSERNAME:$MYUSERNAME $PROCMAILLOG
1289
+fi
1280 1290
 #+END_SRC
1281 1291
 
1282 1292
 Save and exit, then make the script executable.
@@ -3900,9 +3910,9 @@ Now you can visit your wiki and begin editing.
3900 3910
 ** Install Bitmessage
3901 3911
 
3902 3912
 #+BEGIN_VERSE
3903
-/Love your neighbour. Fight the future. If you are reading this you ARE the resistance./
3913
+/The weakness of mass surveillance is that it can very easily be made much more expensive through changes in technical standards: pervasive, end-to-end encryption can quickly make indiscriminate surveillance impossible on a cost-effective basis/
3904 3914
 
3915
+-- Edward J. Snowden, testimony to the EU parliament
3905 3916
 #+END_VERSE
3906 3917
 
3907 3918
 *** A new kind of Email
@@ -4182,7 +4192,7 @@ If you're in a very locked down environment where access to web sites is severel
4182 4192
 -- Jono Bacon
4183 4193
 #+END_VERSE
4184 4194
 
4185
-*** With Email
4195
+*** Public mailing list
4186 4196
 Email mailing lists are old skool but still remain as 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.
4187 4197
 
4188 4198
 **** Installation
@@ -4416,6 +4426,157 @@ To delete a mailing list:
4416 4426
 rmlist -a mymailinglistname
4417 4427
 #+END_SRC
4418 4428
 
4429
+*** Private (encrypted) mailing list
4430
+**** Installation
4431
+#+BEGIN_SRC: bash
4432
+apt-get install schleuder
4433
+#+END_SRC
4434
+
4435
+Edit the configuration:
4436
+
4437
+#+BEGIN_SRC: bash
4438
+emacs /etc/schleuder/schleuder.conf
4439
+#+END_SRC
4440
+
4441
+Set the following parameters, replacing /mydomainname.com/ with your domain name:
4442
+
4443
+#+BEGIN_SRC: bash
4444
+smtp_port: 465
4445
+superadminaddr: root@mydomainname.com
4446
+#+END_SRC
4447
+
4448
+Save and exit.
4449
+
4450
+Get your GPG public key, replacing /myGPGkeyID/ with your GPG key ID:
4451
+
4452
+#+BEGIN_SRC: bash
4453
+export MYKEYID=myGPGkeyID
4454
+gpg --search-keys $MYKEYID
4455
+gpg --output /tmp/mypublickey.txt --armor --export $MYKEYID
4456
+#+END_SRC
4457
+
4458
+Then to create a mailing list, replacing /mydomainname.com/ with your domain name, /myusername/ with your username and /mailinglistname/ with the name of the mailing list.  /mailinglistname/ should be all one word, with no spaces.
4459
+
4460
+#+BEGIN_SRC: bash
4461
+export MAILINGLISTNAME=mailinglistname
4462
+export MYUSERNAME=myusername
4463
+export HOSTNAME=mydomainname.com
4464
+export EMAILADDRESS=$MYUSERNAME@$HOSTNAME
4465
+schleuder-newlist $MAILINGLISTNAME@$HOSTNAME -realname "mailing list name" -adminaddress $EMAILADDRESS -initmember $EMAILADDRESS -initmemberkey /tmp/mypublickey.txt -nointeractive
4466
+#+END_SRC
4467
+
4468
+Now add a mailing list rule:
4469
+
4470
+#+BEGIN_SRC: bash
4471
+emailrule $MYUSERNAME $MAILINGLISTNAME@$HOSTNAME $MAILINGLISTNAME
4472
+#+END_SRC
4473
+
4474
+Edit your Mutt configuration.
4475
+
4476
+#+BEGIN_SRC: bash
4477
+emacs /home/$MYUSERNAME/.muttrc
4478
+#+END_SRC
4479
+
4480
+Search for the /mailboxes/ parameter and add "=mailinglistname".  For example:
4481
+
4482
+#+BEGIN_SRC: bash
4483
+mailboxes = =Sent =Drafts =mailinglistname
4484
+#+END_SRC
4485
+
4486
+Save and exit.
4487
+
4488
+Update Exim routing.
4489
+
4490
+#+BEGIN_SRC: bash
4491
+emacs /etc/exim4/conf.d/router/550_schleuder
4492
+#+END_SRC
4493
+
4494
+Add the following:
4495
+
4496
+#+BEGIN_SRC: bash
4497
+schleuder:
4498
+  debug_print = "R: schleuder for $local_part@$domain"
4499
+  driver = accept
4500
+  local_part_suffix_optional
4501
+  local_part_suffix = +* : -bounce : -sendkey
4502
+  domains = +local_domains
4503
+  require_files = schleuder:/var/schleuderlists/${local_part}/
4504
+  transport = schleuder_transport
4505
+#+END_SRC
4506
+
4507
+Save and exit.
4508
+
4509
+#+BEGIN_SRC: bash
4510
+emacs /etc/exim4/conf.d/transport/30_schleuder
4511
+#+END_SRC
4512
+
4513
+Add the following.
4514
+
4515
+#+BEGIN_SRC: bash
4516
+schleuder_transport:
4517
+  debug_print = "T: schleuder_transport for $local_part@$domain"
4518
+  driver = pipe
4519
+  user = schleuder
4520
+  group = schleuder
4521
+  home_directory = "/var/schleuderlists/$local_part"
4522
+  command = "/usr/bin/schleuder $local_part"
4523
+#+END_SRC
4524
+
4525
+Save and exit.
4526
+
4527
+#+BEGIN_SRC: bash
4528
+update-exim4.conf
4529
+service exim4 restart
4530
+useradd  -d /var/schleuderlists -s /bin/false schleuder
4531
+adduser Debian-exim schleuder
4532
+#+END_SRC
4533
+
4534
+#+BEGIN_SRC: bash
4535
+emacs /etc/aliases
4536
+#+END_SRC
4537
+
4538
+Append the following, replacing /mailinglistname/ with the mailing list name and /mydomainname.com/ with your domain name.
4539
+
4540
+#+BEGIN_SRC: bash
4541
+mailinglistname: "|/usr/bin/schleuder mailinglistname@mydomainname.com"
4542
+mailinglistname-request: "|/usr/bin/schleuder mailinglistname@mydomainname.com"
4543
+mailinglistname-bounce: "|/usr/bin/schleuder mailinglistname@mydomainname.com"
4544
+mailinglistname-sendkey: "|/usr/bin/schleuder mailinglistname@mydomainname.com"
4545
+mailinglistname-owner: "|/usr/bin/schleuder mailinglistname@mydomainname.com"
4546
+#+END_SRC
4547
+
4548
+Save and exit.
4549
+
4550
+**** Using the list
4551
+
4552
+To get the public keys send an email to /mailinglistname-request@mydomainname.com/ containing *X-LIST-KEYS* in the message body.
4553
+
4554
+To add a member: *X-ADD-MEMBER: othermember@otherdomain.net*
4555
+
4556
+An example of adding a public key to the list:
4557
+
4558
+#+BEGIN_SRC: bash
4559
+X-ADD-KEY:
4560
+-----BEGIN PGP PUBLIC KEY BLOCK-----
4561
+Version: GnuPG v1.4.9 (GNU/Linux)
4562
+
4563
+mQGiBEjVO7oRBADQvT6wtD2IzzIiK0NbrcilCKCp4MWb8cYXTXguwPQI6y0Nerz4
4564
+dsK6J0X1Vgeo02tqA4xd3EDK8rdqL2yZfl/2egH8+85R3gDk+kqkfEp4pwCgp6VO
4565
+[...]
4566
+pNlF/qkaWwRb048h+iMrW21EkouLKTDPFkdFbapV2X5KJZIcfhO1zEbwc1ZKF3Ju
4567
+Q9X5GRmY62hz9SCZnsC0jeYAni8OUQV9NXfXlS/vePBUnOL08NQB
4568
+=xTv3
4569
+-----END PGP PUBLIC KEY BLOCK-----
4570
+#+END_SRC
4571
+
4572
+To get details for a member: *X-GET-MEMBER: othermember@otherdomain.net*
4573
+
4574
+To delete a member: *X-DELETE-MEMBER: othermember@otherdomain.net*
4575
+
4576
+To delete a public key: *X-DELETE-KEY: keyID*
4577
+
4578
+You can unsubscribe from the list with *X-UNSUBSCRIBE* in the message body.
4579
+
4419 4580
 *** With Bitmessage
4420 4581
 On your local machine (not the BBB) you can make a private mailing list which is difficult to censor and where there is no single point of failure.  This type of mailing list is known as a "chan".
4421 4582