Postfix not recieving or sending mail;

I am having this issue within Mail-in-a-Box and there is no error logs so I am quite confused…
|✖|Incoming Mail (SMTP/postfix) is running but is not publicly accessible at| | --- | --- | |✖|Outgoing Mail (SMTP 465/postfix) is running but is not publicly accessible at| |✖|Outgoing Mail (SMTP 587/postfix) is running but is not publicly accessible at|

Probably the easiest thing to do here is re-run the setup script

curl -s | sudo bash

If this doesn’t work or if you have already done this can you check the


file and determine if your public IP is ?

Might also want to check the


This file should have a mynetworks = [and your real public IP]

If you edit something you might want to restart postfix or just reboot the box.

service postfix restart

oh, also check


for your boxes name

 cat /etc/hosts localhost mail

where my server is “” but mostly others set their stuff up like “” so instead of mail above you might see/need “box”

Output of /etc/mailinabox.conf
STORAGE_USER=user-data STORAGE_ROOT=/home/user-data PRIMARY_HOSTNAME=(my hostname) PUBLIC_IP=(my actual ipv4) PUBLIC_IPV6=(my actual ipv6) PRIVATE_IP=(my actual ipv4) PRIVATE_IPV6=(my actual ipv6) MTA_STS_MODE=enforce
Output of /etc/postfix/
mynetworks = [::ffff:]/104 [::1]/128

Output of /etc/hosts

` localhost cockbox

The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouter `

resolved via setup script