I’m trying to configure a Postfix server. I’m being able to receive emails, but I cannot send emails because it seems that the outgoing port connection 25 is somehow not being able to connect.
When i try to telnet the external server, I get this:
telnet gmail-smtp-in.l.google.com 25
Trying 142.250.0.27...
Trying 2800:3f0:4003:c03::1a...
telnet: Unable to connect to remote host: Network is unreachable
I’ve tried a lot of suggestions from other threads but none of them worked, I end up with the following configuration:
/ip firewall filter
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=accept chain=input comment="allow openvpn udp port 1194" dst-port=1194 in-interface-list=!LAN protocol=udp
add action=drop chain=input comment="drop everything else not from LAN" in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related hw-offload=yes
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
/ip firewall nat
add action=dst-nat chain=dstnat comment="forward mail ports to 10.10.20.105" dst-address=!10.10.20.0/24 dst-address-type=local dst-port=25,443,993 protocol=tcp to-addresses=10.10.20.105
add action=masquerade chain=srcnat comment="Harpin Nat"
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
Any suggestion will be very appreciated.
Carlos