The postfix service of my VPS not active, I try to activate the service but drops.
If deleting the service and including it again could normalize?
How to reinstall postfix correctly?
Systemd service details postfix.service
[Unit]
Description=Postfix Mail Transport Agent
After=syslog.target network.target
Conflicts=sendmail.service exim.service
systemctl status postfix
Ć postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
Active: failed (Result: oom-kill) since Tue 2023-03-28 18:26:18 CEST; 5min ago
Duration: 21.000s
Process: 54125 ExecStartPre=/usr/sbin/restorecon -R /var/spool/postfix/pid/master.pid (code=exited, status=0/SUCCESS)
Process: 54126 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
Process: 54128 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
Process: 54129 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
Process: 54368 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
Main PID: 54197 (code=killed, signal=TERM)
CPU: 50.924s
systemd[1]: postfix.service: A process of this unit has been killed by the OOM killer.
postfix/postfix-script[54380]: stopping the Postfix mail system
postfix/master[54197]: terminating on signal 15
systemd[1]: postfix.service: Failed with result āoom-killā.
systemd[1]: postfix.service: Consumed 50.924s CPU time.
I only mentioned mysqld because that problem just popped up and thatās where I first saw the oom-killer. You might want to stop a few things and see if postfix starts.
It would help if you posted your systems properties.
Typically, a process fails like that because you are out of memory. How much physical memory and virtual memory do you have? Have you checked your usage lately? Is it running rather high or close to maximum? How much disc space is available? Are you at or near the max?
If so, thatās the problem.
That would only make the matter worse if youāre running low on physical memory or disc space.
Is your system running āantivirusā? The error noted in one of your posts āoom-killā means your system is running out of memory, hence itās killing off processesā¦
8GB of RAM should generally be enough, as long as you donāt have memory hungry processes running and/or depending on what you are running on your system including but not limited to how many domains you have and what they are using or needing for resources.
Good morning to all !!!
I disabled ClamAV, reduced SpamAssassin to the standalone version, and yet, Postfix does not remain active. I disabled SpamAssassin and nothing has changed. In all these phases executed, the reboot was made.
The investigation continues.
Iām thinking of uninstalling and reinstalling Postfix, would it be a correct action?