0
我有一个VPS服务器,只处理电子邮件托管。此服务器没有指向它的任何指定的域名。它只有一个VPS和一个IP地址。没有域名/主机名的Posfix设置
我正在运行CentOS 6.5 Minimal,安装了Postfix和Dovecot的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
# [email protected]
#
# 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
为既作为mydomain =
和main.cf
myhostname =
?因为my-domain.tld
指向另一个IP的另一个VPS,它只负责网络主机。
我不明白我明白事实时如何使用'$ mydomain = my-domain.tld','my-domain.tld'没有与此服务器关联。它正在向另一个拥有不同知识产权的主机倾诉。 – iOi
您可以,因为此服务器正在处理'my-domain.tld'的邮件。也许你可以有一个不同的服务器来处理'my-domain.tld'的网络流量 – clement