Comments (10)
May you provide us with your docker-compose file?
from mailserver.
Sorry, i missed ><
version: "2"
services:
mailserver:
image: hardware/mailserver
container_name: mailserver
domainname: ***.net
hostname: mail
links:
- mariadb:mariadb
ports:
- "25:25"
- "143:143"
- "465:465"
- "587:587"
- "993:993"
- "4190:4190"
environment:
- OPENDKIM_KEY_LENGTH=4096
- ADD_DOMAINS=***.net,***.fr
- DBHOST=mariadb
- DBUSER=postfix
- DBNAME=postfix
- DBPASS=***
volumes:
- /docker/mail:/var/mail
- /docker/dovecot:/var/lib/dovecot
- /docker/opendkim:/etc/opendkim/keys
- /etc/localtime:/etc/localtime:ro
- /docker/proxy/certs/mail.***.net:/etc/letsencrypt/live/mail.***.net
networks:
- mail-db
postfixadmin:
image: hardware/postfixadmin
container_name: postfixadmin
domainname: ***.net
hostname: mail
links:
- mariadb:mariadb
environment:
- VIRTUAL_HOST=***.***.net
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=***.***.net
- LETSENCRYPT_EMAIL=toobian@***.net
- DBHOST=mariadb
- DBUSER=postfix
- DBNAME=postfix
- DBPASS=***
volumes:
- /etc/localtime:/etc/localtime:ro
networks:
- proxy-tier
- mail-db
rainloop:
image: wonderfall/rainloop
container_name: rainloop
links:
- mailserver:mailserver
- mariadb:mariadb
environment:
- VIRTUAL_HOST=webmail.***.net
- LETSENCRYPT_HOST=webmail.***.net
- LETSENCRYPT_EMAIL=toobian@***.net
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=80
- GID=991
- UID=991
volumes:
- /docker/rainloop:/rainloop/data
- /etc/localtime:/etc/localtime:ro
networks:
- proxy-tier
- mail-db
mariadb:
image: mariadb:10.1
container_name: mariadb
volumes:
- /docker/mysql/db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
- MYSQL_ROOT_PASSWORD=***
- MYSQL_DATABASE=postfix
- MYSQL_USER=postfix
- MYSQL_PASSWORD=***
networks:
- mail-db
networks:
proxy-tier:
external:
name: nginx-proxy
mail-db:
external:
name: mail-db
from mailserver.
Okay, this is interesting because I had similar troubles using docker-compose files second version.
Can't help you, I surrendered!
from mailserver.
Postfix is isolated with unix chroot mecanism, so check that the mariadb hostname exist in this file /var/spool/postfix/etc/hosts
so that DNS resolution works properly.
from mailserver.
Ok it's working when i add mariadb hostname and its ip address manually.
from mailserver.
It is already the case here : https://github.com/hardware/mailserver/blob/master/rootfs/usr/local/bin/postfix#L7
from mailserver.
when i check /etc/hosts file, mariadb hostname is missing. For now i just add hostname in /var/spool/postfix/etc/hosts
If i restart container /etc/hosts will be reset, so i loose my modification.
from mailserver.
check your docker-compose.yml file syntax, try with version 1.
from mailserver.
Fix in c2c8a22
Can you confirm ? docker pull hardware/mailserver
from mailserver.
Hi, I found this issue while struggling with this in my own setup. Thank you for building this, it's been a great help so far!
I have a question regarding this:
Would it be a problem to run the postfix rewrite
service in a non-chroot environment?
I changed the line in postfix' master.cf
to
# service type private unpriv chroot wakeup maxproc command + args
rewrite unix - - n - - trivial-rewrite
and it did work. Will there be any shortcomings or disadvantages due to this change?
Reading this it seems we might not even need chroot at all when running in an isolated docker environment (in my setup postfix is running in an own container).
from mailserver.
Related Issues (20)
- Missing root CAs - Untrusted TLS connection HOT 2
- Docker swarm HOT 1
- Outgoing mail marked as spam HOT 1
- Postfixadmin create superadmin account HOT 4
- Postfix missing interdem HOT 1
- Running in Docker Swarm HOT 2
- Prevent redis DB size runaway HOT 8
- CVE-2019-11500 - Critical Dovecot vulnerability HOT 7
- Typo in LDAP virtual alias map (true vs yes) HOT 1
- Traefik acme are file detected, but not extracted to pem file HOT 2
- Can spoof inbound mail on local network HOT 3
- DBHOST and REDIS_HOST cannot be IPs HOT 1
- dkim/$DOMAIN/private.key is world readable HOT 1
- New format of acme.json in Traefik 2.0 HOT 7
- How to create a "blackhole" account / an account where mails are automatically discarded? HOT 1
- clamav-unofficial-sigs cron has curl failures HOT 1
- docker compose functionality HOT 4
- Question:Deployment on working Server
- Status of this repo / docker image HOT 62
- Postfixadmin mails refused HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailserver.