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.

Outgoing Headers List Dedicated IP and Shared IP

Discussion in 'E-mail Discussions' started by dkz, Mar 11, 2010.

  1. dkz

    dkz Well-Known Member

    Joined:
    Sep 10, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    I am trying to stop my e-mails from going into spam/bulk folders for yahoo and hotmail with my accounts that have dedicated IP's for.

    I have the option enabled in the cpanel exim config to use the dedicated ip and the e-mails go out from the primary IP but it looks like they are forwarded from the shared IP to the dedicated IP and then sent out. The headers list the shared ip then the primary IP.

    Is this normal and would it cause spam filters to go off?
    Here is a copy of the headers.
    Code:
    Received: from WEBSITE-ADDRESS.com ([dedicated.ip]) by SNT0-MC3-F14.Snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959);
    	 Thu, 11 Mar 2010 08:00:24 -0800
    DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=WEBSITE-ADDRESS.com;
    	h=Received:From:To:Subject:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID:Date:X-Source:X-Source-Args:X-Source-Dir;
    	b=Ppe1D3HqOdO9/o1kfcopEiskIZYWfmipMdP2efOEsAQKAsLO3YYukm9g7+g42D6hLjwQ5c0CUYnzAdEFI41Y9B64zWSrXbwiMWPSsAM7hezMWHNc7UvDMrBPWfQ06RsH;
    Received: from mail.WEBSITE-ADDRESS.com ([dedicated.ip] helo=localhost)
    	[B]by primary.address.com with esmtpsa (TLSv1:AES256-SHA:256)[/B]
    	(Exim 4.69)
    	(envelope-from <info@WEBSITE-ADDRESS.com>)
    	id 1NpkoA-0007yS-Lz
    	for email@hotmail.com; Thu, 11 Mar 2010 09:00:22 -0700
    The line in question is in bold.
    Thanks for the help!
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  3. dkz

    dkz Well-Known Member

    Joined:
    Sep 10, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the link. My only question is with
    Code:
    primary_hostname = vps.domain.com
    Since it's for a few domains, how would I configure it so it uses the domain that is sending the email?

    Would this work?
    Code:
    primary_hostname = ${lookup{$interface_address}lsearch{/etc/exim_primarydomain_list}{$value}}
    The file /etc/exim_primarydomain_list would be a new file with a list of ip's and the matching domain.
     
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Do you have both WHM options in the Exim Config Editor under "Domains and IPs" checked?

    If so have you confirmed the proper entries exist in /etc/mailhelo, etc/mailips and /etc/mail_reverse_dns (see yet another link here: http://forums.cpanel.net/505493-post3.html)?

    Then adding the lines:
    primary_hostname = "your server name here"
    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." should do the lookup and send on the correct IP.

    Also from another forum:

    Code:

    received_header_text = Received: \
    ${if def:sender_rcvhost {from $sender_rcvhost\n\t}\
    {${if def:sender_ident \
    {from ${quote_local_part:$sender_ident} }}\
    ${if def:sender_helo_name {(helo=$sender_helo_name)\n\t}}}}\
    by $smtp_active_hostname \
    ${if def:received_protocol {with $received_protocol}} \
    ${if def:tls_cipher {($tls_cipher)\n\t}}\
    (Exim $version_number)\n\t\
    ${if def:sender_address \
    {(envelope-from <$sender_address>)\n\t}}\
    id $message_exim_id\
    ${if def:received_for {\n\tfor $received_for}}



    At least that's what working for us.

    (One note - I'm seeing an additional space after the first primary_hostname entry which seems due to a forum or code anomaly.)
     
  5. dkz

    dkz Well-Known Member

    Joined:
    Sep 10, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    So with the primary_hostname, does it matter if the server has many dedicated ip sites. Is it possible to have each domain name use it's own hostname listing or does it have to be the server's primary hostname.

    And, yes I do have the option enabled in WHM. I also review the config files and everything looks good.
     
  6. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Yes, that should be what you are seeing by implementing and testing this setup.

    If not perhaps you can report back on what changes you had to make?
     
Loading...

Share This Page