Double notifications email

  • I can confirm this beahaviour!
    But it seems that OMV sends double messages only in some cases. For me it happens for LogIn notifications whe I log in via third party applications like OMV-Remote or in cases of an APT Update.


    When I send test messages I only get one Message.


    When I take a look at the syslog it looks like this for an APT Update:

    Code
    Jan  2 07:44:54 Server postfix/pickup[25173]: 3C2022CC08A4: uid=0 from=<root>
    Jan  2 07:44:54 Server postfix/cleanup[26690]: 3C2022CC08A4: message-id=<20170102064454.3C2022CC08A4@Server.Workgroup>
    Jan  2 07:44:54 Server postfix/qmgr[17050]: 3C2022CC08A4: from=<OMV@Server.de>, size=978, nrcpt=2 (queue active)
    Jan  2 07:44:54 Server postfix/pipe[26708]: 3C2022CC08A4: to=<openmediavault-notification@localhost.localdomain>, relay=omvnotificationfilter, delay=0.18, delays=0.16/0.01/0/0.01, dsn=2.0.0, status=sent (delivered via omvnotificationfilter service)
    Jan  2 07:44:54 Server anacron[25936]: Job `cron.daily' terminated
    Jan  2 07:44:54 Server anacron[25936]: Normal exit (1 job run)
    Jan  2 07:44:55 Server postfix/smtp[26709]: 3C2022CC08A4: replace: header Subject: CRON-APT completed on Server [/etc/cron-apt/config]: Subject: [Server.Workgroup] CRON-APT completed on Server [/etc/cron-apt/config]
    Jan  2 07:44:58 Server postfix/smtp[26709]: 3C2022CC08A4: to=<simon.XXXX@gmail.com>, relay=smtp.gmail.com[2a00:1450:400c:c04::6d]:587, delay=4.4, delays=0.16/0.04/0.92/3.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1483339498 cj1sm15512702wjd.46 - gsmtp)
    Jan  2 07:44:58 Server postfix/qmgr[17050]: 3C2022CC08A4: removed




    Code
    Jan  2 13:43:42 Server postfix/pickup[11500]: 35A032CC0CD1: uid=0 from=<root>
    Jan  2 13:43:42 Server postfix/cleanup[12007]: 35A032CC0CD1: message-id=<20170102124342.35A032CC0CD1@Server.Workgroup>
    Jan  2 13:43:42 Server postfix/qmgr[3020]: 35A032CC0CD1: from=<OMV@Server.de>, size=443, nrcpt=2 (queue active)
    Jan  2 13:43:42 Server postfix/pipe[12009]: 35A032CC0CD1: to=<openmediavault-notification@localhost.localdomain>, relay=omvnotificationfilter, delay=0.37, delays=0.25/0.01/0/0.1, dsn=2.0.0, status=sent (delivered via omvnotificationfilter service)
    Jan  2 13:43:42 Server postfix/smtp[12010]: connect to smtp.gmail.com[2a00:1450:400c:c07::6d]:587: Network is unreachable
    Jan  2 13:43:43 Server postfix/smtp[12010]: 35A032CC0CD1: replace: header Subject: Test message from Server: Subject: [Server.Workgroup] Test message from Server
    Jan  2 13:43:44 Server postfix/smtp[12010]: 35A032CC0CD1: to=<simon.XXXX@gmail.com>, relay=smtp.gmail.com[74.125.133.108]:587, delay=2.3, delays=0.25/0.28/0.59/1.1, dsn=2.0.0, status=sent (250 2.0.0 OK 1483361024 wp2sm49758525wjc.35 - gsmtp)
    Jan  2 13:43:44 Server postfix/qmgr[3020]: 35A032CC0CD1: removed


    Except of the error because of missing IPV6 Adress I can't see any difference between the Test Message and the APT Update Message ?(

    • Offizieller Beitrag

    As for cron-apt is an issue with a double entry in cron.
    One is added from the cron-apt package and the other is added by omv. Look through al cron folders and file for a line calling the cron-apt binary file. Look also I the Anacron tab.
    I had the same issue and I solved by just commenting out one of the entries. It was some time ago so I cannot remember exactly what files where involved.
    As for general double notification I have no idea why would that happen.

  • I also had this issue. But since the update to omv 3.0.74 the problem seems to be solved for me.


    Great, thanks. Whatever you did... ;)


    Greetings Hoppel

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

  • I have 3.0.74 too but behavior same


    I tried


    root@NAS:/etc/cron-apt/action.d# ls -l
    celkem 8
    ---------- 1 root root 18 bře 19 2012 0-update
    ---------- 1 root root 64 bře 19 2012 3-download


    change chmod to 0 for action files... And I will se..


  • You are right! Tonight I got two mails again.


    Sorry, for the wrong information. So the issue is still unsolved.


    Greetings Hoppel

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

  • Code
    root@NAS:~# cat /etc/cron.d/cron-apt
    #
    # Regular cron jobs for the cron-apt package
    #
    # Every night at 4 o'clock.
    0 4     * * *   root    test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
    # Every hour.
    # 0 *   * * *   root    test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt /etc/cron-apt/config2
    # Every five minutes.
    # */5 * * * *   root    test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt /etc/cron-apt/config2

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!