Receiving email from any subdomain.
Receiving email from any subdomain.
Hey there. I had a pleasant experience with hmailserver after spending days trying to set up postfix to no avail.
I was wondering if I could have any subdomain forward to a root email using a rule or script?
I found this was related: https://www.hmailserver.com/forum/viewtopic.php?t=20444
Although he only needed to forward to a catch all email, I need to forward to the appropriate user.
Example:
bloxxite@this.is.an.example.com -> bloxxite@example.com
Thank you!
I was wondering if I could have any subdomain forward to a root email using a rule or script?
I found this was related: https://www.hmailserver.com/forum/viewtopic.php?t=20444
Although he only needed to forward to a catch all email, I need to forward to the appropriate user.
Example:
bloxxite@this.is.an.example.com -> bloxxite@example.com
Thank you!
Re: Receiving email from any subdomain.
You can have aliases on your domain. Check Names in domain settings.
SørenR.
Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.
Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.
Re: Receiving email from any subdomain.
I have multiple users and would like to forward from their subdomain of choice to the root domain to their account.
I can't do wildcard subdomains in aliases, plus if there were, I would have to create a new alias per user.
I can't do wildcard subdomains in aliases, plus if there were, I would have to create a new alias per user.
Re: Receiving email from any subdomain.
Alright, I'm gonna learn VBScript and make an SMTP External to External handler myself. Thank you!
When I am done hopefully I can edit this post to include my code.
When I am done hopefully I can edit this post to include my code.
Re: Receiving email from any subdomain.
How will you receive the message if there is no mx record for this.is.an.example.com?
Re: Receiving email from any subdomain.
I can do * for my MX record.
-
- Senior user
- Posts: 332
- Joined: 2016-12-08 02:21
Re: Receiving email from any subdomain.
That's weird, because my server is getting the HELO from gmail when I do a subdomain like that.
It just thinks that the "To" is external so it wants authentication.

It just thinks that the "To" is external so it wants authentication.

Re: Receiving email from any subdomain.
not all dns servers accept the input " * for mx record " but some surely do ( it is ok by for example https://tools.ietf.org/html/rfc1912 section 2.7 and https://tools.ietf.org/html/rfc4592#section-2.2.1 ) but be sure to know what to expect from it, 1 caveat could be.. there can only be 1 of info@, suport@, webmaster@, and so forth.
___________________________________________________________end of the line
Re: Receiving email from any subdomain.
No, most DNS server don't reduce it to the first subdomain level only. So *.example.com will also serve a.b.c.d.example.com.mikedibella wrote: ↑2020-08-06 02:00Remember that *.example.com will only catch an.example.com, not is.an.example.com or this.is.an.example.com.
On wildcard certificates you're right. *.example.com is only valid for this first subdomain level.
-
- Senior user
- Posts: 332
- Joined: 2016-12-08 02:21
Re: Receiving email from any subdomain.
Yup, that's where I got my circuits crossed.On wildcard certificates you're right. *.example.com is only valid for this first subdomain level.