GithubHelp home page GithubHelp logo

Comments (12)

Issif avatar Issif commented on June 29, 2024 1

Ok I see. Fortunatly, the package I used handles both methods for authentication. I'll create a dedicated output for O365 and see asap for the templating issue.

Thanks. 👍

from falcosidekick.

Bfoster-melrok avatar Bfoster-melrok commented on June 29, 2024 1

Yes this can be closed. thank you.

from falcosidekick.

Issif avatar Issif commented on June 29, 2024

Hello @Bfoster-melrok,

I developped this output for a while now. I tested with AWS SES and I guess it worked with SMTP with SSL. Have you tried to use port 587 with O365?

I don't have an O365 but I can try with a Gmail account.

Thanks for your issue. We'll find out how to help you and make falcosidekick a better product.

from falcosidekick.

Bfoster-melrok avatar Bfoster-melrok commented on June 29, 2024

Yes, I set:
SMTP_HOSTPORT=smtp.office365.com:587
SMTP_MINIMUMPRIORITY=warning
SMTP_FROM=valid email
SMTP_USER = valid email
SMTP_PASSWORD = matching valid password
SMTP_TO = valid email

but I am not seeing any emails after running the event generator, while seeing them on other outputs.
In the logs I see:
2021/02/14 08:00:41 [ERROR] : SMTP - template: html:3:10: executing "html" at <eq .Priority "Emergency">: error calling eq: incompatible types for comparison
2021/02/14 08:00:41 [DEBUG] : SMTP payload :
2021/02/14 08:00:51 [ERROR] : SMTP - Unrecognized authentication type [BYAPR08CA0031.namprd08.prod.outlook.com]

from falcosidekick.

Issif avatar Issif commented on June 29, 2024

The first issue is not related to TLS but templating, I'll take a look. Thanks you.

For your TLS issue, I noticed in several answers on web that people was only able to send emails to smtp.office365.com:587, can you give it a try?

from falcosidekick.

Bfoster-melrok avatar Bfoster-melrok commented on June 29, 2024

I am using that host and port already.

I think it has something to do with this:
https://support.microsoft.com/en-us/office/outlook-com-no-longer-supports-auth-plain-authentication-07f7d5e9-1697-465f-84d2-4513d4ff0145?ui=en-us&rs=en-us&ad=us

https://stackoverflow.com/questions/42305763/connecting-to-exchange-with-golang

from falcosidekick.

Issif avatar Issif commented on June 29, 2024

@Bfoster-melrok

It should be ok soon for the issue with templating, see #191

image

For O365, I need to dig more, I need to find a way to test.

from falcosidekick.

Bfoster-melrok avatar Bfoster-melrok commented on June 29, 2024

sounds good. Thanks for taking a look at this.

from falcosidekick.

Issif avatar Issif commented on June 29, 2024

@Bfoster-melrok I started a branch for fixing your issue. Can you build or do you want a docker image?

I added an option for SMTP output: autmethod which can be plain (default) or login (for O365)

https://github.com/falcosecurity/falcosidekick/tree/auth-smtp

from falcosidekick.

Bfoster-melrok avatar Bfoster-melrok commented on June 29, 2024

Thanks, I built it and tested it. I received emails this time, tho they were blank due to the templating issue.

from falcosidekick.

Issif avatar Issif commented on June 29, 2024

@Bfoster-melrok it should be ok now, I rebased on master for upgrade of Go version and I backported the fix for template.

from falcosidekick.

Issif avatar Issif commented on June 29, 2024

@Bfoster-melrok without any answer from you, I'll consider this issue as fixed and I'll close it soon.

from falcosidekick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.