tuxgasy / docker-dolibarr

Docker image for Dolibarr with auto installer on first boot
https://hub.docker.com/r/tuxgasy/dolibarr/
GNU General Public License v3.0
128 stars 92 forks source link

[MAIL] sendmail is not installed #152

Open donowr opened 4 months ago

donowr commented 4 months ago

Good morning,

For the emails to work I have to install and then manually start sendmail with:

apt-get update && apt-get install -y sendmail && service sendmail start

Do you have another solution?

Thanks

benvia commented 3 months ago

You can use any SMTP account to send e-mail or you can use transactional e-mail services (Sendgrid, Mailgun, ...). Dolibarr is ready to send e-mail using SMTP

This is the best solutions to send valid e-mail (DKIM, SPF, DMARC), which is required to avoid being considered as SPAM.

donowr commented 1 month ago

Thank you for your message.

It is a shame that we have to configure the SMTP messaging environment in development. There is an auto_install option, is it not possible to configure the docker environment to be able to use native php sending lorsqu'elle est activé?

For information, I used a module called SMTP+ to manage the emails of the entity's different users.

benvia commented 1 month ago

The native PHP mail() function depends on the sendmail command provided by an SMTP service installed locally like Postfix.

The rules for container is 1 container = 1 service. In the present case the service is Apache. Installing Postfix in the same container break this rule.