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.

Mail server host name in greeting

Discussion in 'E-mail Discussions' started by marcusg70, Feb 11, 2006.

  1. marcusg70

    marcusg70 Registered

    Joined:
    Mar 21, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I am currently trying to find the correct way to setup reseller plans under WHM and need some help with the DNS setup.
    What I want is that every reseller has its own private nameservers, sharing the main nameserver IPs, so that all reseller nameservers point to the same IPs.

    After setting up the reseller accounts in WHM, setting up the reseller's nameservers and adding A records, I saw a "Fail" in "Missing (stealth) nameservers" in the DNS report.
    I found the solution by editing the DNS zone for the specific domain and that problem was solved.

    The remaining issue that I have right now is the "Mail server host name in greeting":
    WARNING: One or more of your mailservers is claiming to be a host other than what it really is

    I don't have any intento to change mailserver name or hostname - and actually the domain and everything is working fine - I just want to get this warning out of the DNS report.

    Thanks for any help.
    Marcus
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Can be changed by making "mail" zone file entry point to the mail server IP.

    domain.com. 14400 IN MX 0 mail.domain.com.
    mail 14400 IN A "IP of mail server"
     
  3. marcusg70

    marcusg70 Registered

    Joined:
    Mar 21, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks a lot. That helped :)
     
  4. freedog96150

    freedog96150 Well-Known Member

    Joined:
    Mar 25, 2005
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Nevada, USA
    This worked for me! Does anyone think that I will break future DNS records if I add this to the template files???

    Are there going to be any problems by using these lines in the dns db's versus the stock
    mail IN CNAME %domain%
    directives???
     
  5. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Did you?


    Did you ever try this and see?
     
  6. freedog96150

    freedog96150 Well-Known Member

    Joined:
    Mar 25, 2005
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Nevada, USA
    Seems to be working!

    The changes mentioned above to the zone template files seem to be working just fine. In fact, all new domains created with the modified zone template files are all reporting zero errors to services like dnsreport.com with respect to MX entries. I have also added the appropriate TXT=VSPF1 records to the zone templates so that all new domains are created with the appropriate information.
     
  7. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Thanks

    Thanks for the fast response. I have been playing around with the TXT= as well, still trying to figure it all out. So much conflicting information about it (many think it should not be used) and the Wizard used to set it is seems strange/confusing.

    I have a test case working with it now to see if things work out. I know there have been a few places that just flat refuse the email and I have wondered if it was not related to SPF. One is a person we email at NORAD, they say we have a mail problem. We've checked the logs, tailed the exim logs and everything and cannot find the problem, so I setup SPF and if it works will most likely try to add it to the zonefiles as well.
     
  8. freedog96150

    freedog96150 Well-Known Member

    Joined:
    Mar 25, 2005
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Nevada, USA
    For what it is worth, this is the line that I have added to my zone template files for the SPF configuration. It seems to be working for me and I have had no complaints, but I make no guarantees that it will work with someone else's configurations, etc.


    Code:
    %domain%. IN TXT "v=spf1 a mx ptr ip4:%ftpip% a:%nameserver% a:%nameserver2% a:%nameserver3% a:%nameserver4% -all"
     
  9. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Thanks

    Thanks I will try it out
     
  10. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Do you know of a place that lists the %whatever% commands? Thanks in advance.
     
  11. freedog96150

    freedog96150 Well-Known Member

    Joined:
    Mar 25, 2005
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Nevada, USA
    Those %whatever% commands are actually variables as defined by cpanel and its various scripts. There are quite a few variables that are common among the different scripts, templates, etc. I have learned the majority of what I use the old fashioned way, that is, reading scripts in the /scripts directory and by copying much of what I research and find in these very forums. Unfortunately, I do not have a consolidated list of these variables and many times refer back to stuff I have modified to *remember* the variables myself. A careful search of the forums may turn up some good info. I also remember reading in one of the posts that someone was working on a manual of all the cpanel tags and API's. Can't wait for that information to hit the wires.
     
  12. spiderwww

    spiderwww Registered

    Joined:
    May 5, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Dear marcusg70
    I am new to whm.
    and want to use My main Ips for my all resellers branded name server.
    How that can be used?
    Plz i need details for configuring WHM.
    Thanking in advance for your kind help.
    Regards.
    Spiderwww
     
  13. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Try this


    Here are some instructions: http://www.webhostgear.com/71.html
     
  14. spiderwww

    spiderwww Registered

    Joined:
    May 5, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Name server

    Hear Rhenderson.
    that is not usefull. plz let me know if you have done or others . thanks
     
  15. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    it works fine, just the wrong link. http://www.webhostgear.com/index.php?art/id:71

    If that link doesnt work do a search for nameservers, if you do not understand that you might consider hiring a sysadmin.

    Good luck
     
  16. dwolf77

    dwolf77 Member

    Joined:
    Jun 6, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Atlanta, GA
    I put this in my zone template hopeing to get the spf1 record to work however I seem to not get the spf1 portion when I create a new account. I do get the modification to work for the mail.%domain% and the mail IN A %ftpip% to work correctly. Can anyone see what I am doing wrong?

    Thanks!

    Code:
    ; cPanel %cpversion%
    ; Zone file for %domain%
    $TTL %ttl%
    @      %nsttl%	IN      SOA     %nameserver%. %rpemail%. (
    		%serial%	; serial, todays date+todays
    		86400		; refresh, seconds
    		7200		; retry, seconds
    		3600000		; expire, seconds
    		86400 )		; minimum, seconds
    
    %domain%. %nsttl% IN NS %nameserver%.
    %domain%. %nsttl% IN NS %nameserver2%.
    %domain%. %nsttl% IN NS %nameserver3%.
    %domain%. %nsttl% IN NS %nameserver4%.
    
    %domain%. IN A %ip%
    
    localhost.%domain%. IN A 127.0.0.1
    
    %domain%. IN MX 0 mail.%domain%.
    
    mail IN A %ftpip%
    www IN CNAME %domain%.
    ftp IN A %ftpip%
    
    %domain%. IN TXT "v=spf1 a mx ptr ip4:%ftpip% a:%nameserver% a:%nameserver2% a:%nameserver3% a:%nameserver4% -all"
     
  17. philosophico

    philosophico Registered

    Joined:
    Jan 30, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I have a question.

    Does your hostname have to be a functioning domain or can it be a made up one? Everytime I put in my hostname I get a failed mark saying another domain is trying to be the mail server but that domain is my hostname however it dosnt agree with my websites domain of course.

    My question is how do I fix this. I have to send mail but of course certain ISP emails will block this if it is not corrected what do i do?
     
  18. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Your mail server must be a correctly setup fully qualified domain name. That is, there must be an A record for the hostname of the server in the zone for the domain that it is for.
     
Loading...

Share This Page