The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limit Inbound Email To Only Certain Servers

Discussion in 'E-mail Discussions' started by Huminie, Nov 29, 2003.

  1. Huminie

    Huminie Member

    Joined:
    Nov 24, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I use an email processing service that relays email to my server. I change my MX records to point to this company's servers and then they relay email to me.

    What I need to do is set up Exim so that it accepts email from this company's IP ranges, and only these IP ranges. (4 /24s).

    I read another thread which said to add the IPs to a file called /etc/alwaysrelay I did this and the IPs show up in /etc/relayhosts for a short time, but then disappear.

    Can someone tell me what the correct way to accomplish this is?

    Thanks!
     
  2. compunet2

    compunet2 Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    310
    Likes Received:
    0
    Trophy Points:
    16
    Try adding their IP ranges to relayhosts, then make the file read only.
     
  3. Huminie

    Huminie Member

    Joined:
    Nov 24, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Thanks I will give that a try...if anyone else has other suggestions, or knows of a reason not to do this, please let me know.
     
  4. cyberspirit

    cyberspirit BANNED

    Joined:
    Jun 27, 2003
    Messages:
    293
    Likes Received:
    0
    Trophy Points:
    0
    A better way to do it is actually to close incoming port 25 on your machine and only open it to the ip address range of your forwarding mx relay. This way nobody can even get to your exim.
     
  5. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    Per domain

    Is there a way to do this on one domain instead of the entire server?
     
  6. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
Loading...

Share This Page