I have an Ubuntu 20.04.6 TLS server with ISPConfig Version: 3.2 and many websites installed. I set up Postfix with an SMTP relay service (Mailgun). After I reboot my server, the SMTP-Server stops working and ports 25 and 465 are not reachable. When I try to send an email from Roundcube, I get the following error: Code: SMTP Error (-1): Connection to server failed. I run Code: service postfix status and this is the output: Code: ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled) Active: active (exited) since Mon 2024-05-06 03:35:54 -04; 45min ago Process: 1956 ExecStart=/bin/true (code=exited, status=0/SUCCESS) Main PID: 1956 (code=exited, status=0/SUCCESS) may 06 03:35:54 servidor1 systemd[1]: Starting Postfix Mail Transport Agent... may 06 03:35:54 servidor1 systemd[1]: Finished Postfix Mail Transport Agent. Then if I restart postfix it works again. Why is that?
How can I check the Postfix log? On the other hand, after reboot if I run Code: postfix status I get Code: postfix/postfix-script: the Postfix mail system is not running But if I restart Postfix it starts running again. Is there a way to restart Postfix automatically on every reboot?
This is what I see on the log file when I reboot the OS: Code: Aug 7 00:16:17 servidor1 postfix[1514]: Postfix is running with backwards-compatible default settings Aug 7 00:16:17 servidor1 postfix[1514]: See http://www.postfix.org/COMPATIBILITY_README.html for details Aug 7 00:16:17 servidor1 postfix[1514]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload Aug 7 00:37:36 servidor1 postfix/postqueue[5295]: warning: Mail system is down -- accessing queue directly" And this is what I see when I restart Postfix: Code: Aug 7 01:01:43 servidor1 postfix[11526]: Postfix is running with backwards-compatible default settings Aug 7 01:01:43 servidor1 postfix[11526]: See http://www.postfix.org/COMPATIBILITY_README.html for details Aug 7 01:01:43 servidor1 postfix[11526]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload" Aug 7 01:01:46 servidor1 postfix/postfix-script[11535]: the Postfix mail system is not running Aug 7 01:02:04 servidor1 postfix[11653]: Postfix is running with backwards-compatible default settings Aug 7 01:02:05 servidor1 postfix[11653]: See http://www.postfix.org/COMPATIBILITY_README.html for details Aug 7 01:02:05 servidor1 postfix[11653]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload" Aug 7 01:03:15 servidor1 postfix/postfix-script[11809]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20240528181113.bak Aug 7 01:03:15 servidor1 postfix/postfix-script[11812]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20240527190428.bak Aug 7 01:03:15 servidor1 postfix/postfix-script[11815]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20240528181113.bak Aug 7 01:03:15 servidor1 postfix/postfix-script[11818]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20240528203421.bak Aug 7 01:03:15 servidor1 postfix/postfix-script[11821]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20240527020127.bak Aug 7 01:03:15 servidor1 postfix/postfix-script[11824]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20240528212640.bak Aug 7 01:03:15 servidor1 postfix/postfix-script[11827]: warning: symlink leaves directory: /etc/postfix/./makedefs.out Aug 7 01:03:16 servidor1 postfix/postfix-script[11830]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20240528191352.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11833]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20240527011947.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11836]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20240430071558.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11839]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20240430071558.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11842]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20240527190428.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11845]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20240502203230.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11848]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20240528203421.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11851]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20240527020127.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11854]: warning: symlink leaves directory: /etc/postfix/./smtpd.key Aug 7 01:03:16 servidor1 postfix/postfix-script[11857]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert Aug 7 01:03:16 servidor1 postfix/postfix-script[11860]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20240502203230.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11863]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20240528191352.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11866]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20240527011947.bak Aug 7 01:03:16 servidor1 postfix/postfix-script[11869]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20240528212640.bak Aug 7 01:03:17 servidor1 postfix/postfix-script[11918]: starting the Postfix mail system Aug 7 01:03:18 servidor1 postfix/master[11920]: /etc/postfix/master.cf: line 130: using backwards-compatible default setting chroot=y Aug 7 01:03:18 servidor1 postfix/master[11920]: daemon started -- version 3.4.13, configuration /etc/postfix I can't find any clue about the problem.