Sisito API server.
This project is no longer maintained.
$ sisito-api --help
Usage of ./sisito-api:
-config string
config file path (default "sisito-api.toml")
-version
show version
cd docker
docker-compose build
docker-compose up
$ curl -u foo:bar localhost:8080/blacklist
{"recipients":["[email protected]"]}
$ curl -u foo:bar localhost:8080/blacklist
{"recipients":["[email protected]"]}
$ curl -u foo:bar localhost:8080/listed?[email protected]
{"listed":true}
$ curl -s -u foo:bar localhost:8080/recent?[email protected] | jq .
{
"addresser": "[email protected]",
"alias": "[email protected]",
"created_at": "2017-03-01T00:00:00Z",
"deliverystatus": "5.0.0",
"destination": "example.com",
"diagnosticcode": "550 Unknown user [email protected]",
"digest": "767e74eab7081c41e0b83630511139d130249666",
"lhost": "mail.sender.example.com",
"messageid": "foo_example_com_message_id",
"reason": "filtered",
"recipient": "[email protected]",
"rhost": "mail.example.com",
"senderdomain": "sender.example.com",
"smtpagent": "MTA::Postfix",
"smtpcommand": "DATA",
"softbounce": true,
"subject": "how are you?",
"timestamp": "2017-03-01T00:00:00Z",
"timezoneoffset": "+0900",
"updated_at": "2017-03-01T00:00:00Z",
"whitelisted": false
}