{"id":22045267,"url":"https://github.com/nigelhorne/cmilter","last_synced_at":"2026-02-25T08:34:13.274Z","repository":{"id":4402676,"uuid":"5539919","full_name":"nigelhorne/cmilter","owner":"nigelhorne","description":"A mail filter to block emails from countries from which you don't wish to receive e-mails","archived":false,"fork":false,"pushed_at":"2025-11-06T02:21:31.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-06T04:12:14.670Z","etag":null,"topics":["milter","perl","perl5","sendmail","spam","spam-filtering"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nigelhorne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-08-24T12:20:12.000Z","updated_at":"2025-11-06T02:21:34.000Z","dependencies_parsed_at":"2025-10-11T10:31:15.650Z","dependency_job_id":"476ea0eb-181f-4471-b6a7-b43195b8fecb","html_url":"https://github.com/nigelhorne/cmilter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nigelhorne/cmilter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2Fcmilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2Fcmilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2Fcmilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2Fcmilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nigelhorne","download_url":"https://codeload.github.com/nigelhorne/cmilter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2Fcmilter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29815022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"last_error":"SSL_read: 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":["milter","perl","perl5","sendmail","spam","spam-filtering"],"created_at":"2024-11-30T13:12:28.323Z","updated_at":"2026-02-25T08:34:13.248Z","avatar_url":"https://github.com/nigelhorne.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"cmilter\n=======\n\nA mail milter to prevent e-mails from countries from which you don't wish to\nreceive e-mails.\nIt uses a combination of DNS resolution,\nGeoIP databases,\nand Whois lookups to determine the sender's country and applies a blacklist to block certain countries.\n\nBefore installing:\n\n* modify the blacklist hash table in the source code\n* install dependencies\n\n        apt-get install libgeoip-dev\n    or\n        yum install perl-IPC-System-Simple perl-autodie perl-Data-Validate-IP\n        yum install perl-Geo-IP perl-Net-Whois-IP perl-CHI\n\n* choose your caching algorithm (look for $cache = in the source code)\n* Install Sendmail::PMilter from CPAN, the other needed modules will be installed automatically\n\nTo install, simply put this script into /usr/local/etc/cmilter\n\nPut this into /etc/mail/sendmail.mc:\n\n    INPUT_MAIL_FILTER(`cmilter', `S=local:/var/run/cmilter, F=T, T=S:4m;R:4m')dnl\n\nAnd run\n\n    service sendmail restart\n\nIf you are using systemd, copy and paste this content into\n/etc/systemd/system/cmilter.service\n\n    [Unit]\n    Description=Block e-mail by country\n    After=network.target\n\n    [Service]\n    ExecStart=/usr/local/etc/cmilter local:/var/run/cmilter\n    KillMode=process\n    Restart=on-failure\n\n    [Install]\n    WantedBy=multi-user.target\n\nThen run\n\n    systemctl daemon-reload\n    systemctl enable cmilter.service\n    systemctl start cmilter.service\n\nIf you are not using systemd, put these into /etc/rc.local:\n\n    rm -f /var/run/cmilter\n    /usr/local/etc/cmilter local:/var/run/cmilter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelhorne%2Fcmilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnigelhorne%2Fcmilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelhorne%2Fcmilter/lists"}