Switch davmail to O365Manual, update README instructions

This commit is contained in:
Evie Litherland-Smith 2023-10-08 15:19:24 +01:00
parent 1ccca63c67
commit d32d6cb5d8
2 changed files with 8 additions and 8 deletions

View file

@ -23,10 +23,9 @@ Docker source: [[https://hub.docker.com/r/shenxn/protonmail-bridge][Docker]] / [
To initialise: To initialise:
#+begin_src bash #+begin_src bash
# Stop systemd service if already running systemctl --user stop protonmail-bridge.service \
systemctl --user stop protonmail-bridge.service && podman run --rm -it -v protonmail:/root shenxn/protonmail-bridge init \
# Log in to protonmail-bridge --cli && systemctl --user start protonmail-bridge.service
podman run --rm -it -v protonmail:/root shenxn/protonmail-bridge init
#+end_src #+end_src
and follow normal login system for cli. and follow normal login system for cli.
@ -51,10 +50,11 @@ Register app-password with gnome-keyring:
secret-tool store --label="UKAEA mail mbsync" email evie.litherland-smith@ukaea.uk secret-tool store --label="UKAEA mail mbsync" email evie.litherland-smith@ukaea.uk
#+end_src #+end_src
*** Configuration *** Configuration
Example .davmail.properties needs copying to home directory, make rule can handle this. On first run (or if token expires), stop systemd service and run manually to complete manual auth. Token will stay valid for a little while (no idea how long specifically).
Will need to restart systemd service after copying to pick up new settings
#+begin_src bash #+begin_src bash
systemctl --user restart davmail.service systemctl --user stop davmail.service \
&& nix run nixpkgs#davmail -- -notray ~/.davmail.properties \
&& systemctl --user start davmail.service
#+end_src #+end_src
* Vdirsyncer * Vdirsyncer
** Password ** Password

View file

@ -1,5 +1,5 @@
davmail.server=true davmail.server=true
davmail.mode=O365Interactive davmail.mode=O365Manual
davmail.url=https://outlook.office365.com/EWS/Exchange.asmx davmail.url=https://outlook.office365.com/EWS/Exchange.asmx
davmail.imapPort=1144 davmail.imapPort=1144
davmail.smtpPort=1026 davmail.smtpPort=1026