Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f474d081a0 | ||
![]() |
c5b8641454 | ||
![]() |
7ac0958c63 | ||
![]() |
34f907b728 | ||
![]() |
47bb3de27f | ||
![]() |
ab4040aff0 | ||
![]() |
a5458bcf18 | ||
![]() |
677e3687fb |
53
.drone.yml
53
.drone.yml
@ -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
|
|
38
.gitea/workflows/build.yml
Normal file
38
.gitea/workflows/build.yml
Normal 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
|
@ -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=""
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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 }}
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user