var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Restricting Sendmail incoming connections
I would like to restrict incoming SMTP connections to my Sendmail 8 server based on a list of pre-approved IP addresses/subnets.
Can anyone suggest the easiest way to do this please?
the best way is iptables
first you must make new rule
iptables -N smtp
iptables -A INPUT -p tcp --dport 25 -j smtp
after that you will put the IP address that you want to allow them to enter smtp connections
iptables -A smtp -s IP -j ACCEPT
replace IP with the IP that you want it to access smtp
after that DROP any other packets , by
iptables -A smtp -j -DROP