Browse Source

Email instructions

Bob Mottram 10 years ago
parent
commit
c9bdc17190
1 changed files with 185 additions and 1 deletions
  1. 185
    1
      usage.org

+ 185
- 1
usage.org View File

@@ -8,8 +8,184 @@
8 8
 [[./images/logo.png]]
9 9
 #+END_CENTER
10 10
 
11
+| [[Using Email]] | [[Play Music]] | [[Syncing to the Cloud]] | [[Microblogging]] | [[Social Network]] | [[Chat Services]] |
11 12
 
12
-* Email
13
+* Using Email
14
+** A technical note about email transport security
15
+Currently port 465 is used for SMTP. This port is supposedly deprecated for secure email. However, using TLS from the start of the communications seems far more secure than starting off with insecure communications and then trying to upgrade it with a command to begin TLS, as happens with STARTTLS. There are possible attacks against STARTTLS in which the command to begin secure communications is removed or overwritten which could then result in email being transferred in plain text over the internet and be readable by third parties.
16
+** Add a password to your GPG key
17
+If you didn't use existing GPG keys during the Freedombone installation then you'll need to add a password to your newly generated private key. This is highly recommended. Go through the following sequence of commands to ssh into the Freedombone and then change your GPG password.
18
+
19
+#+BEGIN_SRC bash
20
+ssh username@domainname -p 2222
21
+gpg --edit-key username@domain
22
+passwd
23
+save
24
+quit
25
+exit
26
+#+END_SRC
27
+
28
+Having a password on your GPG key will prevent someone from reading your email /even if your server gets lost or stolen/ or if someone else has physical access to it. Make the password something long and unlikely to be guessable or vulnerable to a brute force [[http://en.wikipedia.org/wiki/Dictionary_attack][dictionary attack]].
29
+
30
+** Publishing your GPG public key
31
+If you havn't already then you should publish your GPG public key so that others can find it.
32
+
33
+#+BEGIN_SRC bash
34
+ssh username@domainname -p 2222
35
+gpg --send-keys username@domainname
36
+exit
37
+#+END_SRC
38
+** Mutt email client
39
+Mutt is a terminal based email client which comes already installed onto the Freedombone. To access it you'll need to access it via ssh with:
40
+
41
+#+BEGIN_SRC bash
42
+ssh username@domainname -p 2222
43
+#+END_SRC
44
+
45
+If you're using Windows there is an ssh client called putty, on Linux just open a terminal and enter the above command with your username and domain name. On Android you can use the ConnectBot app with the hostname *username@domain:2222*
46
+
47
+Once you have logged in via ssh then just type *mutt*. Like most terminal programs mutt is quite easy once you've learned the main keys.
48
+
49
+Some useful keys to know are:
50
+
51
+| "/"    | Search for text within headers                          |
52
+| *      | Move to the last message                                |
53
+| TAB    | Move to the next unread message                         |
54
+| d      | Delete a message                                        |
55
+| u      | Undelete a mail which is pending deletion               |
56
+| $      | Delete all messages selected and check for new messages |
57
+| a      | Add to the address book                                 |
58
+| m      | Send a new mail                                         |
59
+| ESC-m  | Mark all messages as having been read                   |
60
+| S      | Mark a message as spam                                  |
61
+| H      | Mark a message as ham                                   |
62
+| CTRL-b | Toggle side bar on/off                                  |
63
+| CTRL-n | Next mailbox (on side bar)                              |
64
+| CTRL-p | Previous mailbox (on side bar)                          |
65
+| CTRL-o | Open mailbox (on side bar)                              |
66
+| ]      | Expand or collapse all threads                          |
67
+| [      | Expand of collapse the current thread                   |
68
+| CTRL-k | Import a PGP/GPG public key                             |
69
+| q      | Quit                                                    |
70
+
71
+To use the address book system open an email by pressing the enter key on it and then to add the sender to the address list press the A key.  It will ask you for an alias which may be used the next time you want to send a mail.  Alternatively you may just edit the *~/.mutt-alias* file directly to add email addresses.
72
+
73
+One of the most common things which you might wish to do is to send an email.  To do this first press /m/ to create a new message.  Enter the address to send to and the subject, then after a few seconds the Emacs editor will appear with a blank document.  Type your email then press /CTRL-x CTRL-s/ to save it and /CTRL-x CTRL-c/ to exit.  You will then see a summary of the email to be sent out.  Press /y/ to send it and then enter your GPG key passphrase (the one you gave when creating a PGP/GPG key).  The purpose of that is to add a signature which is a strong proof that the email was written by you and not by someone else.
74
+
75
+When reading emails you will initially need to enter your GPG password. It will be retained in RAM for a while afterwards.
76
+
77
+** Thunderbird
78
+Another common way in which you may want to access email is via Thunderbird.  This may be especially useful if you're trying to convert former Windows users who may previously have been using some version of Outlook.
79
+
80
+The following instructions should be carried out on the client machines (laptop, etc), not on the BBB itself.
81
+
82
+*** Initial setup
83
+
84
+Install *Thunderbird* and *Enigmail*.  How you do this just depends upon your distro and software manager or "app store".
85
+
86
+Open Thinderbird
87
+
88
+Select "*Skip this and use existing email*"
89
+
90
+Enter your name, email address (myusername@mydomainname.com) and the password for your user (the one from [[Add a user]]).
91
+
92
+You'll get a message saying "/Thunderbird failed to find the settings/"
93
+
94
+The settings should be as follows, substituting /mydomainname.com/ for your domain name and /myusername/ for the username given previously in [[Add a user]].
95
+
96
+  * Incoming: IMAP, mydomainname.com, 993, SSL/TLS, Normal Password
97
+  * Outgoing: SMTP, mydomainname.com, 465, SSL/TLS, Normal Password
98
+  * Username: myusername
99
+
100
+Click *Done*.
101
+
102
+Click *Get Certificate* and make sure "*permanently store this exception*" is selected", then click *Store Security Exception*.
103
+
104
+From OpenPGP setup select "*Yes, I would like the wizard to get me started*".  If the wizard doesn't start automatically then "setup wizard" can be selected from OpenPGP on the menu bar.
105
+
106
+Select "*Yes, I want to sign all of my email*"
107
+
108
+Select "*No, I will create per-recipient rules*"
109
+
110
+Select "*yes*" to change default settings.
111
+
112
+*** Import your GPG keys
113
+
114
+On the Freedombone export your GPG public and private keys.
115
+
116
+#+BEGIN_SRC bash
117
+gpg --output ~/public_key.gpg --armor --export KEY_ID
118
+gpg --output ~/private_key.gpg --armor --export-secret-key KEY_ID
119
+#+END_SRC
120
+
121
+On your laptop or desktop you can import the keys with:
122
+
123
+#+BEGIN_SRC bash
124
+scp -P 2222 username@domain:/home/username/*.gpg ~/
125
+#+END_SRC
126
+
127
+Select "*I have existing public and private keys*".
128
+
129
+Select your public and private GPG exported key files.
130
+
131
+Select the account which you want to use and click *Next*, *Next* and *Finish*.
132
+
133
+Remove your exported key files, both on your laptop/desktop and also on the Freedombone.
134
+
135
+#+BEGIN_SRC bash
136
+shred -zu ~/public_key.gpg
137
+shred -zu ~/private_key.gpg
138
+#+END_SRC
139
+
140
+*** Using for the first time
141
+
142
+Click on the Thunderbird menu, which looks like three horizontal bars on the right hand side.
143
+
144
+Hover over *preferences* and then *Account settings*.
145
+
146
+Select *OpenPGP Security* and make sure that *use PGP/MIME by default* is ticked. This will enable you to sign/encrypt attachments, HTML bodies and UTF-8 without any problems.
147
+
148
+Select *Synchronization & Storage*.
149
+
150
+Make sure that *Keep messages for this account on this computer* is unticked, then click *Ok*.
151
+
152
+Click on *Inbox*.  Depending upon how much email you have it may take a while to import the subject lines.
153
+
154
+Note that when sending an email for the first time you will also need to accept the SSL certificate.
155
+
156
+Get into the habit of using email encryption and encourage others to do so.  Remember that you may not think that your emails are very interesting but the Surveillance State is highly interested in them and will be actively trying to data mine your private life looking for "suspicious" patterns, regardless of whether you are guilty of any crime or not.
157
+
158
+*** Making folders visible
159
+By default you won't be able to see any folders which you may have created earlier using the /mailinglistrule/ script.  To make folders visible select:
160
+
161
+*Menu*, hover over *Preferences*, select *Account Settings*, select *Server Settings* then click on the *Advanced* button.
162
+
163
+Make sure that "*show only subscribed folders*" is not checked.  Then click the *ok* buttons.  Folders will be re-scanned, which may take some time depending upon how much email you have, but your folders will then appear.
164
+
165
+** K9 Android client
166
+*NOTE*: Currently the K9 email client will not work with the Freedombone since it doesn't support PGP/MIME encoding. However, there is development work taking place on that feature and it is hoped that K9 may be usable in the near future.
167
+
168
+*** Incoming server settings
169
+ * Select settings/account settings
170
+ * Select Fetching mail/incoming server
171
+ * Enter your username and password
172
+ * IMAP server should be your domain name
173
+ * Security: SSL/TLS (always)
174
+ * Authentication: Plain
175
+ * Port: 993
176
+*** Outgoing (SMTP) server settings
177
+ * Select settings/account settings
178
+ * Select Sending mail/outgoing server
179
+ * Set SMTP server to your domain name
180
+ * Set Security to SSL/TLS (always)
181
+ * Set port to 465
182
+ * Set authentication to PLAIN
183
+ * Enter your username and password
184
+ * Accept the SSL certificate
185
+*** Folders
186
+To view any new folders which you may have created using the /mailinglistrule/ script from your inbox press the *K9 icon* at the top left to access folders, then press the *menu button* and select *refresh folder list*.
187
+
188
+If your folder still doesn't show up then press the *menu button*, select *show folders* and select *all folders*.
13 189
 
14 190
 * Play Music
15 191
 ** With the DLNA service
@@ -38,3 +214,11 @@ The DLNA service will only work within your local home network, and isn't remote
38 214
 The main advantage of playing music via Owncloud is that you can do that from anywhere - not only within your home network.
39 215
 
40 216
 By default a music player is installed into Owncloud, so all you need to do is to visit your Owncloud web site, select the *music* directory and then upload some music files. Afterwards you can select the *music icon* from the top left drop down menu and albums will then appear which can be played. If you want to share music with other users then you can select the *share* option from within the files view to make the tracks available.
217
+
218
+* Syncing to the Cloud
219
+
220
+* Microblogging
221
+
222
+* Social Network
223
+
224
+* Chat Services