{"id":21436753,"url":"https://github.com/modfin/brev","last_synced_at":"2026-04-02T14:55:58.294Z","repository":{"id":43353826,"uuid":"302395040","full_name":"modfin/brev","owner":"modfin","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-17T04:29:15.000Z","size":291,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T16:30:30.420Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/modfin.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}},"created_at":"2020-10-08T16:08:50.000Z","updated_at":"2025-04-17T04:29:12.000Z","dependencies_parsed_at":"2024-06-21T01:06:17.305Z","dependency_job_id":"0260e3af-7a5b-4514-bc47-b06c8a360557","html_url":"https://github.com/modfin/brev","commit_stats":null,"previous_names":["crholm/brev"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/modfin/brev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modfin%2Fbrev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modfin%2Fbrev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modfin%2Fbrev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modfin%2Fbrev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modfin","download_url":"https://codeload.github.com/modfin/brev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modfin%2Fbrev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31308459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"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":[],"created_at":"2024-11-23T00:14:58.507Z","updated_at":"2026-04-02T14:55:58.277Z","avatar_url":"https://github.com/modfin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brev\n**A cli that send email directly to the mx servers of the world**\n\n## Install\n```bash\ngo get github.com/modfin/brev/cmd/brev\ngo get github.com/modfin/brev/cmd/brevd\n```\n\n## Brevd Usage\nThe Brevd is server for transactional emails via http api.\n\n### Configure\n* Choose a host domain you are going to use for the brevd server, eg. `brev.cc`\n* Choose a client domain from which to send emails, eg. `example.com`\n* Find out what ip you are running the service on, eg `1.2.3.4`\n* Generate a dkim key-pair, eg `brev gen-dkim-keys --key-size=2048`. This generates two files. \n`dkim-private.pem` is loaded into `brevd` and `dkim-pub.dns.txt` which is put into a `TXT` record on\nthe client domain\n\n#### Host DNS Config\n\nAdd a `A` record for your server, eg `mx0.brev.cc` pointing to the ip, `1.2.3.4`\\\nShould result in the following\n```bash \ndig A mx0.brev.cc\n\n;; ANSWER SECTION:\nmx0.brev.cc.            260     IN      A       1.2.3.4\n```\n\nAdd a `MX` record for your server to for your domain, eg `brev.cc` pointing to the brevd server\\\nShould result in the following\n```bash \ndig MX brev.cc\n \n;; ANSWER SECTION:\nbrev.cc.                300     IN      MX      10 mx0.brev.cc.\n```\n\nAdd a SPF policy through `TXT` record for your domain, \neg `brev.cc` pointing to you brevd server, eg `v=spf1 mx -all`\\\nShould result in the following\n```bash \ndig TXT brev.cc \nbrev.cc.                300     IN      TXT     \"v=spf1 mx -all\"\n```\n\nFinally, set up PTR records through your ISP, eg 1.2.3.4 -\u003e mx0.brev.cc \n\n#### Client DNS Config\nSay you now want send your emails and have them come from `no-reply@example.com`\n\nAdd a SPF policy to `example.com` through `TXT` record pointing to the \n`brev.cc` domain, eg `v=spf1 include:brev.cc -all`\\\nShould result in the following\n```bash \ndig TXT example.com\n \n;; ANSWER SECTION:\nexample.com.              60      IN      TXT     \"v=spf1 include:brev.cc -all\"\n```\n\nAdd a DKIM public key to `example.com` by choosing a selector, eg `brev` and adding the \npublic key to `TXT` record at `brev._domainkey.example.com`\\\nShould result in the following\n```bash\ndig TXT brev._domainkey.example.com\n\n;; ANSWER SECTION:\nbrev._domainkey.example.com. 300  IN      TXT     \"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A....;\"\n```\n\n\n### Server config\nCreate a run script that configures the environment for you\n\n```bash \ncat ./run-brevd.sh\nexport BREV_HOSTNAME=mx0.brev.cc\nexport BREV_DB_URI=$(pwd)/brev.sqlite\n\nexport BREV_MX_DOMAIN=brev.cc\nexport BREV_MX_PORT=25\n\nexport BREV_DKIM_SELECTOR=brev\nexport BREV_DKIM_PRIVATE_KEY=./path/to/dkim-private.pem\nbrevd\n```\n\n\n\n\n\n## Brev Usage\nThe Brev cli is a small utility to send emails directly to a MX server\n```text\nNAME:\n   brev - a cli that send email directly to the mx servers\n\nUSAGE:\n   brev [global options] command [command options] [arguments...]\n\nCOMMANDS:\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --subject value     Set subject line\n   --from value        Set from email\n   --message-id value  set the message id\n   --to value          Set to email\n   --cc value          Set cc email\n   --bcc value         Set cc email\n   --text value        text content of the mail\n   --html value        html content of the mail\n   --attach value      path to file attachment\n   --help, -h          show help (default: false)\n```\n\n\n### Example\n\n```bash \nbrev --subject=\"An attachment\" \\\n        --to=\"someone@example.com\" \\\n        --cc=\"someone-else@example.com\" \\\n        --cc=\"someone-compleatly-different@example.com\" \\\n        --attach=\"/path/to/a.file\" \\\n        --text='The body of the email' \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodfin%2Fbrev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodfin%2Fbrev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodfin%2Fbrev/lists"}