From 2eccf838dde2f917e148884b90f3e91064560774 Mon Sep 17 00:00:00 2001 From: Charadon Date: Mon, 24 Oct 2022 16:46:29 +0000 Subject: Add remote-mail page --- pages/remote-mail.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pages/remote-mail.md diff --git a/pages/remote-mail.md b/pages/remote-mail.md new file mode 100644 index 0000000..800a0dc --- /dev/null +++ b/pages/remote-mail.md @@ -0,0 +1,48 @@ + + +# Remote Mail Guide +tilde.institute doesn't support POP or IMAP at the moment, so we'll need to use +a little bit of a roundabout way of connecting to our mail address remotely. +All you will need for this guide is sshfs, ssh itself, and an e-mail client +that supports Maildir. + +## Known clients that support Maildir +- Gnome Evolution +- Neomutt +- Mutt + +## Sending Mail + +To send mail, all you need to do is run this command: + +``` +ssh -nNTL 25:localhost:25 yourusername@tilde.institute +``` + +And then set your SMTP server in your mail client to localhost and use port 25. +You will now be able to send mail. + +## Receiving Mail +First, you need to mount your remote Maildir folder using sshfs. You can use +this command to do that: + +``` +sshfs -v -o reconnect -o ssh_command="ssh -i ~/.ssh/id_yourkey" yourusername@tilde.institute:/home/yourusername/Maildir ~/Maildir +``` + +Then set up your mail client like you would with any other Maildir and point it +to your mounted Maildir folder. + +### Notes +1. This is not very mobile unfortunately, and as far as i'm aware, there is no +Maildir supporting e-mail client for phones. +2. The above commands assume you have a keyring installed to automatically +unlock your keys OR a passwordless key. +3. On some file managers such as Thunar, if sshfs can't connect to the remote +server, it will freeze the file manager if you navigate to the folder it's +mounted in. (In this case, since we mounted Maildir to ~/, it'll freeze in +your home folder.) -- cgit 1.4.1-2-gfad0