Results 1 to 9 of 9

Thread: Configure Email Send from SMTP Host IP Rather than Server

  1. #1
    Registered Member
    Join Date
    Dec 2002
    Location
    Australia
    Posts
    97

    Default Configure Email Send from SMTP Host IP Rather than Server

    Hi,

    Hoping someone can help me configure this.

    I have assigned a dedicated IP and setup a DNS for mail.domain.com to the dedicated IP address.

    Now mail.domain.com is used to send email (SMTP). However, when I look at the headers of the received email, it is the domain and IP address of my primary reseller domain.

    I want the IP address and domain to be sent from mail.domain.com in the headers. I've enabled "Send mail from account’s dedicated IP address" under Exim configuration, but it isn't doing it.

    What do I need to change, so when email is sent via SMTP via mail.domain.com the dedicated IP address for this domain is used rather than something else.

    Many thanks!

  2. #2
    Registered Member
    Join Date
    Dec 2002
    Location
    Australia
    Posts
    97

    Default Re: Configure Email Send from SMTP Host IP Rather than Server

    To provide more info:

    I've assigned a dedicated IP address to userdomain.com which is hosted under a reseller account and mail.userdomain.com.

    However, when I send email from Outlook via SMTP mail.userdomain.com the headers are:

    Received: from server.host.com (differentresellerdomain. [xxx.xxx.xx.xx])
    by mx.google.com with ESMTPS id sadsadadgasdaserqz.254.2012.07.18.02.40.58
    (version=TLSv1/SSLv3 cipher=OTHER);
    Wed, 18 Jul 2012 02:41:00 -0700 (PDT)

    I have no idea why it is using a differentresellerdomain and its assigned IP address.

    However, I want the "Received" header to be something like:

    Received: from server.host.com (userdomain.com. [xxx.xxx.xx.xx])

    Why am I trying to do this? Because the main server host IP got blacklisted. It should be de-listed shortly, but I'm trying to get around it for a hosted client by assigning them their own IP address to send through for their SMTP host.

  3. #3
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    11,443
    cPanel Access Level

    Root Administrator

    Default Re: Configure Email Send from SMTP Host IP Rather than Server

    Why mail.userdomain.com? Are you saying you created a sub domain here? I'm unclear on that.

    Your email settings in your mail client will use mail.userdomain.com, but you don't have to do anything special there.

    1) Give an account a dedicated IP.

    2) At:
    WHM > Service Configuration > Exim Configuration Manager, Domains and IPs tab:
    Send mail from account’s dedicated IP address
    Automatically send outgoing mail from the account’s IP address instead of the main IP address. Warning: If you turn this setting on, make sure that reverse DNS entries match the ones in /etc/mail_reverse_dns.
    Set to On.

    Should get you:

    Received: from mydomainwithnewdedicatedip.com (123.45.678.130-static.reverse.softlayer.com. [123.45.678.130])
    by mx.google.com with ESMTPS id o20si8494801qct.82.2012.07.18.05.06.30
    (version=TLSv1/SSLv3 cipher=OTHER);
    Wed, 18 Jul 2012 05:06:30 -0700 (PDT)

    In this case that domain is on a softlayer server. Or is it that part you want to change?

  4. #4
    Registered Member
    Join Date
    Dec 2002
    Location
    Australia
    Posts
    97

    Default Re: Configure Email Send from SMTP Host IP Rather than Server

    Thanks Infopro,

    Ok, it's a bit more complicated.

    Regarding mail.userdomain.com -- this is just a "mail" A record that points to the new dedicated IP address.

    userdomain.com A actually points to an external IP address.

    resellerdomain.com has been assigned the new dedicated with reverse DNS -- the main reseller domain which userdomain.com is under.

    I've switched the setting to on, and the headers list the server host, main domain listed under my own reseller account and my reseller account's dedicated IP address for some strange reason. (I'm really confused why here)

    When switched to off, the headers list the server host, and then the server host and IP address.

    The result I'd love to get is like the softlayer scenario you provide. So that the mail sent via mail.userdomain.com is seen as coming from an IP address different to the server host.

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    11,443
    cPanel Access Level

    Root Administrator

    Default Re: Configure Email Send from SMTP Host IP Rather than Server

    So userdomain.com is using resellerdomain.com's shared IP for mail?

  6. #6
    Registered Member
    Join Date
    Dec 2002
    Location
    Australia
    Posts
    97

    Default Re: Configure Email Send from SMTP Host IP Rather than Server

    Yep, mail.userdomain.com is sharing resellerdomain.com dedicated ip. That is, it has its A record pointing to it.
    Last edited by Kurieuo; 07-18-2012 at 05:28 PM.

  7. #7
    Registered Member
    Join Date
    Dec 2002
    Location
    Australia
    Posts
    97

    Default Re: Configure Email Send from SMTP Host IP Rather than Server

    I've also tried the instructions at Changing the Sending IP for Outbound Email in Exim Exim from WHM, disabling "Send mail from account’s dedicated IP address" and enabling mailhelo and mailips within WHM, and editing them manually to add the userdomain.com as well as mail.userdomain.com.

    But the IP address of myresellerdomain is always put there when I use mail.userdomain.com for the SMTP server in Outlook -- userdomain.com is not under myresellerdomain though (it's under a different reseller account). So not sure why it keeps populating this in, instead of the settings in mailhelo and mailips.

  8. #8
    Registered Member
    Join Date
    Nov 2001
    Posts
    683

    Default Re: Configure Email Send from SMTP Host IP Rather than Server

    Did you ever get this resolved?
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  9. #9
    Registered Member
    Join Date
    Dec 2002
    Location
    Australia
    Posts
    97

    Default Re: Configure Email Send from SMTP Host IP Rather than Server

    Quote Originally Posted by electric View Post
    Did you ever get this resolved?
    My issue was specific to Google Mail which hosts my email while the DNS is hosted on my dedicated server running cPanel/WHM. In this case, the headers are always wrong, however it is only to my email account.

    Try sending a test email to a different email account/domain, and check whether the headers are correct. Chances are they will be. If not, then your issue is different to mine.

Similar Threads

  1. moved server cannot send email using smtp in php app
    By jimlongo in forum E-mail Discussions
    Replies: 2
    Last Post: 12-04-2013, 11:21 AM
  2. Configure Email to send through alternate IP's
    By fire692 in forum E-mail Discussions
    Replies: 0
    Last Post: 11-23-2010, 11:38 AM
  3. Configure Email to send through alternate IP's
    By fire692 in forum General Discussion
    Replies: 0
    Last Post: 11-23-2010, 11:38 AM
  4. how to configure my smtp server requires authentication
    By danhvinext in forum E-mail Discussions
    Replies: 1
    Last Post: 04-13-2007, 06:16 AM
  5. Replies: 7
    Last Post: 04-28-2005, 07:05 PM

Tags for this Thread

bargain