Forum archive
MySQL Backup - emails
Hello,
Having an issue with emails being sent after a MySQL backup has taken place on the WordPress containers. I've tried multiple different email addresses and different versions of the WordPress container with no joy.
Nothing ever appears in the mail queue, mail log or "/var/log/messages". Email does work from websites that run on the same containers.
I am using a schedule, the backups do complete OK. I've tried all possible cobinations of options I can think off and now I'm a bit lost since there's nothing to give an indicator.
Is there anything I need to do differently on the container to get it working? I've got the emails working in other setups ie Debian LAMP stack.
Any help or pointers will be greatly appriciated.
Blake.
Ok thanks for clarifying the issue you're experiencing. That totally clears things up! :)
So I've done a bit of googling and I discovered that this behaviour matches a bug in a previous version of Webmin but has apparently since been fixed.
However, it seems that email must be configured separately within Webmin (see here). I'm not 100% sure, but I don't think that we're pre-configuring that (but really there's no good reason for us not to). So I suggest that you double check that first.
Next up, I found a similar bug report on the Webmin support forums (it was related to Bitnami rather than TurnKey, but that should be irrelevant). The user noted that once they had viewed and manually run the backup task within Webmin's cron job area, that it "just worked". That seems a little weird to me, but probably worth a try...
Other than that, I can only assume that there is some missing config and/or some misconfiguration. Or perhaps it's a reappearance of the above mentioned bug?! It sounds like you've pretty much done everything required (although please double check Webmin's email config), but it may be worth reading through the upstream Webmin MySQL DB backup doc just in case there is something you've missed.
Please let me know how you go. If it remains an issue, I'll walk you through updating Webmin to ensure that the issue still exists with the latest version (we package it ourselves and sometimes lag behind upstream version a bit; although we prioritise updating it when we become aware of security issues). If it remains an issue after updating, we'll open a bug report with upstream (i.e. the Webmin dev). If you can confirm that you need to set up the mail config for Webmin (and then it "just works"), we'll open a TurnKey bug and aim to pre-configure that by default in future releases.
Regardless, good luck with it and thanks for reporting your issue.