misp-docker icon indicating copy to clipboard operation
misp-docker copied to clipboard

Email Relay Settings Configuration in MISP

Open Diogo-Rego opened this issue 1 year ago • 3 comments

It is possible to add this configuration in variables?

  1. Configure email relay settings in config.php for an external SMTP server.

  2. Set up the server parameters as required:

    • SMTP Host: smtp.example.com
    • Port: 587
    • TLS enabled: true
    • Authentication: required
  3. Send a test email from MISP (either by triggering an event or using the test email option).

it's like this MISP/email.php

Diogo-Rego avatar Oct 06 '24 13:10 Diogo-Rego

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.

ostefano avatar Oct 06 '24 13:10 ostefano

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?

Diogo-Rego avatar Oct 06 '24 13:10 Diogo-Rego

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.

ostefano avatar Oct 06 '24 14:10 ostefano