GithubHelp home page GithubHelp logo

itsharex / adanos-mail-connector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mylxsw/adanos-mail-connector

1.0 0.0 0.0 80 KB

伪装成为 SMTP 服务器,将邮件转换为 Adanos 事件发送给 Adanos-alert Server

License: MIT License

Go 93.19% Makefile 6.81%

adanos-mail-connector's Introduction

adanos-mail-connector

伪装成为 SMTP 服务器,将邮件转换为 Adanos 事件发送给 Adanos-alert Server

type MailContent struct {
	pattern.Helpers
	ID      string            `json:"id"`
	Origin  string            `json:"origin"`
	Subject string            `json:"subject"`
	Body    string            `json:"body"`
	From    string            `json:"from"`
	To      []string          `json:"to"`
	Links   map[string]string `json:"links"`
}

事件转发规则,以 MailContent 对象为参数。事件转发规则配置文件格式为 YAML

  • 如果没有指定任何规则,则全部转发
  • 如果指定了规则,但是没有匹配,则丢弃事件,如果匹配规则,则转发
- name: 用于描述该规则
  expr: Origin == "192.168.1.212:25"
- name: 规则 2
  expr: any(To, {# matches "[email protected]"})

adanos-mail-connector's People

Contributors

mylxsw avatar

Stargazers

 avatar

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.