I have a WHM/cPanel box which is working fine with the configured domains for web and mail. I have also configured wildcard subdomains so that anything.mysite.com takes you to the same as mysite.com website which I then do slightly different things dependant on the subdomain etc.
I now need email to work similarly where I want email@example.com to be caught by the exim server and handled locally the same as firstname.lastname@example.org is - what the aim here is that I have setup a script which catches all non-specified email and will do something with it depending on subdomain and user etc.
the problem here is that while the message is definitely going to the right server I am getting a 451 response back telling me there will be a delay. email to email@example.com works 100%.
I can't speficy all the subdomains as these are dynamic.
I have tried adding the *.mysite.com entry into /etc/localdomains as per someone else's suggestion and then the error becomes "Unroutable Address". I do have root access to the machine, but I am not very versed in exim configuration. Any help appreciated.
EDIT: I have had cPanel support on the case for me and while they were pretty helpful they have commented that the request is beyond the scope of their support. They have recommended adding a router entry to the exim config for the wildcard subdomains - I have tried this and while I did get it working for a subdomain i cannot figure out the wildcard part the equation. Any direction at all would be great.