From d9a024cd5d3217a970b3a118dbd8cfab870bb9da Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Thu, 12 Oct 2023 16:02:20 +0200 Subject: [PATCH] Fix postfix, added 2 ports to opened dovecot --- dockerfiles/postfix/main.cf | 10 +++++----- dockerfiles/postfix/virtual | 2 +- kustomize/dovecot-svc.yaml | 5 +++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/dockerfiles/postfix/main.cf b/dockerfiles/postfix/main.cf index 5ea4776..84b08db 100644 --- a/dockerfiles/postfix/main.cf +++ b/dockerfiles/postfix/main.cf @@ -3,12 +3,12 @@ maillog_file = /dev/stdout # this setting has several side-effects, e.g. the domain of this mail # server is now example.com, http://www.postfix.org/postconf.5.html#mydomain -myhostname = mail.virt.local +myhostname = virt.local # disable all compatibility levels compatibility_level = 9999 -# virtual_mailbox_domains = mail.virt.local -# virtual_mailbox_maps = lmdb:/etc/postfix/virtual -# virtual_alias_maps = lmdb:/etc/postfix/virtual -# virtual_transport = lmtp:dovecot.default.svc.cluster.local:24 \ No newline at end of file +virtual_mailbox_domains = virt.local +virtual_mailbox_maps = lmdb:/etc/postfix/virtual +virtual_alias_maps = lmdb:/etc/postfix/virtual +virtual_transport = lmtp:dovecot.default.svc.cluster.local:24 \ No newline at end of file diff --git a/dockerfiles/postfix/virtual b/dockerfiles/postfix/virtual index c8723d6..fdb0d60 100644 --- a/dockerfiles/postfix/virtual +++ b/dockerfiles/postfix/virtual @@ -1 +1 @@ -@mail.virt.local user@mail.virt.local \ No newline at end of file +@virt.local user@virt.local \ No newline at end of file diff --git a/kustomize/dovecot-svc.yaml b/kustomize/dovecot-svc.yaml index 1890d9e..1609832 100644 --- a/kustomize/dovecot-svc.yaml +++ b/kustomize/dovecot-svc.yaml @@ -10,6 +10,11 @@ spec: port: 143 protocol: TCP targetPort: 143 + name: imap + - nodePort: 30024 + port: 24 + targetPort: 24 + name: lmtp selector: app: dovecot tier: imap