Compare commits

..

8 Commits
1 ... main

Author SHA1 Message Date
Mauro Torrez
f474d081a0 v5: support plus address extensions
All checks were successful
Build Docker images / docker (eumau/postfix, 5) (push) Successful in 3m6s
2024-03-11 13:33:06 -03:00
Mauro Torrez
c5b8641454 v4
All checks were successful
Build Docker images / docker (eumau/postfix, 4) (push) Successful in 3m2s
2024-03-01 18:37:23 -03:00
Mauro Torrez
7ac0958c63 better ci
All checks were successful
Build Docker images / docker (eumau/postfix, 3) (push) Successful in 3m1s
2024-02-27 14:34:14 -03:00
Mauro Torrez
34f907b728 rm drone ci
All checks were successful
Build Docker images / docker (3) (push) Successful in 2m40s
2024-02-27 13:17:28 -03:00
Mauro Torrez
47bb3de27f Add gitea ci
Some checks are pending
continuous-integration/drone/push Build is pending
2024-02-27 13:15:05 -03:00
Mauro Torrez
ab4040aff0 arm64 build
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
2024-02-26 19:04:24 -03:00
Mauro Torrez
a5458bcf18 sort /start.d scripts
All checks were successful
continuous-integration/drone/tag Build is passing
2023-01-25 10:22:19 -03:00
Mauro Torrez
677e3687fb debian bullseye
All checks were successful
continuous-integration/drone/tag Build is passing
2023-01-25 10:02:46 -03:00
10 changed files with 51 additions and 60 deletions

View File

@ -1,53 +0,0 @@
---
kind: pipeline
name: default
steps:
- name: build and publish image
image: plugins/docker
settings:
repo: eumau/postfix
auto_tag: true
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
when:
branch:
- master
---
kind: pipeline
name: pull_request
steps:
- name: build image only
image: plugins/docker
settings:
repo: eumau/postfix
auto_tag: true
dry_run: true
trigger:
event:
- pull_request
---
kind: pipeline
name: tags
steps:
- name: docker
image: plugins/docker
settings:
repo: eumau/postfix
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
tags:
- ${DRONE_TAG}
trigger:
event:
- tag

View File

@ -0,0 +1,38 @@
name: Build Docker images
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
repo:
- eumau/postfix
tag:
- "5"
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push image
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ matrix.repo }}:${{ matrix.tag }}
platforms: linux/amd64,linux/arm64

View File

@ -1,4 +1,4 @@
FROM eumau/debian:buster-slim FROM eumau/debian:bookworm-slim
LABEL maintainer "Mauro Torrez <mauro@mau.ro>" LABEL maintainer "Mauro Torrez <mauro@mau.ro>"
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
ENV LC_ALL C ENV LC_ALL C
@ -25,6 +25,8 @@ ENV POSTSCREEN_DNSBL_THRESHOLD="3"
ENV POSTSCREEN_DNSBL_WHITELIST_THRESHOLD="-1" ENV POSTSCREEN_DNSBL_WHITELIST_THRESHOLD="-1"
ENV POSTSCREEN_ENABLE=no ENV POSTSCREEN_ENABLE=no
ENV POSTSCREEN_GREET_ACTION="enforce" ENV POSTSCREEN_GREET_ACTION="enforce"
ENV PROPAGATE_UNMATCHED_EXTENSIONS="canonical, virtual"
ENV RECIPIENT_DELIMITER="+"
ENV RELAYHOST="" ENV RELAYHOST=""
ENV SMTP_FALLBACK_RELAY="" ENV SMTP_FALLBACK_RELAY=""
ENV SMTP_SASL_AUTH_ENABLE="" ENV SMTP_SASL_AUTH_ENABLE=""

View File

@ -1,6 +1,6 @@
[template] [template]
src = "setup_main.tmpl" src = "setup_main.tmpl"
dest = "/start.d/setup_main" dest = "/start.d/99_main"
mode = "0755" mode = "0755"
keys = [ keys = [
"/biff", "/biff",
@ -10,6 +10,8 @@ keys = [
"/myhostname", "/myhostname",
"/mynetworks", "/mynetworks",
"/mynetworks/style", "/mynetworks/style",
"/propagate/unmatched/extensions",
"/recipient/delimiter",
"/smtp/tls/security/level", "/smtp/tls/security/level",
"/smtpd/client/restrictions", "/smtpd/client/restrictions",
"/smtpd/data/restrictions", "/smtpd/data/restrictions",

View File

@ -1,6 +1,6 @@
[template] [template]
src = "setup_milter.tmpl" src = "setup_milter.tmpl"
dest = "/start.d/setup_milter" dest = "/start.d/10_milter"
mode = "0755" mode = "0755"
keys = [ keys = [
"/internal/mail/filter/classes", "/internal/mail/filter/classes",

View File

@ -1,6 +1,6 @@
[template] [template]
src = "setup_postscreen.tmpl" src = "setup_postscreen.tmpl"
dest = "/start.d/setup_postscreen" dest = "/start.d/89_postscreen"
mode = "0755" mode = "0755"
keys = [ keys = [
"/bogofilter/enable", "/bogofilter/enable",

View File

@ -1,6 +1,6 @@
[template] [template]
src = "setup_relayhost.tmpl" src = "setup_relayhost.tmpl"
dest = "/start.d/setup_relayhost" dest = "/start.d/88_relayhost"
mode = "0755" mode = "0755"
keys = [ keys = [
"/relayhost", "/relayhost",

View File

@ -1,6 +1,6 @@
[template] [template]
src = "setup_submission.tmpl" src = "setup_submission.tmpl"
dest = "/start.d/setup_submission" dest = "/start.d/11_submission"
mode = "0755" mode = "0755"
keys = [ keys = [
"/submission/enable", "/submission/enable",

View File

@ -40,6 +40,8 @@ postconf alias_maps=hash:/etc/aliases
{{ with getv "/myhostname" }}postconf myhostname='{{.}}'{{ end }} {{ with getv "/myhostname" }}postconf myhostname='{{.}}'{{ end }}
{{ with getv "/mynetworks" }}postconf mynetworks='{{.}}'{{ end }} {{ with getv "/mynetworks" }}postconf mynetworks='{{.}}'{{ end }}
{{ with getv "/mynetworks/style" }}postconf mynetworks_style='{{.}}'{{ end }} {{ with getv "/mynetworks/style" }}postconf mynetworks_style='{{.}}'{{ end }}
{{ with getv "/propagate/unmatched/extensions" }}postconf propagate_unmatched_extensions='{{.}}'{{ end }}
{{ with getv "/recipient/delimiter" }}postconf recipient_delimiter='{{.}}'{{ end }}
{{ with getv "/smtp/tls/security/level" }}postconf smtp_tls_security_level='{{.}}'{{ end }} {{ with getv "/smtp/tls/security/level" }}postconf smtp_tls_security_level='{{.}}'{{ end }}
{{ with getv "/smtpd/client/restrictions" }}postconf smtpd_client_restrictions='{{.}}'{{ end }} {{ with getv "/smtpd/client/restrictions" }}postconf smtpd_client_restrictions='{{.}}'{{ end }}
{{ with getv "/smtpd/data/restrictions" }}postconf smtpd_data_restrictions='{{.}}'{{ end }} {{ with getv "/smtpd/data/restrictions" }}postconf smtpd_data_restrictions='{{.}}'{{ end }}

View File

@ -13,4 +13,4 @@ postconf -h \
virtual_mailbox_maps \ virtual_mailbox_maps \
| sed "s/,/\n/g" | sed "s/ /\n/g" | sort | uniq \ | sed "s/,/\n/g" | sed "s/ /\n/g" | sort | uniq \
| egrep '(hash):' \ | egrep '(hash):' \
| xargs -n1 postmap | xargs -t -n1 postmap