Postfix Problems

  • Create a scheduled task that runs at startup and as the root user with the following command:


    Code
    service postfix restart

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Thanks very much! I'll do that in the hope that it circumvents this topic's issue.

    I tried this but sadly it didn't help so I abandoned the plugin. Since I run OMV from a small SSD I can get by without it.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Not sure if this still works. As Debian has moved to SystemD it should be


    systemctl start postfix

    service postfix stop, service postfix start, service postfix restart all work for me.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Thanks again to wenzhuo for the help. You are a master!


    I have tested it and this this fixes two issues:

    • Postfix getting stuck (worked around with a scheduled service reboot after system boot)
    • Email about nginx does not exist/exists (which I could not workaround)


    Edit the folder2ram_startup.service systemd: systemctl edit folder2ram_startup.service --full


    Add the following to the [Unit] section

    Code
    RequiresMountsFor=/var
    Wants=tmp.mount
    Before=monit.service rrdcached.service minidlna.service nginx.service nmbd.service

    It should look like this


    Code
    [Unit]
    Description=folder2ram systemd service
    After=local-fs.target
    After=blk-availability.service
    DefaultDependencies=no
    RequiresMountsFor=/var
    Wants=tmp.mount
    Before=monit.service rrdcached.service minidlna.service nginx.service nmbd.service

    Save and reboot.

    ENJOY!

  • Code
    [Unit]
    Description=folder2ram systemd service
    After=local-fs.target
    After=blk-availability.service
    DefaultDependencies=no
    RequiresMountsFor=/var
    Wants=tmp.mount
    Before=monit.service rrdcached.service minidlna.service nginx.service nmbd.service


    `After=local-fs.target` should very well be `After=local-fs-pre.target`.

    • Official Post

    I made a test version of folder2ram available - https://github.com/OpenMediaVa…3#issuecomment-3150173387

    omv 8.5.7-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.3 | backup 8.1 | kernel 8.0.16


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    Edited once, last by ryecoaaron ().

  • With the test version installed I still get those nginx-E-Mails right after boot, then on the terminal

    Code
    sendmail -q

    shows

    Code
    Cannot flush mail queue - mail system is down

    Then manually doing

    Code
    systemctl restart postfix

    seems to fix it, though IDK for how long.


    The system is fully up-to-date btw, I did omv-upgrade before further testing.

  • Postfix wasn't fully working yet with the test version.
    You have to add a specific service to the systemd file.

    I fixed the issue by adding a new line

    Code
    Before=postfix@-.service


    More info here.


    I have solved both Postfix and nginx doesn't exist/exist emails, while sending a test email to verify Postfix is alive.

    OMV BUILD - MY NAS KILLER - OMV 8.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 1TB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

    • Official Post

    Postfix wasn't fully working yet with the test version.
    You have to add a specific service to the systemd file.

    I fixed the issue by adding a new line

    test package has been updated.

    omv 8.5.7-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.3 | backup 8.1 | kernel 8.0.16


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    chrony added to test package.

    omv 8.5.7-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.3 | backup 8.1 | kernel 8.0.16


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • For 8.x, I believe systemd-zram-generator is a better choice for the flashmemory plugin, 'cause we need per-folder granularity for faster startup. Folder2ram_startup.service currently ranks the 2nd on the systemd-analyze blame list.

  • chrony added to test package.

    If updating to the newest test package from the previous test package (both same version number of course) is done via just another

    Code
    wget https://omv-extras.org/testing/folder2ram_0.4.2_all.deb -O folder2ram_0.4.2_all.deb
    sudo dpkg -i folder2ram_0.4.2_all.deb

    then I can report that I still get the nginx-E-Mails and senmail -q does still say "mail system is down".

  • If updating to the newest test package from the previous test package (both same version number of course) is done via just another

    Code
    wget https://omv-extras.org/testing/folder2ram_0.4.2_all.deb -O folder2ram_0.4.2_all.deb
    sudo dpkg -i folder2ram_0.4.2_all.deb

    then I can report that I still get the nginx-E-Mails and senmail -q does still say "mail system is down".

    7.0.1: folder2ram_startup.service timing issue · Issue #33 · OpenMediaVault-Plugin-Developers/openmediavault-flashmemory
    I have a ROCK64 Armbian OMV tiny NAS system running off a SD card. Hence the need of this plugin. The initial version of OMV installed in it was, I believe,…
    github.com

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!