I’ve provisioned my server with Trellis. I then set up smtp to MailGun. MailGun allows you to send 10000 email a month free of charge.
At the beginning of last month I got an emial from MG that I’ve almost run out of my 10k limit. I thought - how would that be possible - there is only one live WP site with a contact form. I then thought that I’d secure the form so that it’s more difficult for bots to use the form. So then I implemented Captcha - thought the problem would be over.
In the middle of this month I’m receving similar message from MG that I’ve almost run out of my free quote. After inspecting MG’s logs I found that in fact WP cron is causing this issu, sending emails , several hundred a day. I’ve got thousands of these in the logs:
I am also running in to this issue. I’m getting 4 email (2 for staging, 2 for production) every 15 minutes that are attempting to be sent to web@{website-url}.
Just tried adding --quiet to the cron but no change. Emails just went out at the 9:30am mark here. About to try piping to dev/null and see if that helps.
EDIT:
It looks like adding > /dev/null 2>&1 and reprovisioning has stopped the emails from being sent. Is there anything I should be concerned about with this fix?