解决ConditionPathExists=/etc/postfix/main.cf was not met

作者

通多debian安装postfix。启动后,发现服务器没有监听25端口。service postfix status发现错误提示 ****ConditionPathExists=/etc/postfix/main.cf was not met**

解决非方法

cd /etc/postfix
cp main.cf.proto main.cf

service postfix  start

service postfix status
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
   Active: active (exited) since Tue 2021-07-06 10:15:02 HKT; 9s ago
  Process: 20445 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 20445 (code=exited, status=0/SUCCESS)

错误提示

service postfix status
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Tue 2021-07-06 09:57:16 HKT; 3s ago
           └─ ConditionPathExists=/etc/postfix/main.cf was not met

postconf 查看postfix 的配置文件

postconf
postconf: fatal: open /etc/postfix/main.cf: No such file or directory

回复

您的电子邮箱地址不会被公开。