Email wildcard subdomain using Exim

r0kawa

Verified User
Joined
Nov 17, 2005
Messages
17
I want to process all emails sent to *@*.example.com (that is any
subdomain of example.com) to a PHP script using EXIM. Is this possible and can someone show me a tutorial/clue related to this one.

I'm creating a SaaS apps that create subdomain.example.com to a user with and email *@subdomain.example.com with it.

Thank you in advance.
 
So setup a catch all to an email on your domain then pipe it to your php script.
 
No its not possible. Every subdomain would need a mx record as well. You would have to find a way to make it work in /etc/exim.conf but your on your own.
 
No its not possible. Every subdomain would need a mx record as well. You would have to find a way to make it work in /etc/exim.conf but your on your own.

I think i've solve that using wildcard dns for mx record.

*.example.com IN MX 14400 10 mail (maybe in the wrong order) but I can dig any subdomain ( wildcard) mx record. The problem is in exim.conf setting.
 
You can definitely do it with custom changes to the exim.pl file. You can probably do it with a custom exim router as well.

Jeff
 
Back
Top