I was trying to setup postfix/dovecot and was having issues getting both to work. My thought was to uninstall and then reinstall fresh and give it another try. After using 'apt -y purge postfix' Then trying to reinstall using 'apt install postfix' The service fails to start. Using 'systemctl start postfix' shows the following.
systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; preset: enabled)
Active: active (exited) since Tue 2024-05-07 16:40:48 MDT; 10min ago
Docs: manostfix(1)
Process: 7151 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 7151 (code=exited, status=0/SUCCESS)
CPU: 1ms
May 07 16:40:48 server.domain.com systemd[1]: Starting postfix.service - Postfix Mail Transport Agent...
May 07 16:40:48 server.domain.com systemd[1]: Finished postfix.service - Postfix Mail Transport Agent.
Not getting anything useful when running 'journalctl -xeu postfix.service'. Just says that a start job has finished.
I am able to start it using the postfix commmand.
postfix -c /etc/postfix startpostfix/postfix-script: starting the Postfix mail system
ps aux|grep postfix
root 7654 0.0 0.0 42848 4764 ? Ss 16:54 0:00 /usr/lib/postfix/sbin/master -w
postfix 7655 0.0 0.0 43300 7936 ? S 16:54 0:00 pickup -l -t unix -u -c
postfix 7656 0.0 0.0 43340 7936 ? S 16:54 0:00 qmgr -l -t unix -u
I can now connect to port 25.
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Anyone have any ideas what might be preventing this from starting? I believe that postfix runs in a chroot. So I also try disabling that in /etc/postfix/master.cf.
Bookmarks