我有一个只处理电子邮件托管的 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
我可以mail.my-domain.tld
同时使用 asmydomain =
和myhostname =
inmain.cf
吗?因为my-domain.tld
它指向另一个具有另一个 IP 的 VPS,它只负责网络托管。