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 1.1.1.1:25.| | --- | --- | |✖|Outgoing Mail (SMTP 465/postfix) is running but is not publicly accessible at 1.1.1.1:465.| |✖|Outgoing Mail (SMTP 587/postfix) is running but is not publicly accessible at 1.1.1.1:587.|
Probably the easiest thing to do here is re-run the setup script
curl -s https://mailinabox.email/setup.sh | sudo bash
If this doesn’t work or if you have already done this can you check the
/etc/mailinabox.conf
file and determine if your public IP is 1.1.1.1 ?
Might also want to check the
/etc/postfix/main.cf
This file should have a mynetworks = 127.0.0.0/8 [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
/etc/hosts
for your boxes name
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 mail
where my server is “mail.example.com” but mostly others set their stuff up like “box.example.com” 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/main.cf
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
Output of /etc/hosts
`
127.0.0.1 localhost
185.10.68.206 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