lejmr / iredmail-docker

iRedmail docker container
https://hub.docker.com/repository/docker/lejmr/iredmail
133 stars 59 forks source link

Installation #43

Closed malutanpetronel closed 5 years ago

malutanpetronel commented 5 years ago

image I did issued the command: docker run --privileged -p 80:80 -p 443:443 \ -e "DOMAIN=web.ro" -e "HOSTNAME=mail" \ -e "MYSQL_ROOT_PASSWORD=pass!" \ -e "SOGO_WORKERS=1" \ -e "TIMEZONE=Europe/Bucharest" \ -e "POSTMASTER_PASSWORD={PLAIN}pass!" \ -e "IREDAPD_PLUGINS=['reject_null_sender', 'reject_sender_login_mismatch', 'greylisting', 'throttle', 'amavisd_wblist', 'sql_alias_access_policy']" \ -v /var/lib/mysql \ -v /var/vmail \ -v /var/lib/clamav \ --name=iredmail lejmr/iredmail:mysql-latest

but it seems either the docker run still execute something or it did not finish correctly.

also tail /var/log/mail.log Oct 2 08:08:22 75d0986c0269 postfix/postqueue[1477]: fatal: Queue report unavailable - mail system is down

can you provide me some help please ?

malutanpetronel commented 5 years ago

after restart I see with tail /var/log/mail.log ... Oct 2 08:40:06 75d0986c0269 postfix/master[614]: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: 75d0986c0269. It seems params were wrongly taken from elsewhere but not the issued command

lejmr commented 5 years ago

seems you are following some old documentation? This is how it should work:

docker run --privileged -p 80:80 -p 443:443 \
           -h HOSTNAME.DOMAIN \
           -e "MYSQL_ROOT_PASSWORD=password" \
           -e "SOGO_WORKERS=1" \
           -e "TZ=Europe/Prague" \
           -e "POSTMASTER_PASSWORD={PLAIN}password" \
           -e "IREDAPD_PLUGINS=['reject_null_sender', 'reject_sender_login_mismatch', 'greylisting', 'throttle', 'amavisd_wblist', 'sql_alias_access_policy']" \
           -v PATH/mysql:/var/lib/mysql \
           -v PATH/vmail:/var/vmail \
           -v PATH/clamav:/var/lib/clamav \
           --name=iredmail lejmr/iredmail:mysql-latest

Specifically, you are missing -h attribut..

Ryu945 commented 5 years ago

You still have that old documentation on hub.docker.com

https://hub.docker.com/r/lejmr/iredmail