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.

Verify Recipient before smart_route

Discussion in 'General Discussion' started by NetBlaster, Nov 16, 2005.

  1. NetBlaster

    NetBlaster Member

    Joined:
    Jun 12, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    I've searched the forums for two days with no luck.

    I'm using smart_route to forward email to an exchange server. The domain gets a ton of Dictonary attachs and I've emplemented this script http://www.configserver.com/free/eximdeny.html but it doesn't knock a dent in the volume.

    Is there a way to create a alias file for this domain to have Exim verify recipients against before sending it to the exchange server?

    Router Config:

    smart_route:
    driver = manualroute
    route_list = domain.com xxx.xxx.xxx.xxx
    transport = remote_smtp_smart

    Transport Config:

    remote_smtp_smart:
    driver = smtp
    multi_domain = false
    port = xxxx


    Thanks,

    Ron...
     
  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
    Yes, you can do forward lookups:

    Router:
    Transport:
    Then add into /etc/staticroutes:

    domain.com: 11.22.33.44
     
  3. NetBlaster

    NetBlaster Member

    Joined:
    Jun 12, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    This works great but can I create a explicate list of email addresses that will only be accepted?

    Like:

    File name /etc/remotemails

    with:

    user1@domain.com
    user2@domain.com
    ...


    That way only these email addresses are accepted.

    I know this probable isn't a good rule of thumb or idea but it's only for one domain and I control it.


    Thanks,

    Ron...
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You could probably modify the exim code above to do that, but the purpose of the forward lookups is to do that on the destination server.
     
  5. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    Chirpy, could you briefly explain what your code of forward lookups does on the destination server?

    And is this only applicable to Exchange servers?
     
Loading...

Share This Page