Hello and welcome,
I’m trying to set an email address within my network (192.168.4.0/24 gate 192.168.4.1, email server 192.168.4.103).
I have a public IP address that the entire network accesses. The email server is located inside the network and has dst-nat rules set on it.
Generally, sending and receiving emails works, DNS records are set. However, there was a problem with delivering messages to external hosting. When the server is online, messages that should arrive receive the phrase “503 This mail server requires authentication when attempting to send to non-local e-mail address”.
I suspect that the problem is the NAT settings, which capture all ports to the mail and therefore it does not reach. Disabling them caused the e-mail (external) to start working.
Do you have any hints on how to solve this problem, or what have I set incorrectly in the navigation?
;;; EMAIL
chain=dstnat action=dst-nat to-addresses=192.168.4.103 to-ports=587 protocol=tcp
in-interface-list=WAN dst-port=587 log=no log-prefix=""
11 X ;;; EMAIL
chain=dstnat action=dst-nat to-addresses=192.168.4.103 to-ports=465 protocol=tcp
in-interface-list=WAN dst-port=465 log=no log-prefix=""
12 X ;;; EMAIL
chain=dstnat action=dst-nat to-addresses=192.168.4.103 to-ports=143 protocol=tcp
in-interface-list=WAN dst-port=143 log=no log-prefix=""
13 X ;;; EMAIL
chain=dstnat action=dst-nat to-addresses=192.168.4.103 to-ports=993 protocol=tcp
in-interface-list=WAN dst-port=993 log=no log-prefix=""
