[英]Email Server; How to configure postfix to suit my needs? (Do I need SASL or/and TLS?)
我有一台Linux服務器,剛剛安裝了postfix。
我沒有對電子郵件服務器配置做更多的事情。
我的網站是一個分類網站,用戶可以在其中放置廣告,刪除廣告等。沒有登錄,也沒有任何會員功能。
我唯一需要使用電子郵件的地方是這樣的:
我的問題是,我應該如何配置Postfix?
我需要SASL和TLS嗎? 我還需要知道什么?
順便說一句,PHP用於郵寄...
這意味着后綴將僅在本地使用,因此為了安全起見,通過將防火牆配置為阻止端口25進入來防止外部用戶與您的郵件聯系。
編輯postfix'main.cf並設置以下內容,我認為這應該足以使您啟動並運行。 如果其他設置也適用於您的情況,請確保也進行研究。
# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.
#
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = localhost
# 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 = host.domain.tld
#myhostname = virtual.domain.tld
# 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 = domain.tld
# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.