{"id":19635876,"url":"https://github.com/tozd/docker-postfix","last_synced_at":"2025-04-28T08:31:27.636Z","repository":{"id":34698449,"uuid":"38673809","full_name":"tozd/docker-postfix","owner":"tozd","description":"Postfix Docker image. Read-only mirror of https://gitlab.com/tozd/docker/postfix","archived":false,"fork":false,"pushed_at":"2023-11-15T18:59:03.000Z","size":45,"stargazers_count":23,"open_issues_count":0,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-17T20:13:42.101Z","etag":null,"topics":["docker","docker-image","postfix"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"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/tozd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["plast8","mitar"]}},"created_at":"2015-07-07T08:17:33.000Z","updated_at":"2021-10-28T22:55:05.000Z","dependencies_parsed_at":"2023-11-15T19:52:05.382Z","dependency_job_id":null,"html_url":"https://github.com/tozd/docker-postfix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-postfix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-postfix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-postfix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-postfix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tozd","download_url":"https://codeload.github.com/tozd/docker-postfix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224102295,"owners_count":17256137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","docker-image","postfix"],"created_at":"2024-11-11T12:27:23.398Z","updated_at":"2025-04-28T08:31:27.622Z","avatar_url":"https://github.com/tozd.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/plast8","https://github.com/sponsors/mitar"],"categories":[],"sub_categories":[],"readme":"# tozd/postfix\n\n\u003chttps://gitlab.com/tozd/docker/postfix\u003e\n\nAvailable as:\n\n- [`tozd/postfix`](https://hub.docker.com/r/tozd/postfix)\n- [`registry.gitlab.com/tozd/docker/postfix`](https://gitlab.com/tozd/docker/postfix/container_registry)\n\n## Image inheritance\n\n[`tozd/base`](https://gitlab.com/tozd/docker/base) ← [`tozd/dinit`](https://gitlab.com/tozd/docker/dinit) ← `tozd/postfix`\n\n## Tags\n\n- `ubuntu-trusty`: Postfix 2.11.0\n- `ubuntu-xenial`: Postfix 3.1.0\n- `ubuntu-bionic`: Postfix 3.3.0\n- `ubuntu-focal`: Postfix 3.4.13\n- `ubuntu-jammy`: Postfix 3.6.4\n- `alpine-38`: Postfix 3.3.0\n- `alpine-310`: Postfix 3.4.7\n- `alpine-312`: Postfix 3.5.16\n- `alpine-314`: Postfix 3.6.4\n- `alpine-316`: Postfix 3.7.6\n\n## Alpine Linux image notes\n\n- [Alpine Linux does not support `hash` or `btree` lookup tables](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0#Deprecation_of_Berkeley_DB_.28BDB.29) \n- Use `lmdb` type databases instead for example:\n  - `virtual_alias_maps = lmdb:/etc/postfix/virtual`\n\n## Volumes\n\n- `/var/log/postfix`: Log files when `LOG_TO_STDOUT` is not set to `1`. Logs are **not** rotated on versions older than Postfix 3.4.\n- `/var/spool/postfix`: Persist this volume to not lose state.\n\n## Variables\n\n- `MAILNAME`: `/etc/mailname` and [`myhostname`](https://www.postfix.org/postconf.5.html#myhostname) Postfix configuration option are set to this value.\n- `MY_NETWORKS`: [`mynetworks`](https://www.postfix.org/postconf.5.html#mynetworks)\n  Postfix configuration option is set to this value. Default is `172.17.0.0/16 127.0.0.0/8`.\n- `MY_DESTINATION`: [`mydestination`](https://www.postfix.org/postconf.5.html#mynetworks)\n  Postfix configuration option is set to this value.\n  If you are not extending this Docker image to also deliver local (inside the container)\n  e-mails then you generally do not have to change the default.\n  Default is `localhost.localdomain, localhost`.\n- `ROOT_ALIAS`: E-mail to which local (inside the container) e-mails to `root` user\n  are send.\n  If you are not extending this Docker image you generally do not have to set this\n  as there are no e-mails send to the `root` user from inside the container.\n- `LOG_TO_STDOUT`: If set to `1` output logs to stdout (retrievable using `docker logs`) instead of log volumes. Available for Postfix 3.4 and newer.\n\n## Ports\n\n- `25/tcp`: SMTP port.\n- `465/tcp`: SMTPS port.\n- `587/tcp`: Mail submission port.\n\n## Description\n\nDocker image providing [Postfix](http://www.postfix.org/).\n\nYou should make sure you mount spool volume (`/var/spool/postfix`) so that you do not\nlose e-mail data when you are recreating a container. If a volume is empty, image\nwill initialize it at the first startup.\n\nWhen `LOG_TO_STDOUT` is set to `1`, Docker image logs output to stdout and stderr. All stdout output is JSON.\n\nBy default it is configured for sending outbound e-mails. Otherwise, you can extend\nthe image and configure it differently. See these examples:\n\n- [cloyne/postfix](https://github.com/cloyne/docker-postfix), which extends it to integrate\n  it with [tozd/sympa](https://gitlab.com/tozd/docker/sympa) mailing lists service\n- [tozd/mail](https://gitlab.com/tozd/docker/mail), which extends it to provide a full-fledged\n  e-mail service with virtual users\n\nRemember that for the best e-mail delivery external IP should match the hostname it resolves to.\nYou might find [tozd/external-ip](https://gitlab.com/tozd/docker/external-ip) Docker image useful\nfor this.\n\nIf you are extending this image, you can add two scripts which will be run at a container startup:\n\n- `/etc/service/postfix/run.config` – to prepare any custom configuration, before anything else is run\n- `/etc/service/postfix/run.initialization` – will be run after the container is initialized, but before the\n  Postfix daemon is run\n\nIf you just need programs inside your Docker images to send e-mails using `sendmail` program\nlocally, consider using [tozd/mailer](https://gitlab.com/tozd/docker/mailer) or\n[tozd/nginx-mailer](https://gitlab.com/tozd/docker/nginx-mailer) Docker image as your base.\nThis `tozd/postfix` Docker image delivers e-mails to wide Internet by itself.\nThen you can configure `tozd/mailer`-based containers to relay e-mails to one `tozd/postfix`\ncontainer which then sends e-mails out.\n\n## GitHub mirror\n\nThere is also a [read-only GitHub mirror available](https://github.com/tozd/docker-postfix),\nif you need to fork the project there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftozd%2Fdocker-postfix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftozd%2Fdocker-postfix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftozd%2Fdocker-postfix/lists"}