Postfix occupies continuously 30 % of CPU

    • OMV 1.0
    • Resolved
    • Postfix occupies continuously 30 % of CPU

      Hi again,

      since weeks i detected a continuously 30 % usage of the CPU. Today i found out, that this cames from the "Postfix" User / Service so i decide to stop it (service postfix stop)
      and now everything seems to be fine.

      Any idea how to fix this without the need to stop the service.

      Thanks and greetings
      Asus Z97M-Plus / Intel Core i5 / 16 GB RAM / System: 120 GB Intel SSD / RAID 1 - 2 x 4 TB Seagate ST4000VN000 / USB Backup HDD - Seagate Backup Plus Desktop STCA4000200

      OMV - Arrakis
    • Do you have notification enabled? It must be trying to send a lot of notifications and having problems.
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Check the syslog for messages from postfix. They should help you to identify your problem. You can also have a look into the mailbox folder of the root user to find out how much messages are delivered. Login to CLI and execute the following command.

      List mailbox:

      Source Code

      1. mailq


      Read a mail:

      Source Code

      1. postcat -q <ID>
      2. e.g.:
      3. postcat -q A705238B4C
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Syslog is full of Messages caused by Postfix. Mailbox is also full of undelivered mails... this also finally explains why the system drive space is growing every day (i guess that all the undeliverd messages are stored over there !?). Ok, how can i delete all the messages in the mailbox ?
      Asus Z97M-Plus / Intel Core i5 / 16 GB RAM / System: 120 GB Intel SSD / RAID 1 - 2 x 4 TB Seagate ST4000VN000 / USB Backup HDD - Seagate Backup Plus Desktop STCA4000200

      OMV - Arrakis
    • Execute

      Display Spoiler
      /etc/cron.daily/openmediavault-flush-mailq


      or

      Source Code

      1. postsuper -d ALL
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Done, thanks... it deleted more then 4000 messages... this did not clean up the system drive space a lot,
      but CPU is arround 10 to 14% now.

      What i dont understand is, that postfix is doing things nearly every second if i check the syslog is this normal ?
      Asus Z97M-Plus / Intel Core i5 / 16 GB RAM / System: 120 GB Intel SSD / RAID 1 - 2 x 4 TB Seagate ST4000VN000 / USB Backup HDD - Seagate Backup Plus Desktop STCA4000200

      OMV - Arrakis
    • postfix does this not on its own, you have the check which service is trying to send an email. To do this you should look into the messages with mailq and postcat as described above. This way you can find out who is sending the email and what is going wrong. I assume the monit daemon is the reason, but you have to check that.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Done, thread can be closed....

      After deleting the Mailq i deactivated the message Service. I finally setup everything new.. SMTP Server, account name etc. and restart the postfix finally.
      Mailq is now empty, syslog as well, send test mail - successfully done and received the mail. I have no idea what happend there. CPU usage now: between 1 and 5%

      Thanks a lot for your support !

      Greetings
      Andre
      Asus Z97M-Plus / Intel Core i5 / 16 GB RAM / System: 120 GB Intel SSD / RAID 1 - 2 x 4 TB Seagate ST4000VN000 / USB Backup HDD - Seagate Backup Plus Desktop STCA4000200

      OMV - Arrakis
    • Hi @js74,

      follow the above instructions... Check the Mailq, empty it if full. Check also your notification settings... i deleted mine and set it up again.
      After all this i made it run.

      Greetings
      Asus Z97M-Plus / Intel Core i5 / 16 GB RAM / System: 120 GB Intel SSD / RAID 1 - 2 x 4 TB Seagate ST4000VN000 / USB Backup HDD - Seagate Backup Plus Desktop STCA4000200

      OMV - Arrakis