uchicom / smtp

SMTPサーバ.
Apache License 2.0
0 stars 0 forks source link

smtp

Maven Central License Java CI with Maven

smtp server

mvn

サーバ起動

mvn exec:java "-Dexec.mainClass=com.uchicom.smtp.Main"

mvn exec:java "-Dexec.mainClass=com.uchicom.smtp.Main" -Dexec.args="-port 8025"

mvn exec:java "-Dexec.mainClass=com.uchicom.smtp.Main" -Dexec.args="-port 8025 -keyStoreName keystore -keyStorePass changeit"
mvn exec:java "-Dexec.mainClass=com.uchicom.smtp.TestMain"

keytool

keytool -genkey -alias smtp -keyalg RSA -keystore keystore -storepass changeit

.webhook.yml

send:
    method: post
    url: https://dokosoko/test/api/webhook/mail
    header:
    Content-Type: application/json
    Webhook-Token: smtp_webhook_0123456789
    body:
    template: {title:"${subject}", content:"${content:1}"} // :1を指定するとmatch
    parameter:
        subject:
        extract: subject
        match: ^abc$
        content: ^abc(def)gh$ // 括弧を
    query:
    ... // bodyと同じ形式
detection: // 配列はorで
    - subject: and 条件
    content:
    from: dokosoko@mail.com
    to: to@dokosoko.com
    cc:
    - subject:
    content:
    from:
    to:
    cc: