Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2003
    Location
    Cambridge, UK
    Posts
    33

    Question 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?

    Many thanks.

    Regards,

  2. #2
    Join Date
    Sep 2005
    Location
    With My Laptop
    Posts
    5
    the best way is iptables

    first you must make new rule

    iptables -N smtp

    then type

    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

    Cheers ,

    SoFy .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •