Please support STARTTLS email encryption #2388

Closed
opened 2026-02-05 03:54:52 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @mike12806 on GitHub (Sep 13, 2021).

Hi - as most email providers (with a secure setup, 2FA, etc.) require STARTTLS, I am unable to configure a bookstack email provider without getting an error that BookStack is not using STARTTLS (https://sendgrid.com/blog/what-is-starttls/)

Can you please add support for STARTTLS email encryption pattern?

Originally created by @mike12806 on GitHub (Sep 13, 2021). Hi - as most email providers (with a secure setup, 2FA, etc.) require STARTTLS, I am unable to configure a bookstack email provider without getting an error that BookStack is not using STARTTLS (https://sendgrid.com/blog/what-is-starttls/) Can you please add support for STARTTLS email encryption pattern?
Author
Owner

@mike12806 commented on GitHub (Sep 13, 2021):

image

@mike12806 commented on GitHub (Sep 13, 2021): ![image](https://user-images.githubusercontent.com/80599490/133013196-ac94dba2-6caa-4fa6-b0c2-4a993a7f5f39.png)
Author
Owner

@ssddanbrown commented on GitHub (Sep 13, 2021):

Hi @mike12806,
Are you using the following .env options at all?

MAIL_PORT=587
MAIL_ENCRYPTION=tls

If not, could you describe the ESP and configuration you're attempting to use here?

@ssddanbrown commented on GitHub (Sep 13, 2021): Hi @mike12806, Are you using the following `.env` options at all? ```bash MAIL_PORT=587 MAIL_ENCRYPTION=tls ``` If not, could you describe the ESP and configuration you're attempting to use here?
Author
Owner

@mike12806 commented on GitHub (Sep 13, 2021):

The above was with an Outlook.com email, but I'm also getting the same result with GMAIL (which i'd prefer to use anyways)

Here's my env variables in the docker stack (removed username, from name, password for security). I have 2FA on in my GMAIL account so i'm using an app-specific password for GMAIL

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_ENCRYPTION=tls
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM=
MAIL_FROM_NAME=BookStack

@mike12806 commented on GitHub (Sep 13, 2021): The above was with an Outlook.com email, but I'm also getting the same result with GMAIL (which i'd prefer to use anyways) Here's my env variables in the docker stack (removed username, from name, password for security). I have 2FA on in my GMAIL account so i'm using an app-specific password for GMAIL MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_ENCRYPTION=tls MAIL_USERNAME= MAIL_PASSWORD= MAIL_FROM= MAIL_FROM_NAME=BookStack
Author
Owner

@ssddanbrown commented on GitHub (Sep 13, 2021):

@mike12806 Would you be able to post a screenshot of the error you get from gmail, as you've done above for the outlook setup?

@ssddanbrown commented on GitHub (Sep 13, 2021): @mike12806 Would you be able to post a screenshot of the error you get from gmail, as you've done above for the outlook setup?
Author
Owner

@mike12806 commented on GitHub (Sep 13, 2021):

Ah - so just re-added GMAIL details and re-deployed with a new app specific password, and all seems to be working right now. Apologize for taking up your time!

@mike12806 commented on GitHub (Sep 13, 2021): Ah - so just re-added GMAIL details and re-deployed with a new app specific password, and all seems to be working right now. Apologize for taking up your time!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2388