Postfix 在发送邮件时拒绝连接端口 587。这是我的配置文件:
主文件
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# …
Run Code Online (Sandbox Code Playgroud) 我需要让 apache 读取一个新文件sites-available
,但我不想每次添加时都必须重新启动 apache。由于在我的服务器上设置目录以允许大规模部署我的软件的方式,动态主机功能对我不起作用。我认为这shell_exec
行不通,因为 apache 从 运行www-data
,并且该用户无权使用/etc/init.d/httpd reload
. 我需要能够动态运行虚拟主机,而无需完全重新启动 apache。