I want to be able to be able to connect to 1.1.1.1 through port 110 to send email. I currently have the following setiptables -A OUTPUT -d 1.1.1.1 -j ACCEPTBut it replies with the error 01:37:39 [mta-test] A test email has not been successfully sent to the email address me@me.com: Unable to connect to mail server: Connection timed out(110)What do I need to add so 1.1.1.1 can only connect back through port 110? I have tried the following without any luck.iptables -A INPUT tcp --sport 110 -s 1.1.1.1 -j ACCEPTiptables -A INPUT -p tcp -m tcp --dport 110 -s 1.1.1.1 -j ACCEPT
Allow INPUT only on one specific port?
iptables