Dear all,
I tried for several hours to get this image working and still have the same error:
docker log
docker-mailserver
Initializing setup
Checking configuration
Configuring mail server
docker-compose.yml
version: '2'
services:
mail:
build: docker-mailserver
hostname: xxxxxx
domainname: xxxx.xx
container_name: mail
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
volumes:
- ./maildata/:/var/mail
- ./mailstate/:/var/mail-state
- ./letsencrtypt/:/etc/letsencrypt/
- ./config/:/tmp/docker-mailserver/
environment:
- ENABLE_SPAMASSASSIN=1
- ENABLE_CLAMAV=1
- ENABLE_FAIL2BAN=1
- ENABLE_POSTGREY=1
- ONE_DIR=1
- DMS_DEBUG=0
- SSL_TYPE=letsencrypt
cap_add:
- NET_ADMIN
volumes:
maildata:
driver: local
mailstate:
driver: local
The docker-mailserver directory contains the git clone of the project. Using the suggested image ( tvial/docker-mailserver:latest) yelds the same results.
Can you please help me start this image?
BR,
Alecs
Hi @alecsandruchirosca, to have more detail, use DMS_DEBUG=1, restart container and paste the console log.
`#
#
#
#
HOSTNAME=xxxxxx.xxxx.xx
DMS_DEBUG=1
VIRUSMAILS_DELETE_DELAY=7
ENABLE_CLAMAV=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENABLE_FAIL2BAN=1
ENABLE_SPAMASSASSIN=1
PWD=/
SHLVL=1
HOME=/root
ONE_DIR=1
SSL_TYPE=letsencrypt
DEBIAN_FRONTEND=noninteractive
ENABLE_POSTGREY=1
_=/usr/bin/printenv
#
#
#
#
Initializing setup
Registering check,setup,fix,misc and start-daemons functions
With DMS_DEBUG I got the above log (docker log mail ).
BR,
Alecs
Hi, i have exact the same failure.
if i downgrade to docker-mailserver 2.2, then opendkim will be started, but then the error comes during start of amavis.
Output is then:
...
Starting amavisfalse
[ FAILED ] Error: Please fix your configuration. Exiting...
3 other error to solve:
May 6 12:36:14 mail postgrey[3623]: FATAL: ERROR: can't open lock file: /var/lib/postgrey/postgrey.lock#012
May 6 12:36:15 mail postfix[4414]: Postfix is running with backwards-compatible default settings
May 6 12:36:15 mail postfix[4414]: See http://www.postfix.org/COMPATIBILITY_README.html for details
May 6 12:36:15 mail postfix[4414]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
May 6 12:36:15 mail postfix/master[4451]: fatal: open lock file /var/lib/postfix/master.lock: cannot create file exclusively: Permission denied
Tried manually (and had to disable ONE_DIRbut after that it worked well).
No idea yet yo a long term patch. Ideas welcome.
Maybe this also relates to #545.
Although it works for me just well, I also receive backwards-compatibility warnings in my logs.
Will have a look at this later.
Duplicates https://github.com/tomav/docker-mailserver/issues/545
Move this discussion there.
@alecsandruchirosca you had this error because no user account has been provided:
'config/docker-mailserver/postfix-accounts.cf' is not provided. No mail account created. is debug log.
I reproduced this issue today, I'll add a fix.
Here is the PR https://github.com/tomav/docker-mailserver/pull/612
:latest image available.
Most helpful comment
Hi, i have exact the same failure.
if i downgrade to docker-mailserver 2.2, then opendkim will be started, but then the error comes during start of amavis.
Output is then:
...
Starting amavisfalse
[ FAILED ] Error: Please fix your configuration. Exiting...