SMTP relay for some specific 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
eric92
New user
New user
Posts: 28
Joined: 2011-09-26 06:45

SMTP relay for some specific domains

Post by eric92 » 2013-02-10 17:33

Hi,

Is it possible to relay emails using hmailserver for a few domains instead of whole server? We can set relay for whole server using the 'Delivery of Email' tab under the smtp but I cant find any for one or some of the domains on that server. Is it possible in any way?

Thanks!

japi
New user
New user
Posts: 27
Joined: 2011-06-12 14:09
Location: Germany

Re: SMTP relay for some specific domains

Post by japi » 2013-02-10 18:15

Yes it is possible :) You can use routes (Settings --> Protocols --> SMTP --> Routes) to forward mails to specific domains to another server:
http://www.hmailserver.com/documentatio ... ence_route

eric92
New user
New user
Posts: 28
Joined: 2011-09-26 06:45

Re: SMTP relay for some specific domains

Post by eric92 » 2013-02-10 18:50

Thanks japi, routes does allow me to send accomplish half of what I want. i.e. sending 'to' specific domain. However I am hosting more than one domain on my server and this method will route emails from all the domains through this route for a specific domain. What I need is to allow route to send from specific domains and not from the other domains.

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: SMTP relay for some specific domains

Post by Bill48105 » 2013-02-10 19:30

Not certain I follow you entirely eric92 but you can use Routes for in or out, you just adjust the "matches route" settings at the bottom of the route screen. An example of mailbagging/ETRN (being a secondary MX) is shown here:
http://www.hmailserver.com/forum/viewto ... 45#p125845
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

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

Re: SMTP relay for some specific domains

Post by mattg » 2013-02-10 23:54

ALSO

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

Mooto
New user
New user
Posts: 1
Joined: 2013-02-12 14:31

Re: SMTP relay for some specific domains

Post by Mooto » 2013-02-12 15:20

mattg wrote:ALSO

Use a global rule to call the route
Hi guys
i have been trying to set up my own email server using hmail and iam find errors when testing please help.

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

Re: SMTP relay for some specific domains

Post by mattg » 2013-02-12 16:31

Please start a new thread as per forum rules and show more detail, eg what errors
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