Comments (7)
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.
@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.
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.
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.
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.
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.
Checked the current version of iredmail-docker
. Mail Delivery Report (Delivery Status Notification) works.
The differences between tests in April and today are:
- Ubuntu 16.04 -> 18.04;
- Docker 18.03.0-ce -> 18.09.0-ce;
- Updated
iredmail-docker
itself; - 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)
- Could it be updated to v1.1? HOT 2
- Subdomains Impossible HOT 1
- Possible to run under an existant nginx ? HOT 12
- Could it be updated to v1.3? :) HOT 18
- How do I customise postfix/main.cf, dovecot/conf.d/10-ssl* and amavisd? HOT 2
- Using the docker container with existing Nginx server HOT 21
- Implement CI using travis/circle-ci
- Cannot login into the system after installation HOT 4
- Create iredmail by docker failed HOT 2
- hostname error and cant' login into iredadmin HOT 1
- CONFIGURATION ERROR - config.inc.php was not found.
- Some issues about configuration
- Docker Pull Error lejmr/iredmail:latest not found: manifest unknown: manifest unknown HOT 2
- No persistent storage: Email being delete after container is stopped HOT 5
- Bad repo link inside container
- about bayes DB
- Trouble setting up a mail client HOT 5
- Can this mail server support oauth2 authentication?
- How to get iRedadmin username and password HOT 3
- several domains in same container 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 iredmail-docker.