{"id":13771648,"url":"https://github.com/glatzor/mail2rm","last_synced_at":"2025-05-11T04:30:49.149Z","repository":{"id":52464675,"uuid":"324724084","full_name":"glatzor/mail2rm","owner":"glatzor","description":"Mail PDF documents to you reMarkable notebook","archived":false,"fork":false,"pushed_at":"2021-05-03T06:30:11.000Z","size":15,"stargazers_count":9,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-17T07:34:24.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glatzor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-27T09:05:10.000Z","updated_at":"2024-01-21T22:56:36.000Z","dependencies_parsed_at":"2022-09-06T21:40:54.080Z","dependency_job_id":null,"html_url":"https://github.com/glatzor/mail2rm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glatzor%2Fmail2rm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glatzor%2Fmail2rm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glatzor%2Fmail2rm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glatzor%2Fmail2rm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glatzor","download_url":"https://codeload.github.com/glatzor/mail2rm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:00:53.924Z","updated_at":"2025-05-11T04:30:48.896Z","avatar_url":"https://github.com/glatzor.png","language":"Python","funding_links":[],"categories":["Other"],"sub_categories":["Template Builders"],"readme":"mail2rm\n=======\n\nmail2rm allows you to send PDF documents to your reMarkable device by email.\nThe script is intended for people who run an own mail transport agent (MTA)\ninstance e.g. postfix. mail2rm is supposed to be used as a postfix filter.\nThis allows you to run the script during mail delivery. If the upload fails you\nwill get an undeliverable notice including the error message.\n\n\nInstallation\n------------\n\n 1. Download rmapi from \u003chttps://github.com/juruen/rmapi/releases\u003e\n    and copy the executable binary to your server e.g.\n    to ```/usr/local/bin/rmapi```\n\n 2. Add a separate user to your server (here Debian/Ubuntu):\n\n    ```bash\n    adduser --system remarkable\n    ```\n\n 3. Copy the mail2rm script to your server e.g. to\n    ```/usr/local/bin/mail2rm``` and make it executable.\n\n 4. Register rmapi as the mail2rm user\n\n    ```bash\n    sudo -u remarkable rmapi\n    ```\n\n 5. Integrate mail2rm into postfix.\n\n    Add the filter to master.cf:\n    ```\n    mail2rm unix - n n - 50 pipe flags=F user=remarkable argv=/usr/local/bin/mail2rm -a mymail@example.com -a workmail@example.com -r /usr/local/bin/rmapi ${sender}\n    ```\n    The -a/--allowed sender option allows to limit the addresses which can send\n    documents. The option can be used multiple times. Replace the above -a\n    statemens with your email addresses. The -r/--rmapi option\n    specifies the path to the rmapi executable. \n\n    Add a check_recipient_access rule in master.cf:\n    ```\n    smtpd_recipient_restrictions =\n        [...]\n        check_recipient_access hash:/etc/postfix/recipient_access\n    ```\n\n    Add the destination address to recipient_access file:\n    ```\n    remarkable@example.com FILTER mail2rm:dummy\n    ```\n\n    Update and reload configuration:\n    ```bash\n    postmap /etc/postfix/recipient_access\n    systemctl reload postfix\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglatzor%2Fmail2rm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglatzor%2Fmail2rm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglatzor%2Fmail2rm/lists"}