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