Notification emails not sending, until reboot

  • OMV7 on a Pi4.

    Replacing an OMV6 setup.

    Notification email settings identical between the 2 systems.


    Test mail not coming thru. ( yes, checked spam folders ).

    Notifications from Scheduled Tasks also not sending.


    When System Reboot and system starts up, all emails suddenly come thru ( with their correct time stamp ).


    In fact, I'm now getting DUPLICATE mails that came thru at the time of the last reboot.


    Am I missing a setting ?

  • ryecoaaron - I see this appears to be a common problem you working on.


    Just an observation, in case it hints to the problem/ solution :


    I had my email listed as the sender and the recipient. As soon as I changed the Notifications > Settings > Recipient to my gmail account, all the mails started flowing again.

    Not sure if it's because the sender and recipient was the same, or if the sender and recipient are now completely different services ?


    2c

  • from another post, I tried the following in terminal :

    Code
    sudo systemctl restart postfix

    takes a few seconds, and mail starts flowing again. will see if I can add this to run after the boot has completed. Maybe as a scheduled task ?

  • Any chance you are running the flashmemory plugin?

    --
    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 Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Likely related. I can no longer run that plugin because it disrupts rsyslog and mail for me.


    Uninstall the plugin and see if mail behavior returns to normal.

    --
    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 Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • I'm having the same issue. Staring some time fairly recently, emails are sent only at reboot. And they are not being deleted from the outbox queue so at every reboot the same emails are sent, along with any additional ones queued up since the last reboot.


    Gderf you say uninstall flashmemory but looking at the OMV docs it says flashmemory is installed automatically and that it is required.


    1: I see no option to uninstall (which makes sense if it's a required part of the package), and

    2: What to replace it with? If it's required then it seems like I needs something to take on the wear-leveling tasks it's providing.


    Hostname
    pimedia

    Version
    7.7.7-1 (Sandworm)

    Processor
    Raspberry Pi 4 Model B Rev 1.4

    Kernel
    Linux 6.12.25+rpt-rpi-v8

    System time
    Mon May 19 19:52:22 2025

    Uptime
    15 minutes

  • Gderf you say uninstall flashmemory but looking at the OMV docs it says flashmemory is installed automatically and that it is required.

    Where in the docs i this stated?

    --
    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 Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • omv7:omv7_plugins:flashmemory [omv-extras.org]


    Quote

    Summary

    The FlashMemory Plugin was designed to make booting from USB thumbdrives and SD-cards feasible and a practical alternative to booting from a hard drive or SSD. In addition to the relative low cost, using USB thumbdrives enable easy OS backup options, quick recovery from boot drive failure and it saves a SATA port for a data storage drive.

    This plugin is REQUIRED, for a flash media boot drive, or it will have a short life. For an in-depth explanation see; Why is the FlashMemory Plugin Required?

  • "This plugin is REQUIRED, for a flash media boot drive, or it will have a short life." This not the same thing as being required by OMV itself.

    --
    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 Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • I know I'll get told this isn't the right way, but got tired of wasting time trying to solve it.
    I simply added a scheduled task to restart postfix once an hour.
    Not had an issue with it since. Been about 6 or 7 weeks like this.

  • I know you have folder2ram (flashmemory) plugin, do you also have the antivirus plugin installed? If so, It's sounding a bit like it might be related to my issue with btrfs scrub. Check out /var/spool and /var/folder2ram/var/spool, specifically the mail folders.

    Also systemctl status folder2ram_startup looking for any errors.

    [edit]

    disable clamav (antivirus) and see if mail problem is still there. if antivirus is enabled it impacts on flashmemory and stops it completing copies. Not sure if folder2ram is copying mail folders or not so this may be unrelated. ymmv

  • "This plugin is REQUIRED, for a flash media boot drive, or it will have a short life." This not the same thing as being required by OMV itself.

    Splitting hairs. It doesn't matter to me if it's a dependency of OMV itself, or if OMV says it is required for a system to be reliable. The end result of either is that it is required, full stop.

  • I know you have folder2ram (flashmemory) plugin, do you also have the antivirus plugin installed? If so, It's sounding a bit like it might be related to my issue with btrfs scrub. Check out /var/spool and /var/folder2ram/var/spool, specifically the mail folders.

    Also systemctl status folder2ram_startup looking for any errors.

    [edit]

    disable clamav (antivirus) and see if mail problem is still there. if antivirus is enabled it impacts on flashmemory and stops it completing copies. Not sure if folder2ram is copying mail folders or not so this may be unrelated. ymmv

    I don't have clamav installed so we can ignore that. For the record, the services I have running are flashmemory, docker, smb/cifs, and ssh

  • I've tried every single fix for this that has been suggested since I first reported the problem in the forum on September 11, 2024. None of them have worked. Removing the flash plugin was the only fix that did work. Maybe you will get lucky and one of the suggested fixes will work for you.


    What I did was to replace my 32GB USB system drive with a 32GB SSD drive.

    --
    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 Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • run the following:

    ls -al /etc/logrotate.d


    check the output for file ownership/group. They should all be root/root

    If they aren't then flashmemory plugin fails on sync/boot/shutdown due to logrotate failing, the mail spool directory could be impacted indirectly.

    Also see this thread Postfix Problems

Participate now!

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