{"id":22427898,"url":"https://github.com/maurosoft1973/docker-alpine-postfix-relay","last_synced_at":"2026-05-08T13:42:58.785Z","repository":{"id":154948690,"uuid":"553835847","full_name":"maurosoft1973/Docker-Alpine-Postfix-Relay","owner":"maurosoft1973","description":"Postfix Relay Docker image running on Alpine Linux","archived":false,"fork":false,"pushed_at":"2023-12-31T17:42:45.000Z","size":55,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T11:42:43.611Z","etag":null,"topics":["alpine","alpine-docker","docker","docker-image","docker-postfix","postfix"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maurosoft1973.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":"2022-10-18T21:10:36.000Z","updated_at":"2023-05-15T23:32:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"2fa81a37-5a4c-4a02-b8fb-f018fd0594c1","html_url":"https://github.com/maurosoft1973/Docker-Alpine-Postfix-Relay","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/maurosoft1973%2FDocker-Alpine-Postfix-Relay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurosoft1973%2FDocker-Alpine-Postfix-Relay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurosoft1973%2FDocker-Alpine-Postfix-Relay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurosoft1973%2FDocker-Alpine-Postfix-Relay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maurosoft1973","download_url":"https://codeload.github.com/maurosoft1973/Docker-Alpine-Postfix-Relay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245798530,"owners_count":20673901,"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":["alpine","alpine-docker","docker","docker-image","docker-postfix","postfix"],"created_at":"2024-12-05T20:13:10.007Z","updated_at":"2026-05-08T13:42:53.742Z","avatar_url":"https://github.com/maurosoft1973.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postfix Relay Docker image running on Alpine Linux\n\n[![Docker Automated build](https://img.shields.io/docker/automated/maurosoft1973/alpine-postfix-relay.svg?style=for-the-badge\u0026logo=docker)](https://hub.docker.com/r/maurosoft1973/alpine-postfix-relay/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/maurosoft1973/alpine-postfix-relay.svg?style=for-the-badge\u0026logo=docker)](https://hub.docker.com/r/maurosoft1973/alpine-postfix-relay/)\n[![Docker Stars](https://img.shields.io/docker/stars/maurosoft1973/alpine-postfix-relay.svg?style=for-the-badge\u0026logo=docker)](https://hub.docker.com/r/maurosoft1973/alpine-postfix-relay/)\n\n[![Alpine Version](https://img.shields.io/badge/Alpine%20version-v3.17.2-green.svg?style=for-the-badge)](https://alpinelinux.org/)\n[![Postfix Relay Version](https://img.shields.io/docker/v/maurosoft1973/alpine-postfix-relay?sort=semver\u0026style=for-the-badge)](https://www.postfix.net)\n\nThis Docker image [(maurosoft1973/alpine-postfix-relay)](https://hub.docker.com/r/maurosoft1973/alpine-postfix-relay/) is based on the minimal [Alpine Linux](https://alpinelinux.org/) with [Postfix Version v3.7.4-r0](https://www.postfix.net).\n\n##### Alpine Version 3.17.2 (Released Feb 10 2023)\n##### Postfix Version 3.7.4-r0 (Released 2023-01-23 02:09:53)\n\n----\n\n## What is Postfix?\nPostfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail.\n\nPostfix attempts to be fast, easy to administer, and secure.\n\n## Architectures\n\n* ```:aarch64``` - 64 bit ARM\n* ```:armhf```   - 32 bit ARM v6\n* ```:armv7```   - 32 bit ARM v7\n* ```:ppc64le``` - 64 bit PowerPC\n* ```:x86```     - 32 bit Intel/AMD\n* ```:x86_64```  - 64 bit Intel/AMD (x86_64/amd64)\n\n## Tags\n\n* ```:latest```         latest branch based (Automatic Architecture Selection)\n* ```:aarch64```        latest 64 bit ARM\n* ```:armhf```          latest 32 bit ARM v6\n* ```:armv7```          latest 32 bit ARM v7\n* ```:ppc64le```        latest 64 bit PowerPC\n* ```:x86```            latest 32 bit Intel/AMD\n* ```:x86_64```         latest 64 bit Intel/AMD\n* ```:test```           test branch based (Automatic Architecture Selection)\n* ```:test-aarch64```   test 64 bit ARM\n* ```:test-armhf```     test 32 bit ARM v6\n* ```:test-armv7```     test 32 bit ARM v7\n* ```:test-ppc64le```   test 64 bit PowerPC\n* ```:test-x86```       test 32 bit Intel/AMD\n* ```:test-x86_64```    test 64 bit Intel/AMD\n* ```:3.17.2``` 3.17.2 branch based (Automatic Architecture Selection)\n* ```:3.17.2-aarch64```   3.17.2 64 bit ARM\n* ```:3.17.2-armhf```     3.17.2 32 bit ARM v6\n* ```:3.17.2-armv7```     3.17.2 32 bit ARM v7\n* ```:3.17.2-ppc64le```   3.17.2 64 bit PowerPC\n* ```:3.17.2-x86```       3.17.2 32 bit Intel/AMD\n* ```:3.17.2-x86_64```    3.17.2 64 bit Intel/AMD\n* ```:3.17.2-3.7.4-r0``` 3.17.2-3.7.4-r0 branch based (Automatic Architecture Selection)\n* ```:3.17.2-3.7.4-r0-aarch64```   3.17.2 64 bit ARM\n* ```:3.17.2-3.7.4-r0-armhf```     3.17.2 32 bit ARM v6\n* ```:3.17.2-3.7.4-r0-armv7```     3.17.2 32 bit ARM v7\n* ```:3.17.2-3.7.4-r0-ppc64le```   3.17.2 64 bit PowerPC\n* ```:3.17.2-3.7.4-r0-x86```       3.17.2 32 bit Intel/AMD\n* ```:3.17.2-3.7.4-r0-x86_64```    3.17.2 64 bit Intel/AMD\n\n## Layers \u0026 Sizes\n\n| Version                                                                               | Size                                                                                                                               |\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|\n| ![Version](https://img.shields.io/badge/version-amd64-blue.svg?style=for-the-badge)   | ![MicroBadger Size (tag)](https://img.shields.io/docker/image-size/maurosoft1973/alpine-postfix-relay/latest?style=for-the-badge)  |\n| ![Version](https://img.shields.io/badge/version-aarch64-blue.svg?style=for-the-badge) | ![MicroBadger Size (tag)](https://img.shields.io/docker/image-size/maurosoft1973/alpine-postfix-relay/aarch64?style=for-the-badge) |\n| ![Version](https://img.shields.io/badge/version-armv6-blue.svg?style=for-the-badge)   | ![MicroBadger Size (tag)](https://img.shields.io/docker/image-size/maurosoft1973/alpine-postfix-relay/armhf?style=for-the-badge)   |\n| ![Version](https://img.shields.io/badge/version-armv7-blue.svg?style=for-the-badge)   | ![MicroBadger Size (tag)](https://img.shields.io/docker/image-size/maurosoft1973/alpine-postfix-relay/armv7?style=for-the-badge)   |\n| ![Version](https://img.shields.io/badge/version-ppc64le-blue.svg?style=for-the-badge) | ![MicroBadger Size (tag)](https://img.shields.io/docker/image-size/maurosoft1973/alpine-postfix-relay/ppc64le?style=for-the-badge) |\n| ![Version](https://img.shields.io/badge/version-x86-blue.svg?style=for-the-badge)     | ![MicroBadger Size (tag)](https://img.shields.io/docker/image-size/maurosoft1973/alpine-postfix-relay/x86?style=for-the-badge)     |\n\n## Howto use this image?\n\nThis image creates containers that allow you to send e-mails via your e-mail address (ex. gmail).\n\n## Environment Variables:\n\n### Main Postfix Relay parameters:\n* `LC_ALL`: default locale (default en_GB.UTF-8)\n* `TIMEZONE`: default timezone (default Europe/Brussels)\n* `SMTP_SENDER_NAME`: the name displayed in the from header (also from name)\n* `SMTP_RELAY_HOST`: the smtp server will forward mail\n* `SMTP_RELAY_PORT`: the port of relay host\n* `SMTP_RELAY_LOGIN`: user for login the relay host\n* `SMTP_RELAY_PASSWORD`: password for login the relay host\n* `RECIPIENT_RESTRICTIONS`: the recipients address to delivery email (default empty -\u003e all recipient address)\n* `ACCEPTED_NETWORKS`: the address ip authorized to send email (default 192.168.0.0/16 172.17.0.0/16 172.16.0.0/12 10.0.0.0/8)\n* `SMTP_USE_TLS`: Enabling TLS in the Postfix SMTP Client (default no)\n* `SMTP_TLS_SECURITY_LEVEL`: The default SMTP TLS security level for the Postfix SMTP client (default may)\n* `SMTP_DEBUG_PEER_LIST`: For help with troubleshooting, Postfix can increase logging for particular hosts that you might be having problems with. debug_peer_list specifies a list of one or more hosts, domains, or regular expression patterns whose logging should be increased by the degree specified in debug_peer_level (default: 0.0.0.0 -\u003e none)\n* `SMTP_DEBUG_PEER_LEVEL`: debug level (default 3)\n\n## Example of use\n\n\n### 1. Create a container with account gmail,without 2FA enabled, and it's listen on all network interfaces and port 25\n```sh\nSMTP_GMAIL_LOGIN=youremail\nSMTP_GMAIL_PASSWORD=yourpassword\n\ndocker run -d -p 0.0.0.0:25:25 \\\n       --name alpine-postfix-relay-to-gmail \\\n       -e SMTP_RELAY_HOST=smtp.gmail.com \\\n       -e SMTP_RELAY_PORT=465 \\\n       -e SMTP_RELAY_LOGIN=${SMTP_GMAIL_LOGIN} \\\n       -e SMTP_RELAY_PASSWORD=${SMTP_GMAIL_PASSWORD} \\\n       maurosoft1973/alpine-postfix-relay\n```\n\n### 2. Create a container with account gmail,without 2FA enabled, and it's listen on all network interfaces and port 25 and 587\n```sh\nSMTP_GMAIL_LOGIN=youremail\nSMTP_GMAIL_PASSWORD=yourpassword\n\ndocker run -d -p 0.0.0.0:25:25 -p 0.0.0.0:587:587 \\\n       --name alpine-postfix-relay-to-gmail \\\n       -e SMTP_RELAY_HOST=smtp.gmail.com \\\n       -e SMTP_RELAY_PORT=465 \\\n       -e SMTP_RELAY_LOGIN=${SMTP_GMAIL_LOGIN} \\\n       -e SMTP_RELAY_PASSWORD=${SMTP_GMAIL_PASSWORD} \\\n       maurosoft1973/alpine-postfix-relay\n```\n\n### 3. Create a container with account gmail,with 2FA enabled, and it's listen on all network interfaces and port 25 and 587\nFirst, you create an account [Google apppasswords](https://myaccount.google.com/apppasswords) for allow send email. The password is automatically generated\n\nPlease copy the password and paste into SMTP_GMAIL_PASSWORD\n\n```sh\nSMTP_GMAIL_LOGIN=youremail\nSMTP_GMAIL_PASSWORD=automaticpasswordgenerated\n\ndocker run -d -p 0.0.0.0:25:25 -p 0.0.0.0:587:587 \\\n       --name alpine-postfix-relay-to-gmail \\\n       -e SMTP_RELAY_HOST=smtp.gmail.com \\\n       -e SMTP_RELAY_PORT=465 \\\n       -e SMTP_RELAY_LOGIN=${SMTP_GMAIL_LOGIN} \\\n       -e SMTP_RELAY_PASSWORD=${SMTP_GMAIL_PASSWORD} \\\n       maurosoft1973/alpine-postfix-relay\n```\n\n***\n\n### 4. Run a service inside GitLab Pipeline Job.Use account gmail,without 2FA enabled.\n\nThis job use the image maurosoft1973/alpine-postfix-relay for load as service and send email. \n\nFor use, replace the value:\n- recipientname\n- recipientaddress\n- sendername\n- youremail\n- yourpassword\nwith the your values\n\nNote: i use the sleep function, inside the job, for have time to process the postfix queue, otherwise the e-mail is not sent because the process is stopped.\n\n```pipeline\npostfix-relay-service:\n    stage: test\n    image: maurosoft1973/alpine\n    services:\n        - name: maurosoft1973/alpine-postfix-relay\n          alias: smtp\n    variables:\n        SMTP_RECIPIENT_NAME: \"recipientname\"\n        SMTP_RECIPIENT: \"recipientaddress\"\n        SMTP_SENDER_NAME: \"sendername\"\n        SMTP_RELAY_HOST: \"smtp.gmail.com\"\n        SMTP_RELAY_PORT: \"465\"\n        SMTP_RELAY_LOGIN: \"youremail\"\n        SMTP_RELAY_PASSWORD: \"yourpassword\"\n    script:\n        - apk add curl\n        - |\n          echo \"From: $SMTP_SENDER_NAME \u003c$SMTP_RELAY_LOGIN\u003e\" \u003e\u003e mail.txt\n          echo \"To: $SMTP_RECIPIENT_NAME \u003c${SMTP_RECIPIENT}\u003e\" \u003e\u003e mail.txt\n          echo \"Subject: Test Message - CURL\" \u003e\u003e mail.txt\n          echo \"\" \u003e\u003e  mail.txt\n          echo \"Dear $SMTP_RECIPIENT_NAME,\" \u003e\u003e  mail.txt\n          echo \"Test message from GitLab Pipeline\" \u003e\u003e  mail.txt\n        - curl smtp://smtp -v --mail-from \"$SMTP_RELAY_LOGIN\" --mail-rcpt \"$SMTP_RECIPIENT\" -T \"mail.txt\"\n        - sleep 15s\n```\n\n***\n###### Last Update 15.02.2023 05:37:14\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaurosoft1973%2Fdocker-alpine-postfix-relay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaurosoft1973%2Fdocker-alpine-postfix-relay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaurosoft1973%2Fdocker-alpine-postfix-relay/lists"}