繁体   English   中英

电子邮件服务器; 如何配置后缀以满足我的需求? (我需要SASL或/和TLS吗?)

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM