Coder Social home page Coder Social logo

iredmail-docker's People

Contributors

cema-sp avatar nblumoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

iredmail-docker's Issues

slapd failing

I encountered an issue with slapd during docker build:

Setting up slapd (2.4.31-2) ...
  Creating new user openldap... done.
  Creating initial configuration... done.                                          
  Creating LDAP directory... done.                                                 
Starting OpenLDAP: slapd failed!                                                   
invoke-rc.d: initscript slapd, action "start" failed.                              
dpkg: error processing slapd (--configure):                                        
 subprocess installed post-installation script returned error exit status 1       

Proper dockerization (separate containers)

I've started working on a proper dockerization of iRedMail. There's still a bit to do, but it looks promising.
Basically, I'm hooking the installer so it can run in the build process, switching on or off specific parts of the build. On top of that I'm caching the mysql queries executed during the installation so they can be applied once an instance is up.
It was quite a bit of work to get here, but now what's left is putting it all together - those small things like making sure the services talk to each other and not localhost, plus making a wrapper scripts that will boot up the necessary process.

https://github.com/niieani/iredmail-docker

If anybody wants to help out, I'm all for it.

cannot move `./mail_users.csv.ldif' to `ldifs/20_mail_users.ldif'

Trying to build without touching any files :

mv: cannot move `./mail_users.csv.ldif' to `ldifs/20_mail_users.ldif': No such file or directory

Looks the image on docker hub cema/iredmail:example is different from this one.

It will crash on this line also

RUN cp /opt/iredmail/conf/ldap_init.ldif ldifs/00_ldap_init.ldif \

By commenting these lines dockerfile, there is still this error :

 ldap_bind: Invalid credentials (49)

Is it possible to have access to the source of the builded image tagged example in docker hub ?

Services aren't starting

I've updated the image to use debian jessie. I'm wondering if you could give any advice on how I should start all services if I'm to use this as a mail service to an external Rails application. Any advice appreciated.

gpg key not working

I am stuck at this line of the Dockerfile build :

gpg: requesting key 810273C4 from hkp server keys.gnipg.net

I have also tried pgp.mit.edu

I am trying to migrate a iredmail install to a Docker iRedmail install.
I have stoped all the service launched by iRedmail
(postfix, amavis, clamd, spamasssassin, dovecot)

Some google search point a firewall issue for this but I couldn't figure out

errors on docker build

Following the readme instructions I get an error in the build stage:

Step 17 : RUN sed -i 's/ 101/ 0/' /usr/sbin/policy-rc.d   && IREDMAIL_DEBUG='NO'
 AUTO_USE_EXISTING_CONFIG_FILE=y     AUTO_INSTALL_WITHOUT_CONFIRM=y
 AUTO_CLEANUP_REMOVE_SENDMAIL=y     AUTO_CLEANUP_REMOVE_MOD_PYTHON=y
 AUTO_CLEANUP_REPLACE_FIREWALL_RULES=n
 AUTO_CLEANUP_RESTART_IPTABLES=y
 AUTO_CLEANUP_REPLACE_MYSQL_CONFIG=y     AUTO_CLEANUP_RESTART_POSTFIX=n
 bash iRedMail.sh   && apt-get purge -y -q dialog     apt-utils   && apt-get autoremove -y -q   &&
 apt-get clean -y -q   && rm -rf /var/lib/apt/lists/*   && sed -i 's/ 0/ 101/' /usr/sbin/policy-rc.d
 ---> Running in cd6ef9e0721d
/opt/iredmail/conf/global: line 171: /bin/uname: Permission denied
/opt/iredmail/conf/global: line 178: /bin/hostname: Permission denied
/opt/iredmail/conf/global: line 199: /bin/uname: Permission denied
Your architecture is not supported yet: .
Both i386 and x86_64 are supported by iRedMail.

Configuration for persistent data of mysql

conf :
Docker version 1.8.2, build 0a8c2e3
Linux prod-01 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) x86_64 GNU/Linux

I am trying to install `cema-sp/iredmail-docker with this docker-compose.yml file :

iredmail:
  image: cema/iredmail:example
  hostname: mail
  domainname: ilovesports.com
  privileged: true
  volumes:
    - /srv/docker/iredmail/backups:/backups:rw
    - /srv/docker/iredmail/mysql:/var/lib/mysql:rw
  ports: 
    - "25:25"
    - "80:80" 
    - "587:587"
    - "110:110"
    - "143:143"
    - "389:389"
    - "443:443"
    - "995:995"
    - "993:993"
    - "636:636"

When running the container got stuck on :

[~/iredmail]: docker-compose stop && docker-compose up
Stopping iredmail_iredmail_1... done
Starting iredmail_iredmail_1...
Attaching to iredmail_iredmail_1

Container start but mysql service is stopped, test from inside the container :

root@mail:/var/lib# service mysql status
MySQL is stopped..
root@mail:/var/lib# service mysql start
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!

Container logs only has Attaching to iredmail_iredmail_1

Content of folder /srv/docker on host is owned by root:docker

Content of folder /srv/docker/iredmail/mysql is empty

I have tried without mounting /var/lib/mysql and it worked, do you guy have the same issue ?

Last question, do I have any other volumes to mount so it won't lose any data on restart ?

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.