Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Relay Settings Configuration in MISP #165

Open
Diogo-Rego opened this issue Oct 6, 2024 · 3 comments
Open

Email Relay Settings Configuration in MISP #165

Diogo-Rego opened this issue Oct 6, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Diogo-Rego
Copy link
Contributor

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

@ostefano
Copy link
Collaborator

ostefano commented Oct 6, 2024

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.

@Diogo-Rego
Copy link
Contributor Author

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?

@ostefano
Copy link
Collaborator

ostefano commented Oct 6, 2024

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 ostefano added the question Further information is requested label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants