docker-freescout icon indicating copy to clipboard operation
docker-freescout copied to clipboard

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

Open dacrudg opened this issue 1 year ago • 4 comments

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 avatar Oct 06 '23 16:10 dacrudg

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;

dacrudg avatar Oct 06 '23 17:10 dacrudg

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.

tiredofit avatar Oct 09 '23 00:10 tiredofit

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

dacrudg avatar Oct 09 '23 11:10 dacrudg

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?

tiredofit avatar Oct 09 '23 15:10 tiredofit