Ubuntu 24.04.1 LTS,“postfix start”和“postfix stop”运行良好。
systemctl start postfix
(无回答)
/var/log/syslog
2024-12-13T21:49:14.744589+01:00 aaa systemd[1]: Starting [email protected] - Postfix Mail Transport Agent (instance -)...
2024-12-13T21:49:15.002726+01:00 aaa systemd[1]: [email protected]: Control process exited, code=exited, status=1/FAILURE
2024-12-13T21:49:15.003169+01:00 aaa systemd[1]: [email protected]: Failed with result 'exit-code'.
2024-12-13T21:49:15.004922+01:00 aaa systemd[1]: Failed to start [email protected] - Postfix Mail Transport Agent (instance -).
journalctl -xeu [email protected]
This looks like spam.
systemctl status postfix.service
systemctl status postfix.service
postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; preset: enabled)
Active: active (exited) since Fri 2024-12-13 20:51:32 CET; 1h 1min ago
Docs: man:postfix(1)
Process: 960 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 960 (code=exited, status=0/SUCCESS)
CPU: 7ms
Dec 13 20:51:31 aaa systemd[1]: Starting postfix.service - Postfix Mail Transport Agent...
Dec 13 20:51:32 aaa systemd[1]: Finished postfix.service - Postfix Mail Transport Agent.
systemctl status [email protected]
[email protected] - Postfix Mail Transport Agent (instance -)
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled-runtime; preset: enabled)
Active: failed (Result: exit-code) since Fri 2024-12-13 21:49:15 CET; 4min 48s ago
Docs: man:postfix(1)
Process: 2191 ExecStartPre=/usr/lib/postfix/configure-instance.sh - (code=exited, status=1/FAILURE)
CPU: 246ms
Dec 13 21:49:14 aaa systemd[1]: Starting [email protected] - Postfix Mail Transport Agent (instance -)...
Dec 13 21:49:15 aaa systemd[1]: [email protected]: Control process exited, code=exited, status=1/FAILURE
Dec 13 21:49:15 aaa systemd[1]: [email protected]: Failed with result 'exit-code'.
Dec 13 21:49:15 aaa systemd[1]: Failed to start [email protected] - Postfix Mail Transport Agent (instance -).
postfix check
(无答案)= 配置成功
尝试了所有没有文件的方法
/var/lib/postfix/master.lock
/var/spool/postfix/pid/master.pid
我也尝试过
inet_interfaces = ipv4
但
#inet_interfaces = ipv4
没有任何变化。
帮忙,谢谢
我找到解决方案了!
systemctl start postfix
执行/usr/lib/postfix/configure-instance.sh
,脚本返回 1(错误),因为存在错误/etc/ssl/certs/ssl-cert-snakeoil.pem
。我从中获取它/var/spool/postfix/etc/ssl/certs/ssl-cert-snakeoil.pem
,现在一切正常。PS 并且
/etc/ssl/certs/ssl-cert-snakeoil.pem
被覆盖了,因为我创建了一个新/etc/dovecot/private/dovecot.pem
文件而没有意识到这/etc/dovecot/private/dovecot.pem
是一个链接/etc/ssl/certs/ssl-cert-snakeoil.pem
,覆盖了它