From 40e6b17ea1c1d17c901782d25fbdf72107083c5a Mon Sep 17 00:00:00 2001 From: shayaknyc Date: Tue, 14 Jun 2022 11:57:56 -0400 Subject: [PATCH] Added additional steps to configure mailer in docker container --- Setup Mailserver.md => Setup-Mailserver.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) rename Setup Mailserver.md => Setup-Mailserver.md (85%) diff --git a/Setup Mailserver.md b/Setup-Mailserver.md similarity index 85% rename from Setup Mailserver.md rename to Setup-Mailserver.md index 6cde7d6..bc26666 100644 --- a/Setup Mailserver.md +++ b/Setup-Mailserver.md @@ -79,3 +79,15 @@ Go to the Google Developer Console and create a new app. https://console.develop ## Allowed domains for registering If public registration is enabled you can limit the domains of e-mail addresses which are allowed for registering. Per default all domains (\*.\*) are allowed. You can use "\*" for limiting to any number of characters and "?" for limiting to exact one character. If you want to limit the domains, please make sure to delete/edit the "\*.\*" entry. Entries can be deleted by clicking on the trashcan symbol and edited by clicking on the entry. + +## Extra steps for Docker Container +1. Enter shell of the docker container +2. Inside docker app: get PID of current calibre app: `ps -C "python3 /app/calibre-web/cps.py" -o pid=` +3. Run the following command to kill the current calibre-web and restart it to get realtime output in terminal: `kill [PID FROM STEP 2] && python3 /app/calibre-web/cps.py &` +4. Click on "Setup gmail account as email server" button in Calibre-Web. +5. Copy link in terminal and open in any browser. Follow prompts and Allow access. +6. Copy the link from browser (will fail) and paste in docker container: `curl "LOCALHOST LINK FROM BROWSER"` Keep the double quotes around the link. +7. Exit container shell and restart container, then test email send. Should work. + +Src: https://github.com/janeczku/calibre-web/issues/2254#issuecomment-1100838560 +