{"id":16549838,"url":"https://github.com/shaftoe/ansible-postfix","last_synced_at":"2026-04-18T04:01:40.504Z","repository":{"id":137704721,"uuid":"262260284","full_name":"shaftoe/ansible-postfix","owner":"shaftoe","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-20T17:53:22.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T13:32:49.346Z","etag":null,"topics":["ansible-role","debian","email","postfix"],"latest_commit_sha":null,"homepage":null,"language":null,"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/shaftoe.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}},"created_at":"2020-05-08T07:48:46.000Z","updated_at":"2020-05-20T17:53:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d99a9d1-c01f-4bd6-98c5-4332c5a070d2","html_url":"https://github.com/shaftoe/ansible-postfix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shaftoe/ansible-postfix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fansible-postfix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fansible-postfix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fansible-postfix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fansible-postfix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaftoe","download_url":"https://codeload.github.com/shaftoe/ansible-postfix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fansible-postfix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ansible-role","debian","email","postfix"],"created_at":"2024-10-11T19:31:40.045Z","updated_at":"2026-04-18T04:01:40.444Z","avatar_url":"https://github.com/shaftoe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Postfix role\n\nAn Ansible role that takes care of installing Postfix MTA on the destination and relay **every** email sent locally to `default_email` address.\n\nNOTE: Postfix `inet_interfaces` is set to `loopback-only` so it should be pretty safe (i.e. no open relay 😆)\n\n## Features\n\n- deliver every email sent internally (for example by *cron daemon*) to the email address set in `default_mail` variable\n- perform some address rewrite: If the long form host address (`FQDN`) is something like `myhost01.mydomain.com`, then `MAIL FROM` (envelop AND `From:` headers) will be rewritten into `myhost01@domain.com` while `To:` and `Reply-to:` headers will be rewritten to `default_email`\n- if the support for an authenticated SASL relay host is enabled, proxy all the messages through it\n\n## Configuration\n\nRemember to define the mandatory `default_email` variable somewhere (personally I keep it in my `inventory` file), every email sent from the system (e.g. from *cron daemon*) will be forwareded to this address, and \"Reply-to\"\n\nThe role also provides support for an authenticated SASL SMTP relay host, to enable you need to also define those variables:\n\n- `postfix_relayhost_fqdn`\n- `postfix_relayhost_port`\n- `postfix_relayhost_username`\n- `postfix_relayhost_password`\n\nI'm using MailJet as a relay service and [their documentation][mailjet-docs] as a reference.\n\n## Supported platforms\n\nTested on **Debian Buster** but should work allright on any *Debian-based* system\n\n[mailjet-docs]: \u003chttps://dev.mailjet.com/smtp-relay/configuration/#postfix-installation\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaftoe%2Fansible-postfix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaftoe%2Fansible-postfix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaftoe%2Fansible-postfix/lists"}