Git Product home page Git Product logo

Comments (7)

twelsby avatar twelsby commented on June 3, 2024

I can't seem to reproduce this error.

I notice that in your docker test you sent the email to yourself but in the non-docker test you sent it to a real email account. It seems like this might be due to this i.e. in the docker test postfix is trying to send the email to a mail domain that does not actually exist (unless you happen to own mydomain.com). Try running the docker test again and sending it to the real email address.

The other thing I would try is running docker without the --privileged option. I think this might be causing problems with SELinux or AppArmour on your host system. I always run docker without the --privileged option, it doesn't seem to need it here.

from iredmail-docker.

TitanFighter avatar TitanFighter commented on June 3, 2024

@twelsby Thanks for the reply.
I will double check it in few days.

Regarding this:

I notice that in your docker test you sent the email to yourself but in the non-docker test you sent it to a real email account. .... Try running the docker test again and sending it to the real email address.

I would appreciate if you can check on your instance to send email to yourself. Do you receive report in this case?

from iredmail-docker.

twelsby avatar twelsby commented on June 3, 2024

I did originally check, but with my real domain email and did not encounter error. I have created a test container with a fake domain and it also does not give an error, so I guess it can't be that alone, although I would still try using a real domain.

Have you tried running without privileged mode?

from iredmail-docker.

TitanFighter avatar TitanFighter commented on June 3, 2024

Just checked again with a fresh server, with real domain and without privileged mode. Tried to send to myself and to email with different domain - still same issue :( Test is done on Ubuntu 16.04 Server.

Also, because of this new test I found another issue (which I also had when I created this ticket), which can have relation to this one - the same email can be sent few times.

from iredmail-docker.

twelsby avatar twelsby commented on June 3, 2024

What version of docker are you using? What command are you using to run it? Are you doing any customization of the container i.e. editing configuration files or bind mounting external configuration files? Are you starting with empty volumes? (I presume yes since you are using a clean install)

For what its worth, I am running 16.04.4 LTS, with kernel 4.4.0-116-generic. I am using docker 18.03.0-ce as a pre-built binary, which is installed via the apt repository download.docker.com.

I am not running from a clean install of ubuntu, so I can't control for the configuration. I do have a native installation of iRedMail running on it, though it is not active and I do not use a direct bind mount to any files from the existing iRedMail installation, so in theory it should not affect things.

I don't think your second issue is really a separate issue. I would say something is preventing postfix from identifying that the mail was successfully sent, so it is just trying again. Maybe bash into the container and play around with the postfix queue.

from iredmail-docker.

TitanFighter avatar TitanFighter commented on June 3, 2024

Everything the same: docker 18.03.0-ce, 16.04.4 LTS, with kernel 4.4.0-116-generic.

I use the command from README with your recommendation to remove privileged

docker run -p 80:80 -p 443:443 \
           -e "DOMAIN=myrealdomain.com" -e "HOSTNAME=mail" \
           -e "MYSQL_ROOT_PASSWORD=password" \
           -e "SOGO_WORKERS=1" \
           -e "TIMEZONE=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 /var/www/iredmail/mysql:/var/lib/mysql \
           -v /var/www/iredmail/vmail:/var/vmail \
           -v /var/www/iredmail/clamav:/var/lib/clamav \
           --name=iredmail lejmr/iredmail:mysql-latest

Interesting, but if I do not use docker and iredmail is installed directly on host, everything is ok, so it seems that my problem somehow has a relation to docker or host<->docker :) Unfortunately right now I do not have time to play with postfix, because I am under the pressure of 2 projects. I wanted to use dockered version of iredmail because in this case I could install anything else on the same server next to iredmail, but as I do not have much time to play with it right now, my workaround is a server specially reserved for iredmail, which costs just 2 euro\month :)

from iredmail-docker.

TitanFighter avatar TitanFighter commented on June 3, 2024

Checked the current version of iredmail-docker. Mail Delivery Report (Delivery Status Notification) works.

The differences between tests in April and today are:

  1. Ubuntu 16.04 -> 18.04;
  2. Docker 18.03.0-ce -> 18.09.0-ce;
  3. Updated iredmail-docker itself;
  4. Changes in command:
  • docker run -p 80:80 -p 443:443 \ -> docker run --privileged -p 80:80 -p 443:443 \
  • -e "DOMAIN=myrealdomain.com" -e "HOSTNAME=mail" \ -> -h myrealdomain.com \

from iredmail-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.