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.

Question about rDNS for email.

Discussion in 'E-mail Discussions' started by krazos, Apr 4, 2015.

  1. krazos

    krazos Member

    Joined:
    Apr 13, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hi!

    I have a few questions I thought maybe you could help me with.

    So, Ive got 5 IP's for my cPanel server.
    Ive put the hostname for my server as webpanel.mydomain.com

    Now, I know I need to add an rDNS for my mailserver because my emails ends up in the spam folder. However, I'm not really sure which IP or what to set it to.

    1. Which IP should I set rDNS on? All of them?

    2. I want webpanel.mydomain.com as the hostname, and it's also the domain of what customers use when they access the panel. Do I need to set the rDNS to the same as the hostname? Because the rDNS for the mail should be mail.mydomain.com , but I dont want my server to have mail.mydoman.com as hostname, because its not only a mail server.

    Can I choose what IP should be used for mailsending and then just put an mail.mydomain.com as rDNS even if thats not the hostname?

    Im a little bit confused.
    Thanks in advance.
     
  2. madmanmachines

    madmanmachines Well-Known Member

    Joined:
    Nov 28, 2014
    Messages:
    94
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    HI,

    1. By default, mail will be sent from the main shared IP of your server. You can set and view this at WHM > Server Configuration > Basic cPanel & WHM Setup. However, if you have manually specified another mail IP, you would see this at `/etc/mailips'. If this file is empty, your main shared IP will be used for mail. You may also toggle this file on/off at WHM > Server Configuration > Exim Configuration Manager > "Reference /etc/mailips for outgoing SMTP connections".

    2.
    If this is the case and you are not specifying an alternative mail IP via `/etc/mailips', simply ensure the IP that "webpanel.mydomain.com" resolves to, has a PTR record of "webpanel.mydomain.com".

    If you are using `/etc/mailips' simply ensure that each IP specified in this file has matching forward/reverse DNS. Note the PTR records of these IP's do not have to correspond to your MX record.

    You may also find the following documentation helpful:
    How to Configure Exim's Outgoing IP Address

    Thanks,
     
  3. krazos

    krazos Member

    Joined:
    Apr 13, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider

    Thank you!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. krazos

    krazos Member

    Joined:
    Apr 13, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hi! Sorry for bumping, but I never got any further with this since we had to focus on other stuff.

    I wonder, if I only want one IP for mail-sending, is this how my /etc/mailips should look?:
    *: xxx.xxx.xxx.xxx


    only this? whereas xxx.xxx.xxx.xxx is my IP adress I want to use for mail.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, but you must also ensure you follow all other instructions found at:

    How to manually configure Exim's outgoing IP addresses

    Thank you.
     
  7. krazos

    krazos Member

    Joined:
    Apr 13, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    I forgot to answer and thank you.

    And btw, I have another question related to this, It's kinda hard to explain but I'll try.

    So the hostname is webpanel.mydomain.com for our cPanel server.
    Ive got 5 IP's assigned to this atm.

    When I set up a regular account for my own website on our cPanel server to try things out, the email for instance, the domain I was told to use to set up my email manually was webpanel.mydomain.com, how can I get this to be mail.mydomain.com but still have webpanel.mydomain.com as our hostname, just as it is now. The only thing I want to edit is the mailservers domain, nothing else.

    I hope you understand what I'm trying to achieve.

    And also, how is my /etc/mailhelo supposed to look?

    Thanks in advance, really appreciate any help I can get.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you clarify where you are attempting to change this? Do you have a SSL certificate installed for this domain name with Mail SNI enabled?

    If you want all email from the hostname, it should look like this:

    Code:
    *: hostname.example.com 
    Thank you.
     
  9. krazos

    krazos Member

    Joined:
    Apr 13, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Yes I have SSL certificate installed for this domain name, a wildcard SSL for our whole domain. I don't know if I have SNI enabled, where can I check this?

    I don't even know If I should have it enabled or disabled.


    Alright, thank you. So for instance "*: mail.mydomain.com" ?
     
  10. krazos

    krazos Member

    Joined:
    Apr 13, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hi, this is not a bump.

    But I don't wanna complicate things, so I'll skip this about using mail.mydomain.com , as I said earlier our domain is webpanel.mydomain.com

    We have 5 IP's assigned to the cPanel server, should I just update the rDNS for these 5 IP's to webpanel.mydomain.com and skip changing mailhelo and mailips files? Easier to just let it all be automatic.

    Thanks in advance.
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, it's normal and acceptable to have all of your IP addresses point back to the hostname of the server. This only changes if you decide to send email out through different IP addresses for different accounts.

    Thank you.
     
Loading...

Share This Page