[GH-ISSUE #358] [FeatureREQ] BREVO Api instead of SMTP #236

Closed
opened 2026-03-15 13:22:02 +03:00 by kerem · 3 comments
Owner

Originally created by @plexmaniax on GitHub (Sep 4, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/358

Today I configured a testserver with mailpit as systemd service. For the releasing feature I added the smtp details from BREVO. 

[Unit]
Description=Mailpit
After=network.target

[Service]
Type=simple
Restart=always
RestartSec=30

Environment=MP_DATABASE=/home/www-data/bin/mailpit.db
Environment=MP_LOG_FILE=/home/www-data/bin/mailpit.log
Environment=MP_UI_AUTH=USER:PASS

Environment=MP_SMTP_RELAY_HOST=smtp-relay.brevo.com
Environment=MP_SMTP_RELAY_PORT=587
Environment=MP_SMTP_RELAY_STARTTLS=true
Environment=MP_SMTP_RELAY_AUTH=login
Environment=MP_SMTP_RELAY_USERNAME=mailaddress
Environment=MP_SMTP_RELAY_PASSWORD="PASSWORD"

ExecStart=/home/www-data/bin/mailpit

[Install]
WantedBy=default.target

It was very hard to get the right config, so I think it would be much easier to use the Brevo API instead.

https://developers.brevo.com/docs/getting-started

Maybe you could think about and give me some response?

Best Regards
Maik

Originally created by @plexmaniax on GitHub (Sep 4, 2024). Original GitHub issue: https://github.com/axllent/mailpit/issues/358 Today I configured a testserver with mailpit as systemd service. For the releasing feature I added the smtp details from BREVO.  [Unit] Description=Mailpit After=network.target [Service] Type=simple Restart=always RestartSec=30 Environment=MP_DATABASE=/home/www-data/bin/mailpit.db Environment=MP_LOG_FILE=/home/www-data/bin/mailpit.log Environment=MP_UI_AUTH=USER:PASS Environment=MP_SMTP_RELAY_HOST=smtp-relay.brevo.com Environment=MP_SMTP_RELAY_PORT=587 Environment=MP_SMTP_RELAY_STARTTLS=true Environment=MP_SMTP_RELAY_AUTH=login Environment=MP_SMTP_RELAY_USERNAME=mailaddress Environment=MP_SMTP_RELAY_PASSWORD="PASSWORD" ExecStart=/home/www-data/bin/mailpit [Install] WantedBy=default.target It was very hard to get the right config, so I think it would be much easier to use the Brevo API instead. https://developers.brevo.com/docs/getting-started Maybe you could think about and give me some response? Best Regards Maik
kerem closed this issue 2026-03-15 13:22:07 +03:00
Author
Owner

@axllent commented on GitHub (Sep 5, 2024):

Hi @plexmaniax. I am curious as to what part you found was "very hard" to get the right config?

Whilst I totally understand your request, I cannot even begin to consider implementing any custom relay API integrations in Mailpit as there are literally hundreds of different APIs used to send email via different services, and each service works differently. Say for example I added integration with Brevo, the next user would want integration with AWS SES, the next with Sendgrid... Mailgun... Mailchannels etc. I would end up having to both create and maintain so many custom APIs, when in actual fact they all support the default email standard: SMTP.

<!-- gh-comment-id:2330632394 --> @axllent commented on GitHub (Sep 5, 2024): Hi @plexmaniax. I am curious as to what part you found was "very hard" to get the right config? Whilst I totally understand your request, I cannot even begin to consider implementing any custom relay API integrations in Mailpit as there are literally hundreds of different APIs used to send email via different services, and each service works differently. Say for example I added integration with Brevo, the next user would want integration with AWS SES, the next with Sendgrid... Mailgun... Mailchannels etc. I would end up having to both create and maintain so many custom APIs, when in actual fact they all support the default email standard: SMTP.
Author
Owner

@plexmaniax commented on GitHub (Sep 5, 2024):

Hi @axllent

Only the systemd Part was very hard ;) I struggeld by adding all the ens. My solution was to reorder them, as shown above.

You're right by adding brevo you open pandoras box. I think a was a little bit frustrated about the task and wanted a handy solution. Please close that issue.

Thanks for your reply and your hard work

Greetings from Switzerland

<!-- gh-comment-id:2330663143 --> @plexmaniax commented on GitHub (Sep 5, 2024): Hi @axllent Only the systemd Part was very hard ;) I struggeld by adding all the ens. My solution was to reorder them, as shown above. You're right by adding brevo you open pandoras box. I think a was a little bit frustrated about the task and wanted a handy solution. Please close that issue. Thanks for your reply and your hard work Greetings from Switzerland
Author
Owner

@axllent commented on GitHub (Sep 5, 2024):

I understand. Do you realise that you could also just provide a config file for the SMTP details instead of setting them all via the environment? You would just need to modify your ExecStart=/home/www-data/bin/mailpit --smtp-relay-config <path-to-config>?

<!-- gh-comment-id:2330668748 --> @axllent commented on GitHub (Sep 5, 2024): I understand. Do you realise that you could also just provide a [config file](https://mailpit.axllent.org/docs/configuration/smtp-relay/) for the SMTP details **instead** of setting them all via the environment? You would just need to modify your `ExecStart=/home/www-data/bin/mailpit --smtp-relay-config <path-to-config>`?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#236
No description provided.