Accessing MX Backup

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
Ralphski
New user
New user
Posts: 5
Joined: 2019-06-04 05:35

Accessing MX Backup

Post by Ralphski » 2019-09-30 01:12

Hi All,

I have hMailServer set as my MX Backup (should our main mail server go offline).

My question... Can I / How can I access/check emails sitting on hMailServer? (for when my main server goes offline).

I have no mail accounts set up on hMailServer (as it's set to try to forward emails once the main server comes back online).

Assistance is much appreciated

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

Re: Accessing MX Backup

Post by palinka » 2019-09-30 03:14

No accounts makes it tough. You could possibly set up a local domain/account and forward all mail there. Then you could see what is being received by logging in with a mua or webmail.

Ralphski
New user
New user
Posts: 5
Joined: 2019-06-04 05:35

Re: Accessing MX Backup

Post by Ralphski » 2019-09-30 03:29

palinka wrote:
2019-09-30 03:14
No accounts makes it tough. You could possibly set up a local domain/account and forward all mail there. Then you could see what is being received by logging in with a mua or webmail.
Thank you palinka, however, if I set up a forward, will it still run as an MX Backup system (capture and still send mail to my primary mailserver (once it comes back online)?

Sorry if I sound like a newb... I am.
Until very recently our ISP managed our backup MX

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

Re: Accessing MX Backup

Post by palinka » 2019-09-30 03:38

I can't think of a reason why it wouldn't. Forwarding is a separate event and wouldn't have anything to do with however the rest of the system operates.

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

Re: Accessing MX Backup

Post by mattg » 2019-09-30 04:05

Ralphski wrote:
2019-09-30 03:29
Thank you palinka, however, if I set up a forward, will it still run as an MX Backup system
No it won't,

You can work around some things, but the one thing you can't work around is that if a message is delivered to hMailserver and there is a local account to match hMailserver will ALWAYS deliver to the local account
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Ralphski
New user
New user
Posts: 5
Joined: 2019-06-04 05:35

Re: Accessing MX Backup

Post by Ralphski » 2019-09-30 04:29

mattg wrote:
2019-09-30 04:05
Ralphski wrote:
2019-09-30 03:29
Thank you palinka, however, if I set up a forward, will it still run as an MX Backup system
No it won't,

You can work around some things, but the one thing you can't work around is that if a message is delivered to hMailserver and there is a local account to match hMailserver will ALWAYS deliver to the local account
Thank you Matt, good to know.
I don't have a local account on my hMailServer (whew)... What about if I use a 'mirror' address?

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

Re: Accessing MX Backup

Post by mattg » 2019-09-30 04:36

How have you set up the Backup MX on your hMailserver?
What else is your hMailserver doing?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Ralphski
New user
New user
Posts: 5
Joined: 2019-06-04 05:35

Re: Accessing MX Backup

Post by Ralphski » 2019-09-30 04:44

mattg wrote:
2019-09-30 04:36
How have you set up the Backup MX on your hMailserver?
What else is your hMailserver doing?
I've set it up using this link;
https://www.hmailserver.com/documentati ... _mx_backup
It's doing nothing but that at this stage.
My boss, however, has asked is it possible to see emails on there (if our inhouse server is offline). I've told her it's not possible, but then she asked about forwarding. Now I know that's a no go, I saw the 'mirror' and thought this could satisfy her needs...

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

Re: Accessing MX Backup

Post by katip » 2019-09-30 05:21

Ralphski wrote:
2019-09-30 04:44
My boss, however, has asked is it possible to see emails on there (if our inhouse server is offline).
you can "see" them on queue and also check their contents as long as you can RDP or Webadmin to backup MX box.
you can even copy content, paste locally in notepad, save as .eml and forward it to boss.
but YOU should do all, unless boss is a power user at least.
Katip
--
HMS 5.7.0-B2428-LTS-64-bit, MySQL 5.7.24, SA 3.4.2, ClamAV 0.101.2 + SaneS

Ralphski
New user
New user
Posts: 5
Joined: 2019-06-04 05:35

Re: Accessing MX Backup

Post by Ralphski » 2019-09-30 05:51

katip wrote:
2019-09-30 05:21
Ralphski wrote:
2019-09-30 04:44
My boss, however, has asked is it possible to see emails on there (if our inhouse server is offline).
you can "see" them on queue and also check their contents as long as you can RDP or Webadmin to backup MX box.
you can even copy content, paste locally in notepad, save as .eml and forward it to boss.
but YOU should do all, unless boss is a power user at least.
LOL :lol: Thank you Katip, she can bearly log into her TS Session remotely, let alone a mail server & know what to do/what she's looking for. I guess that's why I have a job :P
With the 'see emails' comment I was meaning is it possible to forward/mirror to another offsite location like gmail for example...

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

Re: Accessing MX Backup

Post by mattg » 2019-09-30 08:35

Perhaps with some scripting you could catch all messages as they arrive (OnAcceptMessage) and copy them to a new recipient

Thinking about this, the Mirror may also work

Test it and see and post back

The trick will be to see if they are still forwarded to the main MX later

As a question, how often does the boss think that the main MX will be DOWN?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

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

Re: Accessing MX Backup

Post by palinka » 2019-09-30 12:48

What about this?

Create fake.local domain with one user.

Create global rule:
If message size > 0
Then "create and send copy" to fake@fake.local

Then setup webmail to view the messages.

Just make sure the domain name is one that no recipient would ever be addressed to. As Matt said, local delivery takes priority over everything.

One word of caution: if this server being used company wide (as opposed to only sales inquiries, for example) you may run into some private stuff. You could mitigate that by limiting the rule to catch only messages sent to sales@company.com.

Post Reply