Jump to content
Malfurious

[Support] Malfurious - Mailserver

10 posts in this topic Last Reply

Recommended Posts

Support for Mailserver docker container

Application Name: Mailserver
Docker Hub: https://hub.docker.com/r/malfurious/mailserver/
Github: https://github.com/Malfurious/mailserver

Description: A All-In-One Mailserver

Note: This docker is meant to be a companion to my roundcube-postfixadmin docker linked here.

There is a step-by-step guide on how to set this up on GitHub. 


Post any questions, issues, or comments relating to this docker in this thread.

Edited by Malfurious

Share this post


Link to post

Would love to play around with this but I can't seem to get either of the containers to install.  The mail server complains about let's encrypt (which I don't currently use), and the admin one complains about invalid hostnames and IPs.

 

Can you provide any assistance?

Share this post


Link to post

Similar problem here, but I have more information to track this down (I use my letsencrypt certificates from the linuxserver image as you described in the GitHub wiki):

 

My error message:

[INFO] Let's encrypt live directory found
[INFO] Using /etc/letsencrypt/live/mail.MYDOMAIN.net folder
[INFO] Found DKIM key pair for domain MYDOMAIN.net - skip creation
[INFO] MariaDB hostname not found in /etc/hosts
[ERROR] Container IP not found with embedded DNS server... Abort !

I think the problem lies in "run.sh" in either the the variable assignment or the added entry to /etc/hosts:

DBHOST=${MYSQL_HOST:-mariadb}
# Check mariadb hostname
grep -q "${DBHOST}" /etc/hosts

if [ $? -ne 0 ]; then
  echo "[INFO] MariaDB hostname not found in /etc/hosts"
  IP=$(dig A ${DBHOST} +short)
  if [ -n "$IP" ]; then
    echo "[INFO] Container IP found, adding a new record in /etc/hosts"
    echo "${IP} ${DBHOST}" >> /etc/hosts
  else
    echo "[ERROR] Container IP not found with embedded DNS server... Abort !"
    exit 1
  fi
else
  echo "[INFO] MariaDB hostname found in /etc/hosts"
fi

Since i don't know how to get into this container on startup and don't run a new instance on startup I'm stuck a little.

 

Can you investigate?

 

Improvement Idea: Also the template is missing the option for DBPORT, as for me all db's are running in separate containers with different ports.

 

EDIT:

Ok, found some more infos:

1. you can get the container to start and don't stop right away if you set the network option to "none" and then "docker exec -it malfiurios-mailserver sh" to get inside

2. the error message in /etc/hosts is 

; <<>> DiG 9.10.3-P4-Debian <<>> A <MY-MYSQL-IP> +short
;; global options: +cmd
;; connection timed out; no servers could be reached <MY-MYSQL-IP>

; <<>> DiG 9.10.3-P4-Debian <<>> A 127.0.0.2 +short
;; global options: +cmd
;; connection timed out; no servers could be reached 127.0.0.2

Since I read your readme all the way to the end (;-)) I found the hardware/mailserver GitHub and this issue there: https://github.com/hardware/mailserver/issues/150. Sadly the answer involves some config changes for docker-compose which we can't use on unraid.

 

The issue for your postfixadmin template here https://forums.lime-technology.com/topic/60111-support-malfurious-roundcube-postfixadmin/?do=findComment&comment=608953 seems to be the same, so maybe we can solve both.

 

Edited by xxlbug

Share this post


Link to post

Im having the same issue, would love to get this going, as I have wanted a home email solution for years!

Share this post


Link to post

Keen to try this out.  Any documentation out there?  By the looks I would have to create a number of subdomains, letsencrypt certs etc.  A youtube tutorial would be nice.

Share this post


Link to post
On 12/26/2017 at 1:34 AM, Brettv said:

Im having the same issue, would love to get this going, as I have wanted a home email solution for years!

 

On 12/19/2017 at 10:23 PM, xxlbug said:

Similar problem here, but I have more information to track this down (I use my letsencrypt certificates from the linuxserver image as you described in the GitHub wiki):

 

My error message:


[INFO] Let's encrypt live directory found
[INFO] Using /etc/letsencrypt/live/mail.MYDOMAIN.net folder
[INFO] Found DKIM key pair for domain MYDOMAIN.net - skip creation
[INFO] MariaDB hostname not found in /etc/hosts
[ERROR] Container IP not found with embedded DNS server... Abort !

 

 

 

Hi,

 

I just had the same problem but I solved it like this by adding my routers IP in /etc/resolv.conf and put it on the top:

# Generated DNSv4 entries:
nameserver 192.168.1.1
nameserver 8.8.8.8
nameserver 9.9.9.9


 

Share this post


Link to post

I was able to solve the MariaDB hostname issue with adding a DNS entry for the MariaDB container, however, now I am stuck at Redis hostname not found in /etc/hosts. There is no variable to set this, according to run.sh it is statically set for 127.0.0.2.  Anybody get past this?

Share this post


Link to post

Has anyone been able to get this working.  I've got the roundcube-postfixadmin container working but still have the above issues others have posted. 

Share this post


Link to post

I would love to use this, however it seems the project has been abandoned. I guess it is back to my Pi.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.