Block all incoming mail traffic except certain addresses
hi folks,
can you please assist me in using the iptables firewall to block all incoming mail traffic (SMTP port 25) except that of a certain IP(s)? the situation is that we have a server that we only want to receive mail from a particular sender. thanks, jenny z. |
Code:
iptables -A INPUT -m tcp -p tcp --dport 25 -s 1.2.3.4 -j ACCEPT keep in mind that this will append to your already existing INPUT chain and can be negated by the rules above it. |
All times are GMT -5. The time now is 07:14 PM. |