Closed shoutmarble closed 5 months ago
I did a fresh poste.io install, deleting the poste/data directory.
I get a LetsEncrypt and a IPv6 error. I will keep looking at this.
root@srv456397:~/poste# cat caddy_poste.yml
version: '3.8'
services:
mailserver:
image: analogic/poste.io:latest
container_name: poste_service
hostname: landingdev.xyz
domainname: landingdev.xyz
restart: unless-stopped
ports:
- "25:25"
# - "80:80" # turned off because of Caddy port collision/no impact
- "110:110"
- "143:143"
# - "443:443" # turned off because of Caddy port collision/no impact
- "587:587"
- "993:993"
- "995:995"
- "4190:4190"
environment:
# - LETSENCRYPT_EMAIL=terry.walsworth.45@gmail.com
# - LETSENCRYPT_HOST=mail.landingdev.xyz
# - VIRTUAL_HOST=mail.landingdev.xyz
- DISABLE_CLAMAV=FALSE
- HTTPS=OFF
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/root/poste/data:/data"
# Here I will need to point Poste.IO letsencrypt files to Caddy's LetsEncrypt PEM files
# currently using a prior "Caddy" LetsEncrypt PEM files stored in /data
networks:
- caddy
labels:
caddy: "mail.landingdev.xyz"
caddy.reverse_proxy: "{{upstreams 80}}"
networks:
caddy:
external: true
root@srv456397:~/poste# ll
total 20
drwxr-xr-x 4 root root 4096 Jan 4 01:34 ./
drwx------ 12 root root 4096 Jan 3 22:11 ../
-rw-r--r-- 1 root root 1293 Jan 4 01:39 caddy_poste.yml
drwxr-xr-x 2 mail mail 4096 Jan 4 01:38 data/
drwxr-xr-x 11 root root 4096 Jan 4 00:34 data_bak/
root@srv456397:~/poste# docker compose -f caddy_poste.yml up
[+] Running 25/1
✔ mailserver 24 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 25.8s
[+] Running 1/1
✔ Container poste_service Created 1.5s
Attaching to poste_service
poste_service | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
poste_service | [s6-init] ensuring user provided files have correct perms...exited 0.
poste_service | [fix-attrs.d] applying ownership & permissions fixes...
poste_service | [fix-attrs.d] done.
poste_service | [cont-init.d] executing container initialization scripts...
poste_service | [cont-init.d] 01-override-defaults.sh: executing...
poste_service | [cont-init.d] 01-override-defaults.sh: exited 0.
poste_service | [cont-init.d] 02-directories.sh: executing...
poste_service | * creating /data/log directory
poste_service | * creating /data/log/s6 directory
poste_service | * initalizing /data/log/dmarc directory
poste_service | * initalizing /data/log/delivery directory
poste_service | * initalizing /data/redis directory
poste_service | * initalizing /data/quarantine directory
poste_service | * initalizing /data/var/rspamd directory
poste_service | [cont-init.d] 02-directories.sh: exited 0.
poste_service | [cont-init.d] 03-zpush.sh: executing...
poste_service | * initalizing Z-Push working directory
poste_service | * initalizing Z-Push log directory
poste_service | [cont-init.d] 03-zpush.sh: exited 0.
poste_service | [cont-init.d] 04-dav.sh: executing...
poste_service | * creating /data/dav.db database
poste_service | [cont-init.d] 04-dav.sh: exited 0.
poste_service | [cont-init.d] 05-domains.sh: executing...
poste_service | * creating /data/domains directory
poste_service | [cont-init.d] 05-domains.sh: exited 0.
poste_service | [cont-init.d] 20-apply-server-config: executing...
poste_service | * applying /data/server.ini settings
poste_service | [cont-init.d] 20-apply-server-config: exited 0.
poste_service | [cont-init.d] 21-certificate.sh: executing...
poste_service | * initalizing certificates
poste_service | * creating /data/ssl directory for certificates
poste_service | [cont-init.d] 21-certificate.sh: exited 0.
poste_service | [cont-init.d] 22-lets-encrypt-init.sh: executing...
poste_service | * creating /data/ssl/letsencrypt directory for let's encrypt certificates
poste_service | [cont-init.d] 22-lets-encrypt-init.sh: exited 0.
poste_service | [cont-init.d] 23-nginx.sh: executing...
poste_service | * setting NGiNX to run without TLS certificate
poste_service | [cont-init.d] 23-nginx.sh: exited 0.
poste_service | [cont-init.d] 24-roundcube.sh: executing...
poste_service | * initalizing new Roundcube database
poste_service | [cont-init.d] 24-roundcube.sh: exited 0.
poste_service | [cont-init.d] 31-admin-dirs.sh: executing...
poste_service | [cont-init.d] 31-admin-dirs.sh: exited 0.
poste_service | [cont-init.d] 32-database.sh: executing...
poste_service | * initalizing Users database
poste_service |
poste_service | Updating database schema...
poste_service |
poste_service | 9 queries were executed
poste_service |
poste_service | [OK] Database schema updated successfully!
poste_service |
poste_service | upgrading database - adding fields for relay blocking
poste_service | [cont-init.d] 32-database.sh: exited 0.
poste_service | [cont-init.d] 33-domains.sh: executing...
poste_service | * initalizing settings for domains
poste_service | [cont-init.d] 33-domains.sh: exited 0.
poste_service | [cont-init.d] 34-clamav.sh: executing...
poste_service | * ClamAV disabled
poste_service | [cont-init.d] 34-clamav.sh: exited 0.
poste_service | [cont-init.d] 97-randoms: executing...
poste_service | [cont-init.d] 97-randoms: exited 0.
poste_service | [cont-init.d] 98-timezone.sh: executing...
poste_service | [cont-init.d] 98-timezone.sh: exited 0.
poste_service | [cont-init.d] 99-custom-plugins: executing...
poste_service | [cont-init.d] 99-custom-plugins: exited 0.
poste_service | [cont-init.d] done.
poste_service | [services.d] starting services
poste_service |
poste_service |
poste_service | Poste.io administration available at https://192.168.128.3:443 or http://192.168.128.3:80
poste_service |
poste_service |
poste_service | 2024-01-04 01:40:05 #724(main) <bd55f1>; main; main: rspamd 3.7.4 is loading configuration, build id: release
poste_service | [services.d] done.
Closing this issue.
I'm trying to containerize a "Host" based networked email server
This is an example using poste.io in a reverse proxy using jwilder/nginx-proxy in a github gist.
However, my poste.io is complaining about my IPv6 not being found...when it is in a bridged network in Caddy.
caddy.yml
network.sh
root@srv456397:~/poste# pwd
/root/poste
root@srv456397:~/poste# cat caddy_poste.yml
Looking for host IPv6 on mail.landingdev.xyz
185.28.22.166
2a02:4780:10:e8ad::1
Cannot see IPv6 connection
root@srv456397:~/caddy# docker compose -f caddy.yml up
I'm not focusing on the TLS errors yet...trying to fix the IPv6 issue first?
root@srv456397:~/poste# docker compose -f caddy_poste.yml up