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.

Relaying Mail from One Ip

Discussion in 'E-mail Discussions' started by psychodreams, Oct 23, 2005.

  1. psychodreams

    psychodreams Well-Known Member

    Joined:
    Apr 14, 2004
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    I Need to allow mail relaying from one specific ip how would I go about doing this
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Do a search on the forums for: exim interface
     
  3. psychodreams

    psychodreams Well-Known Member

    Joined:
    Apr 14, 2004
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    :)

    I did a search for that went through every post and nothing
    Any recommendations
     
  4. eeadmin

    eeadmin Well-Known Member

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

    I'd like to see how to limit incoming mail to certain domain only from a specific IP. I use an off site gateway filter that needs to be the only mechanism by which email gets to the domain. Ofcourse intra server emails need to get to the domain as well....Any ideas?
     
    #4 eeadmin, Oct 26, 2005
    Last edited: Oct 26, 2005
  5. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    How about with SA SpamAssassin

    How about if I try to do this with a Spam Assassin. I can limit the ip relaying using trusted_networks in the local.cf file. Will that work to some degree. Then you could set your spam filtering very tight.
     
    #5 eeadmin, Oct 31, 2005
    Last edited: Nov 1, 2005
  6. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    ADDED IPS to RELAY

    ADDED a series of ips to trusted nttwork in
    /etc/mail/spamassassin/local.cf

    trusted_networks XX,.XXXXXX
    trusted_networks ETC....


    Then with in the domain user_pref
    score all_trusted -5.0

    I sent an email from a different server. It relayed throught the off server spam filtering to my server. But when it is received it doesn't contain the all trusted

    Is what I see...
    X-Spam-Status: No, score=0.0 required=10.0 tests=HTML_MESSAGE
    autolearn=unavailable version=3.1.0

    I need it to be recognized as a ALL_TRUSTED source.

    Does anybody know what I am doing wrong.
     
  7. eeadmin

    eeadmin Well-Known Member

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

    Okay I don't think this checks for the most recent sent of ip relays. I think it checks all ip relays. If they are all with in the trusted list then the email gets the all trusted stamp.

    but what I need it to get the stamp if the last set of relays worked.
     
    #7 eeadmin, Nov 7, 2005
    Last edited: Nov 23, 2005
  8. eeadmin

    eeadmin Well-Known Member

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

    What is I set these networks to internal_networks instead of trusted.. would that help.. Not sure where to do that.

    Let me try.
     
  9. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    Found a way to do this

    Since all my message go through a gate way. I set up a -10 score in spamassassin for all legitimate emails coming through that gateway. In the spam assassin world that is a good thing, it allows the mail to go through more easily. If the message comes directly to the server, straight to the ip or mail.domainname.com, the message doesn't recieve the score. So messages that don't go through the gate way are much more likely to be considered spam. Then all I have to do is reduce the threshold for spam. I am at 3.0 on most domains. I will most likely move down to 1.0 if it continues to work this well.
     
Loading...

Share This Page