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!

Use a certain IP to send mail to AOL

Discussion in 'E-mail Discussion' started by madcow774, Dec 20, 2007.

  1. madcow774

    madcow774 Member

    Joined:
    Oct 23, 2002
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    151
    Hi all.

    I currently have this in my exim.conf:
    remote_smtp:
    driver = smtp
    interface = 123.123.123.123

    Is there a way that I can have exim use a certain IP when sending to AOL only & then use the above IP when sending to everyone else?

    Thanks in advance for any help you may be able to provide...
     
  2. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    168
    After the Demo Router Check - assuming you have domain keys installed

    #
    # Lookup Router Host for my AOL IP
    #

    multi_ip_lookuphost_dk:
    driver = dnslookup
    domains =aol.com
    #ignore verisign to prevent waste of bandwidth
    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
    require_files = "/var/cpanel/domain_keys/private/${sender_address_domain}"
    headers_add = "${perl{mailtrapheaders}}"
    transport = ip_remote_smtp_dk

    multi_ip_lookuphost:
    driver = dnslookup
    domains =aol.com
    #ignore verisign to prevent waste of bandwidth
    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
    headers_add = "${perl{mailtrapheaders}}"
    transport = ip_remote_smtp

    After Begin trasnports

    ip_remote_smtp:
    driver = smtp
    interface = ${lookup {${nhash_1:$message_id}} \
    lsearch {/etc/my_ips} {$value} {1.2.3.4}}

    ip_remote_smtp_dk:
    driver = smtp
    dk_private_key = "/var/cpanel/domain_keys/private/${dk_domain}"
    dk_selector = default
    interface = ${lookup {${nhash_1:$message_id}} \
    lsearch {/etc/my_ips} {$value} {1.2.3.4}}


    with the file my_ips having the IP

    If you change the nhash_1 - you can then have more than one ip in the my_ips file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. josesan311

    josesan311 Active Member

    Joined:
    Oct 29, 2007
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    56
    Hello,

    i changed domains from aol.com to gmail.com and i added the ip on /etc/my_ips but im getting the following error:

    2008-10-02 15:31:29 1KlTpb-000132-2v == mail@gmail.com R=multi_ip_lookuphost_dk T=ip_remote_smtp_dk defer (-53): retry time not reached for any host


    Any suggestion will be appreciated
     
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