If you are coming to this topic late like I did, you should know that the sample config shown in the instructions are no longer working.
Instead, use the “fixed configuration” here: Custom Email Configuration - Failed to send magic link email reply by jannis.
The rest of the instructions, especially the part about configuring Mailgun still works.