Hardware: VPS bought online ( Contabo ) YunoHost version: 11.1.0.2 (testing) I have access to my server : Through SSH and browser Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
since last night, i’ve received a storm of errors in the form of mail notifications.
always the same two, repeating over and over.
This is the mail system at host mms.nohost.me.
I’m sorry to have to inform you that your message could not
be delivered to one or more recipients. It’s attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<admin@mms.nohost.me> (expanded from ): user unknown
Hi @unmy
I also find myself with this avalanche of emails for Dyndns and this “black hole” : /dev/null
I have to change the time variables in the file Cron Dyndns with Nano in SSH:
nano /etc/cron.d/yunohost-dyndns
2 solutions:
1/ Totally delete the sending of mail on root@XXX.nohost.XX
To prevent a particular task from sending an email, you just have to add at the end of the command a directive asking it to redirect the output to nothing (/dev/null), it is possible to do it in two ways:
by adding > /dev/null 2>&1 at the end of the command ;
or by adding &> /dev/null at the end of the command ;
2/ Change the timing of mail sending
like
0 7 * * 1-5 root : YunoHost DynDNS update […]
this represents one email at 7h00 from Monday to Friday
thanks!
i changed the timing the same way you did and now i will wait to see how is it going to work.
however, this is just a fix for the notifications, but the problem/issue/error will still be there.
unless you’re saying the problem is the emailing in itaself?
You can also just add aliases with adminrootwebmasterpostmaster and abuse for your first user since it is like this…
We are waiting to know when a commit will fix this mistake, perhaps needs edit the etc/apt/sources.list.d/yunohost.list to add testing, and come back to stable after…
#!/bin/bash
# A placer dans /etc/yunohost/hooks.d/conf_regen/
# on empêche le sript d'envoyer un mail
sed -i 's+>> /dev/null+> /dev/null 2>\&1+g' /etc/cron.d/yunohost-dyndns