For a few months now, my inbox has been pretty quiet. I thought that the war on spam is finally over, but then I noticed that my regular cron job emails weren't being received either.
I checked and disabled all my email filters, nothing strange there.
I disabled all my spam checks. Nope nothing there too.
Without many other options, I contacted my web host and they said it seemed fine. I sent various test emails and replied back saying it wasn't working for me on all email addresses on their servers.
Something seemed fishy, but I decided to bypass my usual IMAP method of use and went straight to webmail. Wasn't showing up there either.
Clicking around on all the options on Roundcube, by chance I stumbled upon an option to select folder subscriptions and noticed a bunch of folders which matched the names of my test emails!
It turns out somewhere along the line, in a "recent" update cPanel decided to redirect all plus-addressed emails to a subfolder matching the name of the sub-address. This was a ridiculously stupid decision as IMAP clients generally don't refresh the subfolder listings until you tell them to. With plus-addressing being a useful tool to determine where spam emails come from, it's a chore to keep refreshing the folders whenever I sign up to a new website.
What makes it worse is there is no option to disable this default behaviour. They've just proudly written down in the docs as a note under "Email subaddresses" in case you happen to stumble upon it.
In the docs there are notes about tweaking EXIM (which sounds like it could cause more trouble), but thankfully I managed to find a help page by Ngage Hosting UK which provided a fix for this. I'd take a guess it was a response to customers frequently complaining about not receiving emails...
- Go to your cPanel setup page
- Click on Mail > "User-Level Filtering"
- For each email address, click on "Manage Filters"
- Click "Create a New Filter"
- Give it a name (eg. "Sub-address to inbox")
- Set rule to be "To" > "matches regex" > you\+[a-z0-9]@yourdomain.com (replace "you" and "yourdomain.com" parts)
- Set action to be "Deliver to Folder"
- Click the browse button and select "Inbox"
- Save it and repeat for other email addresses
You'll also have to do this for every domain, so enjoy this tedious process!