Mirror of all messages

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
hunterjn
New user
New user
Posts: 3
Joined: 2017-01-11 16:00

Mirror of all messages

Post by hunterjn » 2017-01-11 16:06

Hello.. Please, help me...

How to mirror off received and sent messages for one mail address?

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

Re: Mirror of all messages

Post by katip » 2017-01-11 16:27

global rule #1
if from contains user@domain.com
and X-hMailServer-LoopCount < 1
forward to mirror@domain.com

global rule #2
if recipientlist contains user@domain.com
and X-hMailServer-LoopCount < 1
forward to mirror@domain.com
Katip
--
HMS 5.7.0, MariaDB 10.4.10, SA 3.4.4, ClamAV 0.103.2

agatha
Normal user
Normal user
Posts: 49
Joined: 2015-10-30 11:13

Re: Mirror of all messages

Post by agatha » 2017-01-11 16:49

and X-hMailServer-LoopCount < 1
Do you need a loop-count, when using recipient list?

hunterjn
New user
New user
Posts: 3
Joined: 2017-01-11 16:00

Re: Mirror of all messages

Post by hunterjn » 2017-01-11 18:36

I'm new to hmail. I do not understand your post Do you have any step-by-step how to make the zer rule? I need everything that happens in one email to duplicate in the other, including the items sent.

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

Re: Mirror of all messages

Post by katip » 2017-01-11 19:10

agatha wrote: Do you need a loop-count, when using recipient list?
not necessarily i think. it's a good habit though ;)
Katip
--
HMS 5.7.0, MariaDB 10.4.10, SA 3.4.4, ClamAV 0.103.2

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

Re: Mirror of all messages

Post by katip » 2017-01-11 19:13

hunterjn wrote:I need everything that happens in one email to duplicate in the other, including the items sent.
you may want to have a look at docs first:
https://www.hmailserver.com/documentati ... rence_rule
https://www.hmailserver.com/documentati ... s_examples
if still unclear let us know. HTH
Katip
--
HMS 5.7.0, MariaDB 10.4.10, SA 3.4.4, ClamAV 0.103.2

hunterjn
New user
New user
Posts: 3
Joined: 2017-01-11 16:00

Re: Mirror of all messages

Post by hunterjn » 2017-01-11 19:19

Thanks... I will read

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

Re: Mirror of all messages

Post by mattg » 2017-01-11 23:59

There is also a mirror function that does EXACTLY what you are asking >> https://www.hmailserver.com/documentati ... nce_mirror

Please be aware that this may be ILLEGAL in some jurisdictions. Please check local laws before enabling.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

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

Re: Mirror of all messages

Post by katip » 2017-01-12 05:12

mattg wrote:There is also a mirror function
OP was asking about mirroring a single user as far as i understand.
Katip
--
HMS 5.7.0, MariaDB 10.4.10, SA 3.4.4, ClamAV 0.103.2

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

Re: Mirror of all messages

Post by mattg » 2017-01-12 07:42

Ah yes you are correct...
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
cshawky
New user
New user
Posts: 16
Joined: 2020-04-11 09:50
Location: Sydney

Re: Mirror of all messages

Post by cshawky » 2021-09-26 02:58

Hi
Out of interest if Mirror is enabled, would it capture any email that an external attempted to send through this mail server?
Mind you, the mail server setup should be such that this is not possible.

have a nice day
Chris
kind regards
Shawky

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

Re: Mirror of all messages

Post by mattg » 2021-09-26 06:08

Not 'attempted'
Only 'successful'
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
cshawky
New user
New user
Posts: 16
Joined: 2020-04-11 09:50
Location: Sydney

Re: Mirror of all messages

Post by cshawky » 2021-09-26 08:13

Thanks Matt
kind regards
Shawky

Post Reply