gpt4 book ai didi

centos - 没有域名/主机名的后缀设置

转载 作者:行者123 更新时间:2023-12-04 19:38:12 25 4
gpt4 key购买 nike

我有一个只处理电子邮件托管的 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两者皆为 mydomain =myhostname =main.cf ?因为 my-domain.tld指向另一个具有另一个 IP 的 VPS,它只负责网络托管。

最佳答案

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

  • 这个 VPS(邮件服务器)可以为您的邮件流量提供服务,正如您所说,您的 my-domain.tld虚拟主机可以在不同的 VPS 服务器中。

    希望有帮助。

    关于centos - 没有域名/主机名的后缀设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23226524/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com