【发布时间】: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
您可能已经注意到,myhostname 和 mydomain 字段都是空的。原因是,服务器实际上没有域或主机名。在这种情况下我应该怎么做?
我有一个M 记录指向mail.my-domain.tld 和MX 记录指向mail.my-domain.tld
我可以在main.cf 中同时使用mail.my-domain.tld 作为mydomain = 和myhostname = 吗?因为my-domain.tld 指向另一个具有另一个IP 的VPS,它只负责网络托管。
【问题讨论】:
标签: centos vps postfix-mta dovecot