SMTP-Only Certain Domains?

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
HarryR
New user
New user
Posts: 4
Joined: 2018-02-24 23:12
Location: Weymouth, UK
Contact:

SMTP-Only Certain Domains?

Post by HarryR » 2020-07-16 15:09

I've been looking around and not finding anything on this exact question, is there a way to block certain protocols for domain names registered in hMail?

Scenario:
I have about 6 or 7 domains attached to hmail, some of these domains have their own IMAP / POP3 hosted on their own servers and are simply using my hmail to send e-mails.
When sending e-mails to their own domains (From: no-reply@domain.com To: info@domain.com) - I'm getting an error message with "User not found" assuming that the username (of the recipient) doesn't exist on my hmail setup - which is correct.

Is there any way to say "if this domain, send to external server"?

Thanks in advance,
Harry.
Web developer for cinema and alcohol chains across the world.
My own site can be found at https://harryrichards.co.uk

palinka
Senior user
Senior user
Posts: 2583
Joined: 2017-09-12 17:57

Re: SMTP-Only Certain Domains?

Post by palinka » 2020-07-16 15:17

Setup a route for domain.com that connects directly to domain.com's server.

Then create a global rule if to contains domain.com, then use route.

User avatar
mattg
Moderator
Moderator
Posts: 21328
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: SMTP-Only Certain Domains?

Post by mattg » 2020-07-16 15:50

just creating the route is enough

no need for the global rule
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Post Reply