tiredofit / docker-freescout

Dockerized web based help desk and shared inbox
MIT License
222 stars 92 forks source link

Enable the SMTP configuration in the docker-compose or environment variables? #150

Open dacrudg opened 11 months ago

dacrudg commented 11 months ago

Is there anyway to enable the SMTP configuration in the docker-compose or environment variables, configuration, anything when running this docker image?

Right now I have to login to freescout after, goto settings, then configure SMTP to connect to my mail server. Looking for a SMTP_HOST, SMTP_USER, SMTP_PASSWORD, type settings. Thanks

dacrudg commented 11 months ago

Filling out SMTP_HOST, SMTP_USER, SMTP_PASS, etc. On startup the logs say:

2023-10-06.16:41:07 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'mail.testhost.com'

But nothing is set when I goto the webGUI and check the mail settings for SMTP. Nothing gets set in the options table either:

select * from options;

tiredofit commented 11 months ago

The SMTP commands are actually for PHP configuration, not for freescout. You could use the options within freescout to use the php mail() function, but at this time you are better off continuing entering your SMTP details manually per mailbox.

dacrudg commented 11 months ago

The SMTP commands are actually for PHP configuration, not for freescout. You could use the options within freescout to use the php mail() function, but at this time you are better off continuing entering your SMTP details manually per mailbox.

Is there anyway to generate the encrypted smtp password on the command line? Then I could insert it into the 'options' database table along with the user, host, etc. Thanks

tiredofit commented 11 months ago

I think you would want to request that as a feature to the Freescout developers to be added as an artisan:freescout command. I do know that the encryption relies on the APP_KEY variable, but not much more to be honest. Perhaps a dive through the laravel docs also may help?