{"id":13893498,"url":"https://github.com/ont/slacker","last_synced_at":"2026-01-17T01:03:05.817Z","repository":{"id":11503989,"uuid":"68206755","full_name":"ont/slacker","owner":"ont","description":"Simple smtp email server which redirects emails to slack.","archived":false,"fork":false,"pushed_at":"2024-07-06T00:46:14.000Z","size":41,"stargazers_count":34,"open_issues_count":7,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-24T22:32:12.458Z","etag":null,"topics":["cron","email","monit","mta","notifications","redirects-emails","slack","slack-channels"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ont.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-14T13:01:48.000Z","updated_at":"2024-08-22T15:48:06.000Z","dependencies_parsed_at":"2022-09-17T06:51:03.206Z","dependency_job_id":"48d3a084-96c6-408e-acf4-9fbf33f7729a","html_url":"https://github.com/ont/slacker","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ont/slacker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ont%2Fslacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ont%2Fslacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ont%2Fslacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ont%2Fslacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ont","download_url":"https://codeload.github.com/ont/slacker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ont%2Fslacker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28490936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"ssl_error","status_checked_at":"2026-01-17T00:43:11.982Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron","email","monit","mta","notifications","redirects-emails","slack","slack-channels"],"created_at":"2024-08-06T18:00:47.421Z","updated_at":"2026-01-17T01:03:05.777Z","avatar_url":"https://github.com/ont.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Slacker\n\nSlacker is simple email-to-slack gateway. It support basic rules for routing\nmessages to different slack channels from different bots.\n\nMain purpose of slacker is to redirect messages from old-school systems which doesn't\nsupport messaging other than email. For example cron and monit\n(https://mmonit.com/monit/) support only emails as the only system for\nnotifications.\n\n## Installation\n\nSlacker can be easily installed via docker:\n\n```bash\ndocker pull ontrif/slacker\n```\n\nThen run container with custom slacker `config.yml`:\n\n```bash\ndocker run \\\n    -d --restart=always \\\n    --name=slacker \\\n    -v /path/to/config.yml:/etc/slacker/config.yml \\\n    -p localhost:8025:8025 \\\n    ontrif/slacker\n```\nLast command will start SMTP server on `localhost:8025`\n\n## Config\n\nSlacker supports simple list of rules for configuring target slack channel, bot\nname and its avatar depending on email content.\n\nThere are two sections:\n  * default: this is default options for sending message to slack.\n  * rules: list of rules for matching email message against 'from', 'to' and/or 'subject'.\n\nEach rule in list tested in order. First matched rule is used to update\noptions values from 'default' section of config.\n\nExample `config.yml` for redirecting email to two channels: `#monit` and `#cron`:\n```yaml\n# default values for channel, bot name, avatar url, slack token and debug mode\ndefault:\n    channel: \"#general\"\n    username: \"slacker\"\n    icon_url: \"\"\n    slack_token: \"xoxb-00000000000-aaaaaaaaaaaaaaaaaaaaaaaa\"\n    debug: false\n\n\n# list of rules\nrules:\n    - name: \"Monit rule\"\n      from: \"monit@.*\"     # all emails from monit@localhost will match this rule\n\n      options:\n          username: \"monit\"\n          channel: \"#monit\"\n          icon_url: \"https://bitbucket.org/tildeslash/monit/avatar/128\"\n          debug: false\n\n\n    - name: \"Cron rule\"\n      from: \"root@localhost\"\n      subject: \"Cron.*\"    # cron email subject starts with \"Cron...\"\n\n      options:\n          username: \"cron\"\n          channel: \"#cron\"\n          icon_url: \"\"\n          debug: true    # will output full email with all X-headers\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Font%2Fslacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Font%2Fslacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Font%2Fslacker/lists"}