Page 1 of 1

Rule to forward all emails from one domain to an account

Posted: 2011-07-08 13:55
by FiShBuRn
hey,

Ive created a rule to forward all email from a specific domain like @testforward.com to a specific account but the problem is that the rule creates a loop reciving 5 equal emails on that specific account.

Example:

TO contains @testforward.com forward email to xpto@anotherlocaldomain.com

I dont understand why the loop is created...

Any help is welcome.

Thanks in advance

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 14:12
by Bill48105
Setting up the 2nd domain as a domain alias ("Names" tab) won't work?
And the loop occurs because whatever criteria you are testing matches the result as well.
Bill

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 15:12
by FiShBuRn
For this case no, it was like a "unique" request from administration.

Yes, but i send a email to fishburn@testforward.com and the xpto@anotherlocaldomain.com recieves like 5 equal emails, i think this is weird and makes no sense i guess :s

Is there another way to do this?

Edit: I could add the email in forward tab but the user would see this setting and that is not very good....:s and i could not forward email sent just recevied.

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 15:41
by Bill48105
So this is for 1 address not an entire domain? We'd need to see your rule settings/values..
Bill

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 15:44
by FiShBuRn
thanks bill for your helping :)

One address will recieve all sent and recieve mails from a specific domain.

Ive posted and example, it works but enter in a loop.

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 16:37
by ^DooM^
You need to add a second criteria

From not contains forward@emailaddress.com

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 17:07
by Bill48105
^DooM^ wrote:You need to add a second criteria

From not contains forward@emailaddress.com
And stop rule processing as action I'd assume.

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 17:11
by dzekas
Why are you using rules? What's wrong with catchall?

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 18:17
by FiShBuRn
dzekas wrote:Why are you using rules? What's wrong with catchall?
I think with catchall i only getting the messages to unknow email address.

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 18:48
by dzekas
FiShBuRn wrote:
dzekas wrote:Why are you using rules? What's wrong with catchall?
I think with catchall i only getting the messages to unknow email address.
how about http://www.hmailserver.com/documentatio ... nce_mirror

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-08 20:27
by FiShBuRn
that will mirror all domains :/ but thanks anyway...

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-11 01:13
by mattg
^DooM^ wrote:You need to add a second criteria

From not contains forward@emailaddress.com

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-11 15:24
by FiShBuRn
I know mattg im only trying to figure out my problem with hmail crashing and then i will have a look at this...its secundary for now.

Re: Rule to forward all emails from one domain to an account

Posted: 2011-07-11 16:20
by Bill48105
FiShBuRn wrote:I know mattg im only trying to figure out my problem with hmail crashing and then i will have a look at this...its secundary for now.
You consider screwy rules could somehow be cause of your crashes? You certainly have something odd going on there. ;)

Re: Rule to forward all emails from one domain to an account

Posted: 2013-08-12 15:16
by mirfan
Hi FiShBuRn,

Try changing "Rule loop Limtt" in SMTP settings .. default it is set to "5"

Open Hmail Server > Settings > Protocol > SMTP > Advanced = Other ->Rule loop Limit '5'

Read below or visit url for more information:

Rule loop count
This option lets you prevent hMailServer from creating endless message delivery loops. As an example, it's possible to set up an account rule that forwards message from one user (UserA) to another (UserB), and then another rule that forwards the message back from UserB to UserA. To prevent this from resulting in an endless loop, hMailServer limits the number of automatic forwards to the value defined by Rule loop count. (hMailServer 4.2 and later.)


http://www.hmailserver.com/documentatio ... rence_smtp

Thanks
Irfan