Email Relay Settings Configuration in MISP
It is possible to add this configuration in variables?
-
Configure email relay settings in
config.phpfor an external SMTP server. -
Set up the server parameters as required:
- SMTP Host:
smtp.example.com - Port:
587 - TLS enabled:
true - Authentication: required
- SMTP Host:
-
Send a test email from MISP (either by triggering an event or using the test email option).
it's like this MISP/email.php
I would prefer not.
Ideally you should always rely on mail and configure it as a relay if needed, so changing email.php should never be done.
I understand your concern. The idea was to avoid constantly modifying the MISP codebase and to enable more flexibility by using environment variables, making it easier to handle deployments with different SMTP environments.
I'd like to explore your recommendation on configuring mail to work as a relay further. Do you have any documentation or configuration examples that you could share so we can evaluate this alternative?
This is how we configured internally when using Office 365.
misp_smarthost_address: "smtp.office365.com"
misp_smarthost_port: 587
misp_smarthost_user: "sender@domain"
misp_smarthost_aliases: "*.office365.com;*.office.com"
To be fair, I had to look at the sources here https://gitlab.com/ix.ai/smtp/ to make it work.