Comments (12)
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.
Yes this can be closed. thank you.
from falcosidekick.
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.
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.
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.
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.
It should be ok soon for the issue with templating, see #191
For O365, I need to dig more, I need to find a way to test.
from falcosidekick.
sounds good. Thanks for taking a look at this.
from falcosidekick.
@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.
Thanks, I built it and tested it. I received emails this time, tho they were blank due to the templating issue.
from falcosidekick.
@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.
@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)
- OIDC Authentication for Alertmanager and Loki HOT 5
- Got an error when using opsgenie HOT 1
- AWS Security Lake Parquet File Schema Format Issues upon AWS Opensearch Ingestion & AWS Athena Querying HOT 4
- Username configuration isn't picked up for Mattermost-Provider HOT 1
- systemd wget not pulling latest download HOT 2
- The log coming from the http client are multilines
- Initializing the index mapping for the elasticsearch's output HOT 6
- Use the InitClient instead of NewClient function in all the outputs
- Webhook headers added numberOfAlerts times HOT 4
- Teams: Add field ordering HOT 5
- Enhancement request for Falco policy report to include detailed metadata for policy reporter HOT 7
- Policy Report Creation Error: "<nil>" namespace not found HOT 2
- GCP Bucket output does not write anything to bucket HOT 2
- Same alert is coming thrice in slack channel HOT 1
- Can't push to OVHcloud Object Storage S3 bucket - endpoint not taken in account HOT 2
- Error on Telegram API: Maximum message length HOT 3
- I was not able to override Content-Type header HOT 1
- Add AWS Security Hub HOT 1
- docs: adding Apache 2.0 license
- How to add a condition with "not contains" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from falcosidekick.