【问题标题】:Posfix settings without a domain/host name没有域名/主机名的后缀设置
【发布时间】:2014-04-22 17:38:04
【问题描述】:

我有一个仅处理电子邮件托管的 VPS 服务器。此服务器没有任何指定的域名指向它。它只有一个具有一个 IP 地址的 VPS。

我正在运行安装了 Postfix 和 Dovecot 的 CentOS 6.5 Minimal,32 位。这是目前我的etc/postfix/main.cf 的样子(用于域/主机属性)。

# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
myhostname =   
#myhostname =

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
mydomain =     
# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites.  If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
myorigin = $mydomain

您可能已经注意到,myhostnamemydomain 字段都是空的。原因是,服务器实际上没有域或主机名。在这种情况下我应该怎么做?

我有一个M 记录指向mail.my-domain.tldMX 记录指向mail.my-domain.tld

我可以在main.cf 中同时使用mail.my-domain.tld 作为mydomain =myhostname = 吗?因为my-domain.tld 指向另一个具有另一个IP 的VPS,它只负责网络托管。

【问题讨论】:

    标签: centos vps postfix-mta dovecot


    【解决方案1】:
    • myhostname - 此邮件系统的 Internet 主机名。这里使用mail.my-domain.tld
    • mydomain - 此邮件系统的互联网域名。默认是使用 $myhostname 减去第一个组件。$mydomain 用作许多其他配置参数的默认值。所以这里使用my-domain.tld

    此 VPS(邮件服务器)可以为您的邮件流量提供服务,正如您所说,您的 my-domain.tld 网络托管可以在不同的 VPS 服务器中。

    希望对您有所帮助。

    【讨论】:

    • 我不明白如何使用$mydomain = my-domain.tld,而my-domain.tld 显然与此服务器无关。它正在指向另一个具有不同 IP 的主机。
    • 可以,因为此服务器正在处理my-domain.tld 的邮件。可能你可以有一个不同的服务器来处理my-domain.tld的网络流量
    猜你喜欢
    • 1970-01-01
    • 2013-08-21
    • 2017-01-09
    • 1970-01-01
    • 2014-12-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-13
    相关资源
    最近更新 更多