Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    dkz
    dkz is offline
    Member
    Join Date
    Sep 2004
    Posts
    100

    Default Outgoing Headers List Dedicated IP and Shared IP

    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)
    	by primary.address.com with esmtpsa (TLSv1:AES256-SHA:256)
    	(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. #2
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,310
    cPanel/Enkompass Access Level

    Root Administrator

  3. #3
    dkz
    dkz is offline
    Member
    Join Date
    Sep 2004
    Posts
    100

    Default

    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. #4
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,310
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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:

    One last thing remaining, the Received: lines also contain the primary hostname. The following code should use the virtual domain like the above lines and will fall back to the primary hostname if the virtual domain isn't using a dedicated IP and/or not listed in the domainips files.

    Seach for the "smtp_banner" string and below it add the following (as of Exim 4.68):
    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. #5
    dkz
    dkz is offline
    Member
    Join Date
    Sep 2004
    Posts
    100

    Default

    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. #6
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,310
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dkz View Post
    Is it possible to have each domain name use it's own hostname listing.
    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?

Similar Threads & Tags
Similar threads

  1. Exim HELO & headers for domains on shared IP
    By jman_ in forum E-mail Discussions
    Replies: 6
    Last Post: 01-17-2010, 12:43 PM
  2. Exim HELO & headers for domains on shared IP
    By jman_ in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-04-2010, 12:25 PM
  3. Need list of all outgoing mails sent for a domain
    By ebizindia in forum E-mail Discussions
    Replies: 1
    Last Post: 11-09-2009, 04:25 AM
  4. Dedicated IP in, Shared IP out
    By eriktm in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-08-2009, 11:38 AM
  5. Replies: 1
    Last Post: 05-24-2007, 02:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube