Closed killmasta93 closed 2 years ago
Hi @immauss so i changed the port to 25 because on the host it seems that port is 25
master 1203 root 13u IPv4 25720 0t0 TCP 127.0.0.1:25 (LISTEN)
master 1203 root 14u IPv6 25721 0t0 TCP [::1]:25 (LISTEN)
but still cant seemed to get it working
Thank you
Hi any updates on this im also having the same issue? @immauss
Thank you
Start by checking the mailq in the container.
docker exec -it
If the container mailq is empty, (It should be.) then check the mailq on the host.
Also, look in the mail logs on the host and see if there are any clues there.
If the emails are getting stuck in the queue on the host, you'll need to fix that first.
If they are getting stuck on the container, let me know and I "might" be able to help you out.
-Scott
Thank you so much for the reply, currently in my container im getting this the emails are getting stuck in the container
From this, it looks like the problem is on the host. Make sure you have firewall rules in place to allow the connection and that the host postfix is listening on the docker0 interface ip.
-Scott
thank you for the reply, so this is what i did on the docker container i used nmap to check if the port i opened which it is
ssh on the docker container
root@5d48b03b445d:/# nmap -p 25 172.17.0.1
Starting Nmap 7.80 ( https://nmap.org ) at 2022-06-19 22:01 UTC
Nmap scan report for proxy (172.17.0.1)
Host is up (0.00020s latency).
PORT STATE SERVICE
25/tcp open smtp
Nmap done: 1 IP address (1 host up) scanned in 0.35 seconds
root@5d48b03b445d:/#
on my host i changed the postfix main.cf to this
inet_interfaces = localhost, 172.17.0.1
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.18.0.0/16
but still cant seem to get it working not sure what else i need
it seemed i needed to also add this which solved the issue
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
Awesome! My "postfix foo" is not that great. Glad you worked it out! Thanks for the follow up too.
-Scott
Hi I was wondering if someone could shed some light on the email alerts
Currently on my host i have postfix installed and this is my main.cf
and i test the config and i get the email
echo "My message" | mail -s subject alerts@domain.com
now on the container this is my docker compose
i run the test alert alert on openvas it says it works but i get no email
Thank you