Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

smart router with verification

Discussion in 'E-mail Discussion' started by bigdessert, Jul 10, 2007.

  1. bigdessert

    bigdessert Active Member

    Joined:
    Jul 21, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    We have a smart router setup like this in two parts:

    smart_route:
    driver = manualroute
    route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}
    transport = remote_smtp_smart

    second part:

    remote_smtp_smart:
    driver = smtp
    port = 26
    hosts = ${lookup{$domain}lsearch{/etc/staticroutes}}
    hosts_override

    We have in the staticroutes localdomain.com: remote server ip
    And have 3 domains being forwarded.

    What I am trying to do, setup a flat file with email addresses and do some sort of recipient verification on it.
    I am a newb when it comes to exim, so if I could please have some direction.
    Thanks!
     
  2. bigdessert

    bigdessert Active Member

    Joined:
    Jul 21, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    figured it out added this condition line

    smart_route:
    driver = manualroute
    route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}
    condition = ${lookup {$local_part} lsearch {/etc/specificusers}{yes}{no}}
    transport = remote_smtp_smart
     
  3. gstevens

    gstevens Registered

    Joined:
    Dec 8, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51

    Hey bigdessert, what does the file /etc/specificusers end up looking like? Is each line something such as someone@example.com?

    Thanks for the info!
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice