espocrm / espocrm-docker

Official Docker Image for EspoCRM
https://hub.docker.com/r/espocrm/espocrm
GNU Affero General Public License v3.0
56 stars 34 forks source link

SMTP configuration in docker-compose environment ? #30

Closed dac11011 closed 3 months ago

dac11011 commented 7 months ago

It would be nice if we could add the outgoing mail / SMTP configuration in the environment for the docker-compose. Something like SMTP_HOST, SMTP_USER, SMTP_PASS, so this can be set here instead of having to configure it manually in the webgui.

Same thing with LDAP settings.

arkadiyasuratov commented 7 months ago

You can set values for string, int, and bool types using the ESPOCRM_CONFIG_ prefix. For example, the configuration parameter ldapUserFirstNameAttribute becomes ESPOCRM_CONFIG_LDAP_USER_FIRST_NAME_ATTRIBUTE: 'givenName', and smtpPort becomes ESPOCRM_CONFIG_SMTP_PORT: '587'.

dac11011 commented 7 months ago

Confirmed this is working. Thanks!

epthewizard commented 7 months ago

Confirmed this is working. Thanks!

I cannot get smtp outgoing to authenticate for the life of me. Whenever I try to send a test email I get an unknown error. Is there anything I can try to get it going? I mapped port 465 from the container to my host as well

arkadiyasuratov commented 7 months ago

You don't need port mapping. Are you using localhost or 127.0.0.1 as your SMTP host?

epthewizard commented 7 months ago

I figured it out, it was a stupid mistake. This is the best CRM I've tried self hosting btw, great work

arkadiyasuratov commented 7 months ago

I'm not the author, but I agree with you: best CRM all around.