SMTP extra options #128

Closed
opened 2026-02-04 17:06:26 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @sebastianlau on GitHub (Jul 9, 2016).

Currently swiftmailer tries to HELO as [::1] causing a rejection, it'd be good if server_name could be specified in .env which consequently runs $transport->setLocalDomain($server_name);

Additionally, settings for sender address and an email_base_url would be very useful to set in .env as emails are sent as BookStack mail@bookstackapp.com, and if a reverse proxy is in place the email url contains incorrect/internal links (e.g. http://localhost:8080/password/reset/......)

Originally created by @sebastianlau on GitHub (Jul 9, 2016). Currently swiftmailer tries to HELO as [::1] causing a rejection, it'd be good if server_name could be specified in .env which consequently runs $transport->setLocalDomain($server_name); Additionally, settings for sender address and an email_base_url would be very useful to set in .env as emails are sent as BookStack mail@bookstackapp.com, and if a reverse proxy is in place the email url contains incorrect/internal links (e.g. http://localhost:8080/password/reset/......)
OVERLORD added the 🐛 Bug label 2026-02-04 17:06:26 +03:00
Author
Owner

@armouredking commented on GitHub (Jul 9, 2016):

Part of that is #88 and a function of Laravel. Laravel does not inherently trust proxies. You need to add in an extra layer that BSA doesn't currently include if you want BSA behind a proxy. Then your email links will be correct.

@armouredking commented on GitHub (Jul 9, 2016): Part of that is #88 and a function of Laravel. Laravel does not inherently trust proxies. You need to add in an extra layer that BSA doesn't currently include if you want BSA behind a proxy. Then your email links will be correct.
Author
Owner

@ssddanbrown commented on GitHub (Jul 10, 2016):

Hi @sebastianlau, In the .env file you can customize the sender address by adding a MAIL_FROM entry, For example:

MAIL_FROM=bookstack@mydomain.com

I'll look into your other issues at somepoint soon.

@ssddanbrown commented on GitHub (Jul 10, 2016): Hi @sebastianlau, In the `.env` file you can customize the sender address by adding a `MAIL_FROM` entry, For example: ``` MAIL_FROM=bookstack@mydomain.com ``` I'll look into your other issues at somepoint soon.
Author
Owner

@ssddanbrown commented on GitHub (Dec 7, 2017):

Now closing this due to the current master branch code having configurable proxy settings.

@ssddanbrown commented on GitHub (Dec 7, 2017): Now closing this due to the current master branch code having configurable proxy settings.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#128