Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Mattermost wont connect to postfix

$
0
0

Thank you both for your help so far!

Re postfix:

$ ps aux | grep 'postfix\|master'
_postfix 62853 0.0 0.0 2463172 3024 ?? S 1:19am 0:00.01 qmgr -l -t fifo -u
_postfix 62852 0.0 0.0 2454920 2968 ?? S 1:19am 0:00.01 pickup -l -t fifo -u -o content_filter=
root 62851 0.0 0.0 2454836 3000 ?? Ss 1:19am 0:00.02 master -e 60

and ports

$ sudo lsof -i -P | grep master
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
master 63047 root 13u IPv4 0x69f0b21b1f9d697b 0t0 TCP localhost:25 (LISTEN)
master 63047 root 14u IPv6 0x69f0b21b1bc8496b 0t0 TCP localhost:25 (LISTEN)
master 63047 root 26u IPv4 0x69f0b21b1fba6283 0t0 TCP localhost:587 (LISTEN)
master 63047 root 27u IPv6 0x69f0b21b1bc8292b 0t0 TCP localhost:587 (LISTEN)

Again, emails via the mail command are sent fine.

Meanwhile, mattermost:

$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d13b4599f2ba mattermostdocker_web "/bin/sh -c /docke..." 9 days ago Up 17 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp mattermostdocker_web_1
aba0c7a80380 mattermostdocker_app "/docker-entry.sh ..." 9 days ago Up 17 minutes 80/tcp mattermostdocker_app_1
2b461e02d57d mattermostdocker_db "/docker-entrypoin..." 9 days ago Up 17 minutes 5432/tcp mattermostdocker_db_1

and

hayim$ docker exec d13b4599f2ba cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.18.0.4 d13b4599f2ba

Finally, I appear to be able to access the host from within the docker:

root@d13b4599f2ba:/# ping 192.168.100.101
PING 192.168.100.101 (192.168.100.101): 56 data bytes
64 bytes from 192.168.100.101: icmp_seq=0 ttl=37 time=0.757 ms
64 bytes from 192.168.100.101: icmp_seq=1 ttl=37 time=0.475 ms
64 bytes from 192.168.100.101: icmp_seq=2 ttl=37 time=0.471 ms
64 bytes from 192.168.100.101: icmp_seq=3 ttl=37 time=0.506 ms
^C--- 192.168.100.101 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.471/0.552/0.757/0.119 ms

In the System Console for my mattermost team I have
SMTP Server: localhost
SMTP Server Port: 25
Connection Security: None

which is a close as I could match to the instructions here. I have also tried 127.0.0.1 in place of localhost.

So, to summarise:
- postfix is working on the host, and listening on tcp:25
- the docker container mattermost_docker_web_1 has address 172.18.0.4, and can ping the host
- mail settings in the docker seem to be ok?

Questions:
- postfix is not listening on the docker's IP... but should it be?
- mattermost is trying to use the IPV6 address for localhost... is that an issue?
- ...??

Let me know if any further info would help! Thanks!!


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>