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.

Sending HELO for different IPs

Discussion in 'E-mail Discussions' started by ukzembla, Mar 2, 2010.

  1. ukzembla

    ukzembla Member

    Joined:
    Feb 9, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I'm having trouble getting the correct HELO response from my server, which always identifies itself as vps.serverdomain.com regardless of what I do.

    I've checked "Send HELO based on the domain name in /etc/mailhelo" and "Send outgoing mail from the ip that matches the domain name in /etc/mailips", edited both of those files and restarted exim, but no banana.

    /etc/mailhelo contains:

    newdomain.com: newdomain.com
    otherdomain.com: otherdomain.com
    *: vps.serverdomain.com

    and /etc/mailips contains:
    newdomain.com: ##.#.#.172
    otherdomain.com: ##.#.#.174
    *: ##.#.#.169

    where each of the IPs has rDNS set up correctly.

    What, if anything, am I doing wrong?

    Thanks,

    Alex
     
  2. ukzembla

    ukzembla Member

    Joined:
    Feb 9, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    In case it helps anyone, I added this to the top box of the advanced exim config editor and it now works fine:

    primary_hostname = vps.domain.com
    smtp_active_hostname = ${if exists {/etc/mailhelo}{${lookup{$interface_address}lsearch{/etc/mail_reverse_dns}{$value}{$primary_hostname}}}{$primary_hostname}}
    smtp_banner = "${smtp_active_hostname} ESMTP Exim ${version_number} \#${compile_number} ${tod_full} \n We do not authorize the use of this system to transport unsolicited, \n and/or bulk e-mail."
     
Loading...

Share This Page