In short, what I need to do is receive mail on:
xyz.domain.com
pdq.domain.com
etc.domain.com
...without having to configure each of these domains, because over time, there will be 1000s of them. I read the post about wild-card subdomains not being supported (and not likely to be supported in the future). I realize that this is one solution (support for wild-card subdomains), but I wonder if there is another solution?
For example, is it possible to rewrite the "to" domain before a message is processed? By configuring my DNS MX records with a "*", the hMailServer IP address is resolved for (anything).domain.com, so the remote server will certainly try to connect to the hMailServer. But can I get access to the incoming email (and rewrite the "to" domain to "domain.com") early enough in the receive operation so that hMailServer won't reject it?
Receiving inbound mail from subdomains
Re: Receiving inbound mail from subdomains
You could possibly receive email from any domain if you open up your server with external to external and no auth checked then setup a global rule.
message size > 0
AND
Recipient NOT Contains configured@account
Forward to (configured@account)
Delete email
this would forward all email to one account.
You would add extra clauses to ignore domains but i suspect that doing this will be just as much work as before if you need to deliver email to specific users of specific subdomains.
Also this would open your server to spammers so you would need an additional script that denied delivery to anything except *.yourdomain.com there are tons of scripts in the user contributed section you can rip apart to do what you need.
message size > 0
AND
Recipient NOT Contains configured@account
Forward to (configured@account)
Delete email
this would forward all email to one account.
You would add extra clauses to ignore domains but i suspect that doing this will be just as much work as before if you need to deliver email to specific users of specific subdomains.
Also this would open your server to spammers so you would need an additional script that denied delivery to anything except *.yourdomain.com there are tons of scripts in the user contributed section you can rip apart to do what you need.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ