Wishlist 0 ¥0.00

域名邮箱设置MX记录的时候,是否支持主机名为空呢?

由于不同的域名提供商提供的设置要求的差异,建议输入"@"试试。

关于MX记录的问题 问题

关于MX记录

解决方案
域名解析主要有4个主要类型:
NS DNS
MX 邮件
A IP地址
CNAME 别名

除了A记录,其他3个类型都是要解析到主机名的。
比如:
...
IN MX 0 mail
IN MX 10 mail.yourdomain.com.
...

我们来看一个邮件服务器在发信的时候,是怎么判断发送到那里的过程。
This email address is being protected from spambots. You need JavaScript enabled to view it.
此时,他会做两次DNS查询。
第一次,先查询yourname.com的mx记录,查出mx记录对应的主机名之后,再查询这个主机名对应的IP。
然后再将邮件发送到IP。
这个过程可以用dig命令模拟。
第一步:
dig +short yehglobal.com mx
结果:
0 mail.yehglobal.com.
10 mail.yehglobal.com.
第二步:
dig +short mail.yehglobal.com
结果:
210.78.128.66

有的服务商,错误地把mx记录直接解析到了IP地址。大部分的邮件服务器可以正常工作,但是会提示错误:Warning: numeric address in MX record!。
有的邮件服务器可能就会把IP地址当作一个主机名,致使邮件发不出去。

我们再来看有关mx记录的其他要注意的地方。
1. 多条mx记录
在刚才的例子中,我们看到,查询mx记录时返回了两条记录:
0 mail.yehglobal.com.
10 mail.yehglobal.com.
其中的0和10代表优先级,数越小,优先级越高。多条mx记录,一般情况下,是说邮件可以按顺序发送到这些主机,有的时候,多条记录可能是相同的(例子中的情况),
这是为了增加冗余和重试次数。
2. 相对主机名和绝对主机名
...
MX IN 0 mail
MX IN 10 mail.otherdomain.com.
...
这个例子中,一个记录是mail,另一条记录是mail.yourdomain.com.,第一条最后没有“.”字符的记录是相对主机名,实际上会被加上这个域名,
变成:mail.yourdomain.com.;第二条记录最后有“.”字符,代表一个绝对主机名,不会被转换。

综上所述,一般情况下,如果要解析一个域名的邮件记录,发送到某个IP,会在域名解析中解两条记录:
IN MX 0 mail
mail IN A 10.0.0.1

*** 如何在Prim@Hosting系统中,设置一个域名的邮件发送到另外一台服务器 ***
在使用Prim@Hosting系统的时候,在创建站点时,可以指定mail解析到哪个IP,在dns mx记录的框里填写另外服务器的IP地址就可以;
也可以使用子域名管理工具,在mail子域的A记录的框内填写另外服务器的IP地址。

*** 如何检验域名解析的正确 ***
使用dig命令。指定DNS服务器:
dig @dns1.yourname.com abc.com mx
dig @dns1.yourname.com mail.abc.com

MX-Records (Mail exchange)

MX-records are used to specify the e-mail server(s) responsible for a domain name.

Each MX-record points to the name of an e-mail server and holds a preference number for that server.

If a domain name is handled by multiple e-mail servers (for backup/redundancy), a separate MX-record is used for each e-mail server, and the preference numbers then determine in which order (lower numbers first) these servers should be used by other e-mail servers.

If a domain name is handled by a single e-mail server, only one MX-record is needed and the preference number does not matter.

When sending an e-mail to "This email address is being protected from spambots. You need JavaScript enabled to view it.", your e-mail server must first look up any MX-records for "example.com" to see which e-mail servers handles incoming e-mail for "example.com".

This could be "mail.example.com" or someone else's mail server like "mail.isp.com".

After this it looks up the A-record for that e-mail server name to connect to its IP-address.

Do not point an MX-record to a CNAME-record. Many e-mail servers don't understand this. Add another A-record instead.

 

This record type is defined in RFC1035.

设置hmailserver的公共主机名

Public Host Name for this Computer in Settings

  •  

Post by mansonasp » 2007-09-08 00:05

This one probably seems a bit dumb. I have installed Hmailserver on a private machine in the data centre. The domain is http://www.nevasoftware.com and the MX records for it point to the IP address of my server however himailserver is warning me that:

You haven't specified the public host name for this computer in the SMTP settings.

However I cannot tell where to go within Administration to accomplish this. Help appreciated.

:(
 
g0yjs0
Senior user
Senior user
Posts: 282
Joined: 2006-01-26 10:18

 

  •  

Post by g0yjs0 » 2007-09-08 01:23

Open hMailServer Administrator.
Go to: Settings | Protocols | SMTP.
Click on the "Delivery of e-mail" tab.
Fill-in the "hostname" field.
 
hmale
New user
New user
Posts: 1
Joined: 2008-05-06 02:14

Re: Public Host Name for this Computer in Settings

  •  

Post by hmale » 2008-05-06 02:17

Is the Public Host name supposed to be the public ip of the hmail server or the hostname please?

Thanks
Hmale
User avatar
mattg
Moderator
Moderator
Posts: 21248
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Public Host Name for this Computer in Settings

  •  

Post by mattg » 2008-05-06 02:29

hmale wrote:Is the Public Host name supposed to be the public ip of the hmail server or the hostname please?
Perhaps you could check the documentation, after all that's why it is there.

Matt
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation
 
schram12
New user
New user
Posts: 1
Joined: 2010-12-31 20:42

Re: Public Host Name for this Computer in Settings

  •  

Post by schram12 » 2010-12-31 20:48

:shock: I thought this was a forum for asking such questions. If the documentation was written for all levels of user, this forum would not be necessary.

Obviously the public host name is placed in this field. But, I believe he is asking where does one get the public host name? This is not covered in the documentation as it is probably somewhat public knowledge. Unfortunately, only a small part of the public has this knowledge.

I would like to ask the same question. Any answers?
 
Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Public Host Name for this Computer in Settings

  •  

Post by Bill48105 » 2010-12-31 21:33

schram12,
The thread was over 2 years old so I have a feeling everyone had moved on.. :D It is always best to create your own thread & link to this thread or others you think might be related/helpful..

Anyhow IMO: I have a feeling if one plans to run a mail server they should have a clue what a host name is, how to get/set it etc. ;)

Now to answer your question: normally YOU set your hostname in DNS.. Usually there is a web admin you log into & create records. Normally you add an A record where you define your HOST NAME for your mail server. Like mail.yourdomain.com or smtp.yourdomain.com or whatever.yourdomain.com. Then you create MX record with that HOST NAME and some priority # which often people default to 10 but doesn't really matter so much especially if you only make 1 MX record.

So the answer is you SET your hostname yourself normally & should know it like your own name.. Btw technically your domain name is your root/base host name & could USUALLY be used depending on your setup. If you don't run your DNS yourself or have access to an admin then either your ISP (or whoever manages it for you) likely creates default host names or dns records you use or you contact them to ask them what they are or set but think that setup is quite rate as most hosts/isps want you to be self-sufficient as labor/support is costly to them.

Also, if your reverse dns ptr is setup properly (as commonly accepted) you should be able to get your hostname by typing from CMD prompt:
nslookup YOUR.PUBLIC.IP.ADDRESS <ENTER>

That is because it is best practice (as in commonly accepted but not 'law') to contact your ISP & ask them to set it to resolve to your hostname. If you haven't done so then odds are that nslookup would likely be some random host name that follows some pattern, likely with your IP used somehow and often your mail will be blocked/filtered if left that way.

Anyway hopefully that answers the host name questions thoroughly but to be honest anyone should have been able to find all of the above in 10-30 seconds with google & a little effort vs 15 minutes of me or someone else here volunteering to type out readily available info. (Granted I ramble & make 2 min reply turn into 15 but that is besides the point. lol) Yes the forum is helpful to fill in the gaps where docs/searches come up short but maybe try to show a little effort in covering the basics before posting eh. ;)

Well nuff ranting. lol Happy New Year and cheers!
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***
 
^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Public Host Name for this Computer in Settings

  •  

Post by ^DooM^ » 2010-12-31 22:02

Image
If at first you don't succeed, bomb disposal probably isn't for you! ヅ
User avatar
mattg
Moderator
Moderator
Posts: 21248
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Public Host Name for this Computer in Settings

  •  

Post by mattg » 2011-01-01 03:33

schram12 wrote::shock: I thought this was a forum for asking such questions. If the documentation was written for all levels of user, this forum would not be necessary.

Obviously the public host name is placed in this field. But, I believe he is asking where does one get the public host name? This is not covered in the documentation as it is probably somewhat public knowledge. Unfortunately, only a small part of the public has this knowledge.

I would like to ask the same question. Any answers?
And now for my favourite link in all of the documentation...

Please see technical knowledge at the bottom of this page http://www.hmailserver.com/documentatio ... quirements

As Bill says
Bill48105 wrote:So the answer is you SET your hostname yourself normally & should know it like your own name.. Btw technically your domain name is your root/base host name & could USUALLY be used depending on your setup.
Something like 'mail.yourdomain.com' is usually adequate.

BTW I think I answered the OP's question, and linked to the appropriate page of the documentation.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation
 
maxunique
New user
New user
Posts: 5
Joined: 2018-03-29 13:19

Re: Public Host Name for this Computer in Settings

  •  

Post by maxunique » 2018-03-29 13:24

What does it mean SMTP hostname?

I have 3 multiple IPs on the same dedicated server and I want to setup 3 SMTP relays (1 for each IP).

What exactly does the hostname mean? Public DNS name? Then I have 3 different (1 per IP).

Thanks
User avatar
mattg
Moderator
Moderator
Posts: 21248
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Public Host Name for this Computer in Settings

  •  

Post by mattg » 2018-03-29 15:32

Please start a new thread as per forum rules...

Consider these points in your new thread.

What are you wanting to do, accept mail on three IPs OR send mail from one of three IPS, depending on the sender?
Why do you want to use 3 public IPs?

When you say 'SMTP HOSTNAME' where exactly are you seeing that? I can't see any such named field, but many similarly named fields. Depends on where will change the answer, but typically hostname is literally a FQDN Hostname, like 'mail.example.com'
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.