Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glatzor/mail2rm
Mail PDF documents to you reMarkable notebook
https://github.com/glatzor/mail2rm
Last synced: 3 months ago
JSON representation
Mail PDF documents to you reMarkable notebook
- Host: GitHub
- URL: https://github.com/glatzor/mail2rm
- Owner: glatzor
- License: gpl-3.0
- Created: 2020-12-27T09:05:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-03T06:30:11.000Z (over 3 years ago)
- Last Synced: 2024-05-21T05:36:58.643Z (6 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-reMarkable - mail2rm - Mail PDF documents to your reMarkable cloud using your mail transport agent e.g. postfix. (Other / Launchers)
README
mail2rm
=======mail2rm allows you to send PDF documents to your reMarkable device by email.
The script is intended for people who run an own mail transport agent (MTA)
instance e.g. postfix. mail2rm is supposed to be used as a postfix filter.
This allows you to run the script during mail delivery. If the upload fails you
will get an undeliverable notice including the error message.Installation
------------1. Download rmapi from
and copy the executable binary to your server e.g.
to ```/usr/local/bin/rmapi```2. Add a separate user to your server (here Debian/Ubuntu):
```bash
adduser --system remarkable
```3. Copy the mail2rm script to your server e.g. to
```/usr/local/bin/mail2rm``` and make it executable.4. Register rmapi as the mail2rm user
```bash
sudo -u remarkable rmapi
```5. Integrate mail2rm into postfix.
Add the filter to master.cf:
```
mail2rm unix - n n - 50 pipe flags=F user=remarkable argv=/usr/local/bin/mail2rm -a [email protected] -a [email protected] -r /usr/local/bin/rmapi ${sender}
```
The -a/--allowed sender option allows to limit the addresses which can send
documents. The option can be used multiple times. Replace the above -a
statemens with your email addresses. The -r/--rmapi option
specifies the path to the rmapi executable.Add a check_recipient_access rule in master.cf:
```
smtpd_recipient_restrictions =
[...]
check_recipient_access hash:/etc/postfix/recipient_access
```Add the destination address to recipient_access file:
```
[email protected] FILTER mail2rm:dummy
```Update and reload configuration:
```bash
postmap /etc/postfix/recipient_access
systemctl reload postfix
```