Phillip,
    You say you've configured the firewall with iptables, but have you restarted it? I know it's a dumb question, but what's the output of:

iptables -L

Best Regards
Scott M

On Thu, Mar 26, 2020 at 11:05 PM Philip Rhoades <phil@pricom.com.au> wrote:
People,

Starting my MTA with:

podman run --rm -d -h pricom.com.au \
        -v /home:/home \
        -p 127.0.0.1:25:25 \
        -p 127.0.0.1:143:143 \
        -p 127.0.0.1:587:587 \
        -p 127.0.0.1:993:993 \
        -p 127.0.0.1:995:995 \
        --name indimail \
        `podman images | grep indimail | awk '{ print $3 }'` \
        indimail

- works happily and while mail delivery is working fine within the
container, the ports are not accessible from other computers ie:

I have opened ports on the host using iptables and when using nmap on
localhost get:

Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-27 13:47 AEDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000050s latency).
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 993 closed ports
PORT    STATE    SERVICE
22/tcp  open     ssh
25/tcp  filtered smtp
143/tcp filtered imap
587/tcp filtered submission
631/tcp open     ipp
993/tcp filtered imaps
995/tcp filtered pop3s

- which doesn't look promising and from another machine on the LAN I
get:

Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-27 13:44 AEDT
Nmap scan report for phil (192.168.1.20)
Host is up (0.00019s latency).
rDNS record for 192.168.1.20: phil.pricom.com.au
Not shown: 994 filtered ports
PORT    STATE  SERVICE
22/tcp  open   ssh
25/tcp  closed smtp
143/tcp closed imap
587/tcp closed submission
993/tcp closed imaps
995/tcp closed pop3s

- so I must still missing something about linking container ports to the
same host ports . .

Suggestions?

Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  phil@pricom.com.au
_______________________________________________
Podman mailing list -- podman@lists.podman.io
To unsubscribe send an email to podman-leave@lists.podman.io


--
-- 
Summit Virtual Experience
Scott McCarty
Product Management - Containers, Red Hat Enterprise Linux & OpenShift
Email: smccarty@redhat.com
Phone: 312-660-3535
Cell: 330-807-1043
Web: http://crunchtools.com
Using Azure Pipelines with Red Hat Universal Base Image and Quay.io: https://red.ht/2TvYo3Y