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.

EXIM mail send from users dedicated IPs help.

Discussion in 'E-mail Discussions' started by Ben Harris, Jul 24, 2008.

  1. Ben Harris

    Ben Harris Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hello there,

    I am trying to setup exim to send mail for users with dedicated IP addresses from their dedicated IPs. I have checked the box under the exim configuration editor (Send outgoing mail from accounts ip address instead of the main ip address. [Warning: If you turn this setting on you should make sure your reverse dns entries match the ones in /etc/mail_reverse_dns])

    I have checked that rDNS is setup for the clients ip xx.xx.xx.177 / domain.tld. I have also checked that the rDNS entries match those of /etc/mail_reverse_dns.

    Whenever I send mail from one of the clients mail accounts the mails are always sent from the servers hostname (hostname.hostdomain.tld) / IP (xx.xx.xx.234)

    running host domain.tld returns the following

    root@server [~]# host domain.tld
    domain.tld has address xx.xx.xx.177
    domain.tld mail is handled by 0 domain.tld.

    root@server [~]# host xx.xx.xx.177
    177.xx.xx.xx.in-addr.arpa domain name pointer domain.tld.

    Any help would be appreciated.

    Kind Regards,

    Ben Harris
     
  2. lvlind

    lvlind Active Member

    Joined:
    Jun 7, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Vinnica, Ukraine
    Hi

    Can you show me your RFC headers?
    Also have you upgraded your WHM to latest version?
    Have you enabled option "Domains and Ips" in WHM -> Exim Configuration Editor ?
    Have you added record in /etc/mail_reverse_dns?
     
  3. Ben Harris

    Ben Harris Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    This is mostly in tact, I have just removed the IPs, domains, and a few characters from the message ID and such. 80.42.248.88 is my current IP.

    Delivered-To: *******************@gmail.com
    Received: by 10.100.207.17 with SMTP id e17cs44995ang;
    Fri, 25 Jul 2008 14:33:59 -0700 (PDT)
    Received: by 10.115.91.2 with SMTP id t2mr2648065wal.62.1217021637698;
    Fri, 25 Jul 2008 14:33:57 -0700 (PDT)
    Return-Path: <test@domain.tld>
    Received: from domain.tld (server.hostname.tld [xx.xx.xx.234])
    by mx.google.com with ESMTP id k9si18094605wah.7.2008.07.25.14.33.56;
    Fri, 25 Jul 2008 14:33:57 -0700 (PDT)
    Received-SPF: neutral (google.com: xx.xx.xx.234 is neither permitted nor denied by best guess record for domain of test@domain.tld) client-ip=xx.xx.xx.234;
    Authentication-Results: mx.google.com; spf=neutral (google.com: xx.xx.xx.234 is neither permitted nor denied by best guess record for domain of test@domain.tld) smtp.mail=test@domain.tld
    Received: from 80-42-248-88.dynamic.dsl.as9105.com ([80.42.248.88]:2589 helo=ben)
    by server.hostname.tld with esmtpa (Exim 4.69)
    (envelope-from <test@domain.tld>)
    id 1KMUvD-0001nB-Fh
    for *******************@gmail.com; Fri, 25 Jul 2008 22:33:55 +0100
    From: "Test" <test@domain.tld>
    To: <*******************@gmail.com>
    Subject: test
    Date: Fri, 25 Jul 2008 22:33:49 +0100
    Message-ID: <**********9e$22c728a0$685579e0$@co.uk>
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_NextPart_000_0E6C_01C8EEA6.***B90A0"
    X-Mailer: Microsoft Office Outlook 12.0
    Thread-Index: **********Z/9kyzR9OOSm4W23d3Aw==
    Content-Language: en-gb
    X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
    X-AntiAbuse: Primary Hostname - server.hostname.tld
    X-AntiAbuse: Original Domain - gmail.com
    X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
    X-AntiAbuse: Sender Address Domain - domain.tld
    X-Source:
    X-Source-Args:
    X-Source-Dir:


    We are currently running WHM 11.23.2 cPanel 11.23.4-R26138

    Yes

    yes, ours looks like as follows

    xx.xx.xx.234: server.hostname.tld
    xx.xx.xx.177: domain.tld

    there are obviously a few more for other clients with dedicated IPs, but they are all the same format.

    Thank you for your assistance.

    Kind Regards,

    Ben
     
  4. lvlind

    lvlind Active Member

    Joined:
    Jun 7, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Vinnica, Ukraine
    1

    Write me to ICQ and I'll give you my script which will generate correct mail_reverse_dns using config of your CPanel/WHM.
    Anyway if you afraid 3d person scripts - it seems there are wrong records in your /etc/mail_reverse_dns file they should be like
    111.111.111.111 yourserverip.com
    222.222.222.222 yourdomain.com
    without *.tld
    Hope it helps.
    Please check
    Also I advice you setup Domainkeys and SPF record, it will help to pass checking at Gmail and Yahoo
    You can generate Domainkeys using SSH:
    /usr/local/cpanel/bin/domain_keys_installer username
    and SPF using Edit DNS zone in your WHM
    the record should be like:

    domain.com. TXT "v=spf1 a ip4:XXX.XXX.XXX.XXX ?all"

    where XXX.XXX.XXX.XXX ip address of your domain
     
    #4 lvlind, Jul 28, 2008
    Last edited: Jul 28, 2008
  5. Ben Harris

    Ben Harris Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi there,

    Im afraid I dont have ICQ, I have gone through with the format you just stated, and this is what is in there now.

    xx.xx.xx.234 hostname.server.net
    xx.xx.xx.177 domain.co.uk

    I restarted exim after the changes, sent a test email, and the headers are still the same as what I posted above.

    Thank you for your help in advance,

    Kind Regards,

    Ben
     
  6. lvlind

    lvlind Active Member

    Joined:
    Jun 7, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Vinnica, Ukraine
    Spf

    Have you installed SPF and domain keys, if not please install them and show me RFC headers again.
     
  7. Ben Harris

    Ben Harris Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    I have now done both, and the headers remain the same again.

    Delivered-To: *******************@gmail.com
    Received: by 10.100.207.17 with SMTP id e17cs245147ang;
    Tue, 29 Jul 2008 16:23:46 -0700 (PDT)
    Received: by 10.115.59.2 with SMTP id m2mr7512361wak.187.1217374825493;
    Tue, 29 Jul 2008 16:23:45 -0700 (PDT)
    Return-Path: <test@domain.co.uk>
    Received: from domain.co.uk (server.hostname.net [xx.xx.xx.234])
    by mx.google.com with ESMTP id n30si414275wag.13.2008.07.29.16.23.43;
    Tue, 29 Jul 2008 16:23:45 -0700 (PDT)
    Received-SPF: neutral (google.com: xx.xx.xx.234 is neither permitted nor denied by best guess record for domain of test@domain.co.uk) client-ip=xx.xx.xx.234;
    DomainKey-Status: good
    Authentication-Results: mx.google.com; spf=neutral (google.com: xx.xx.xx.234 is neither permitted nor denied by best guess record for domain of test@domain.co.uk) smtp.mail=test@domain.co.uk; domainkeys=pass header.From=test@domain.co.uk
    DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=domain.co.uk;
    h=Received:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:X-Mailer:Thread-Index:Content-Language:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-Source:X-Source-Args:X-Source-Dir;
    b=BWaMa0Pq9Ntgnlg8P0DeF5F4YoHu5K41bMR88KfDSmOaB5BpvTmdjdmkRbeeVnG0tq7DvLSyeiue9MRDgH9P//Go4c0f/tRFdjzdL0CmZ462OPxLFHc9fKeYlo+fAjzb;
    Received: from 80-42-248-88.dynamic.dsl.as9105.com ([80.42.224.220]:2750 helo=ben)
    by server.hostname.net with esmtpa (Exim 4.69)
    (envelope-from <test@domain.co.uk>)
    id 1KNyXd-0008Fk-UK
    for *******************@gmail.com; Wed, 30 Jul 2008 00:23:43 +0100
    From: "Test" <test@domain.co.uk>
    To: <*******************@gmail.com>
    Subject: test
    Date: Wed, 30 Jul 2008 00:23:30 +0100
    Message-ID: <000221c8f1d2$1f1623f0$5d426bd0$@co.uk>
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_NextPart_200_0001_01C8F1DA.80DA8BF0"
    X-Mailer: Microsoft Office Outlook 12.0
    Thread-Index: AcjxrhqpF+jQYSwmQFuJSofHXtEcEw==
    Content-Language: en-gb
    X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
    X-AntiAbuse: Primary Hostname - server.hostname.net
    X-AntiAbuse: Original Domain - gmail.com
    X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
    X-AntiAbuse: Sender Address Domain - domain.co.uk
    X-Source:
    X-Source-Args:
    X-Source-Dir:

    Regards,

    Ben
     
  8. lvlind

    lvlind Active Member

    Joined:
    Jun 7, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Vinnica, Ukraine
    SPF and rDNS

    Can you show me one of your domain names, I need to check if you setup SPF record correct and if it is having rDNS?
     
  9. jarodlwk

    jarodlwk Active Member

    Joined:
    Sep 24, 2006
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    i am facing the same problem too. any help would be appreciated.
     
  10. delsurf

    delsurf Registered

    Joined:
    Apr 17, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I would like help with this as well... anyone?
     
  11. lvlind

    lvlind Active Member

    Joined:
    Jun 7, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Vinnica, Ukraine
    Heh

    I've new version of my script to resolve this problem, if you want I can give it to you for free. You can contact me via ICQ
     
Loading...

Share This Page