Need help with "Forward to" in Rules

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
Atreyu4055
New user
New user
Posts: 4
Joined: 2015-07-31 16:06

Need help with "Forward to" in Rules

Post by Atreyu4055 » 2015-07-31 16:13

Hello, I am running HMS 5.6.3 build 2449 on Server 2008 R2 with multiple domains and many accounts.

Everything works perfectly.

Now I am being asked by one of the domains, lets say ABC, that for ALL messages, received and sent out, must be copied to another account. For example, I have john@abc.com. Every message received via SMTP for john@abc.com must be copied to mary@abc.com. And likewise anytime john@abc.com relays a message through HMS via SMTP, I need a copy to go to mary@abc.com as well.

Basically everything that is received via SMTP for abc.com should be copied to mary@abc.com and anytime HMS relays a message from the abc.com domain, mary@abc.com must be copied. Keep in mind that multiple domains are hosted here and its just this one domain that wants this functionality.

In the Domains - Accounts, screen, I set the "Forward to" and "Keep Message" and that appears to works perfectly. But I cannot figure out how to set up the latter problem?

I tried to define a rule as follows:

"Where From contains @abc.com Forward to mary@abc.com"

Nothing I try is working? Any help is appreciated,

Atreyu
8)

User avatar
katip
Senior user
Senior user
Posts: 757
Joined: 2006-12-22 07:58
Location: Istanbul

Re: Need help with "Forward to" in Rules

Post by katip » 2015-07-31 18:58

create an account such as fwd_abc@abc.com
goto settings -> advanced -> mirror -> fwd_abc@abc.com
define your rules in account rules of fwd_abc@abc.com where you forward anything related to abc.com to mary@abc.com and don't forget to drop (delete) all the rest.

this isn't an elegant solution but it should work i think.
scripting will do the job perfectly. i've no clue how.
Katip
--
HMS 5.7.0 x64, MariaDB 10.4.10 x64, SA 3.4.2, ClamAV 0.101.2 + SaneS

Atreyu4055
New user
New user
Posts: 4
Joined: 2015-07-31 16:06

Re: Need help with "Forward to" in Rules

Post by Atreyu4055 » 2015-07-31 20:37

Thanks for the reply, I will continue to research this and look into scripting.

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

Re: Need help with "Forward to" in Rules

Post by mattg » 2015-08-01 01:28

Atreyu4055 wrote: But I cannot figure out how to set up the latter problem?

I tried to define a rule as follows:

"Where From contains @abc.com Forward to mary@abc.com"
In a global rule, NOT AN ACCOUNT LEVEL RULE, this should work (it does for me. I have rules to get copies of all email sent by my kids. I have a rule for each kid)
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