Configure Moodle 5.2 Cron and Outgoing Email
Configure Moodle cron, scheduled and ad hoc tasks, Mailpit, and outgoing email on Ubuntu 24.04, then verify that each part works.
What you will accomplish
Moodle scheduled tasks run from system cron and the initial outgoing-email path is tested in a controlled Mailpit setup.
Environment covered
Moodle 5.2 · Ubuntu 24.04 LTS · system cron · Mailpit
Open the companion guide
The exact commands for this tutorial are maintained as a GitHub Gist, which stays the canonical command reference.
This is practical lab and tutorial guidance. A working lab, a public demonstration system, and a production environment are not the same thing: check capacity, data protection, change control, and recovery requirements before applying any of it to a system that people depend on.