Skip to content

Using phpmail() for emailings #100

Description

@Liammer

Hi there!
I'm wondering how to configure Dolibarr with Docker to send emailings with phpmail() instead of SMTP.
With ma emails' provider I have a limit of 100/hour/account... but when I send emailings, there's about 500. That's why I used sendmail (before installing Dolibarr with Docker).
Since I'm with Docker I don't know how to configure sendmail.
Here is my Dockerfile:

`FROM dolibarr/dolibarr:22.0.4
RUN apt-get update && apt-get install -y postfix libsasl2-modules &&
apt-get clean

RUN sed -i 's/myhostname = localhost.home/myhostname = myserver.com/g' /etc/postfix/main.cf
RUN echo "myorigin = myserver.com" >> /etc/postfix/main.cf
RUN sed -i 's/inet_interfaces = all/inet_interfaces = loopback-only/g' /etc/postfix/main.cf
RUN sed -i 's/inet_protocols = all/inet_protocols = ipv4/g' /etc/postfix/main.cf

RUN echo "sendmail_from = postmaster@myserver.com" >> /usr/local/etc/php/php.ini

RUN echo '#!/bin/bash\nservice postfix start\nexec "$@"' > /entrypoint-postfix.sh &&
chmod +x /entrypoint-postfix.sh
ENTRYPOINT ["/entrypoint-postfix.sh"]
CMD ["apache2-foreground"]`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions