NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
jeremy-m
Jun 08, 2022Aspirant
RN102 sending duplicate alert emails to the same address
I have a RN102, and since updating to 6.10.x, I've received three emails, that are exactly the same, to the same email address, every time an alert is triggered. How can I stop these excess email...
StephenB
Jun 20, 2022Guru - Experienced User
jeremy-m wrote:
StephenB wrote:
Then log into the NAS as root ( e.g., ssh root@nas-ip-address), using the NAS admin password.
I logged in as root, copied the file to alert.old, and removed the duplicate entires from alert.conf. I'm still getting three emails for each alert, even after rebooting.
Can you think of anything else I could do, to resolve this issue?
Can you look at alert.conf again, and see if the NAS has re-written it?
jeremy-m
Jun 21, 2022Aspirant
StephenB wrote:
jeremy-m wrote:
StephenB wrote:Then log into the NAS as root ( e.g., ssh root@nas-ip-address), using the NAS admin password.
I logged in as root, copied the file to alert.old, and removed the duplicate entires from alert.conf. I'm still getting three emails for each alert, even after rebooting.
Can you think of anything else I could do, to resolve this issue?
Can you look at alert.conf again, and see if the NAS has re-written it?
I did, and it hasn't re-written it.
- StephenBJun 21, 2022Guru - Experienced User
jeremy-m wrote:
StephenB wrote:
jeremy-m wrote:
StephenB wrote:
Then log into the NAS as root ( e.g., ssh root@nas-ip-address), using the NAS admin password.
I logged in as root, copied the file to alert.old, and removed the duplicate entires from alert.conf. I'm still getting three emails for each alert, even after rebooting.
Can you think of anything else I could do, to resolve this issue?
Can you look at alert.conf again, and see if the NAS has re-written it?
I did, and it hasn't re-written it.
You can try grepping for duplicate email address. I am also seeing the alert email addresses in /etc/aliases and /etc/msmtprc
- jeremy-mJun 21, 2022Aspirant
StephenB wrote:
You can try grepping for duplicate email address. I am also seeing the alert email addresses in /etc/aliases and /etc/msmtprcThe data in /etc/aliases is exactly the same as in /etc/frontview/alert.conf (duplicate <user> entries). I removed the duplicate entries from /etc/aliases, and the NAS still sends three emails.
/etc/msmtprc doesn't contain the recipient address, and looks fine to me. It only contains the configuration of the sending account.
I will try grep, but as I haven't used it much, would grep -r alert_contact * be the correct command? Is there a way to prevent processes overwhelming the results?
- StephenBJun 21, 2022Guru - Experienced User
Did you try rebooting the NAS and retesting?
jeremy-m wrote:
I will try grep, but as I haven't used it much, would grep -r alert_contact * be the correct command? Is there a way to prevent processes overwhelming the results?
Best to first remount the root to /mnt, in order to prevent the search from covering the data volume
mount --bind / /mntThen search in /mnt.
When done, make sure you aren't in /mnt, and then unmount using
umount /mntNote the spelling - umount, not unmount.
As far as grep goes, I suggest
grep -rn "emailaddress" /mnt - jeremy-mJun 21, 2022Aspirant
StephenB wrote:Did you try rebooting the NAS and retesting?
Yes, with the same result.
I tried the grep search, but the results were overwhelmed with old log information about failed alert emails, thus creating a list that got cropped by Putty again. The other problem, is the email address is also used for my user account, so lots of the results have nothing to do with alert emails.
Do you have any solution for these issues?
Thank you for all your help.
I guess at some point, the only option left will be to reset the NAS to factory defaults.
- StephenBJun 21, 2022Guru - Experienced User
jeremy-m wrote:
I tried the grep search, but the results were overwhelmed with old log information about failed alert emails, thus creating a list that got cropped by Putty again. The other problem, is the email address is also used for my user account, so lots of the results have nothing to do with alert emails.
Do you have any solution for these issues?
You could either exclude the folder the logs are in, or re-run the command on one subfolder of /mnt at a time.
jeremy-m wrote:
I guess at some point, the only option left will be to reset the NAS to factory defaults.
You could try removing the alert email setup from the web ui, and then do an OS reinstall from the boot menu. That has a couple of side effects:
- admin password reset to password
- network reconfigured to use dhcp with no bonding
- volume quota turned off on volume settings wheel
So you'd need to adjust those, and then try setting up email alerts again.
- jeremy-mJun 22, 2022Aspirant
How many emails do you get per alert?
Use have two different email addresses involved in alerts, I have three. Could that be the reason I get three emails for each alert, that are all sent to the one recipient?
Also, I might just reset to factory, as I never set the NAS up properly, when I first got it. I need to make some changes to allow some Raspberry Pi's to boot off it, so I was thinking of reading the manual (need to do that to make the changes), and then reconfiguring lots, or very little. So, it wouldn't involve much more than resetting to factory.
Once again, thank you for all your time and your suggestions.
- StephenBJun 23, 2022Guru - Experienced User
jeremy-m wrote:
How many emails do you get per alert?
At the moment, I use yahoo to send them. Alerts are sent both to the yahoo address and my normal gmail address.
I only get one message per alert on gmail - with one exception. The defragmentation started message is sent twice (which is a longstanding OS-6 bug).
I also get only one message per alert on yahoo.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!