0

我有一个只处理电子邮件托管的 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.tldMX记录指向mail.my-domain.tld

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

4

1 回答 1

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

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

希望有帮助。

于 2014-04-22T18:28:00.020 回答