Compare commits
No commits in common. "main" and "2" have entirely different histories.
53
.drone.yml
Normal file
53
.drone.yml
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
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
|
@ -1,38 +0,0 @@
|
|||||||
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:bookworm-slim
|
FROM eumau/debian:bullseye-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,8 +25,6 @@ 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=""
|
||||||
|
@ -10,8 +10,6 @@ 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",
|
||||||
|
@ -40,8 +40,6 @@ 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 -t -n1 postmap
|
| xargs -n1 postmap
|
||||||
|
Loading…
x
Reference in New Issue
Block a user