Koozali.org: home of the SME Server

smeserver-mxbackup contrib

Offline ReetP

  • *
  • 3,722
  • +5/-0
smeserver-mxbackup contrib
« on: June 30, 2017, 06:03:57 PM »
Whilst cruising about I found an old RPM of Pascal Schirrmann for setting up SME as a MX backup server

Details are here:

http://schirrms.net/sme/MXBackup.php (needs to go on the Wiki)

Files are here:

https://www.schirrms.net/files/

I have rebuilt the RPM for v9 - it needed the perl dir changing and a small mod to the spec file and seems to build OK.

You can get it from my repo for testing:

https://wiki.contribs.org/User:ReetP

https://www.reetspetit.com

Code: [Select]
yum --enablerepo=reetp install smeserver-mxbackup
Source code is in my git at the minute:

https://github.com/reetp/smeserver-mxbackup

smeserver-mxbackup.noarch 0:0.2-1

Note that I used the UTF version, renumbered it to v0.2 and dropped the UTF-8 in the name

Hope someone finds it useful - please let me know if there are any issues (not that I am a mail guru). Note that there is no guarantee with it. I haven't tested it beyond installing it.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: smeserver-mxbackup contrib
« Reply #1 on: July 02, 2017, 03:41:31 AM »
Thanks for this John.

I belive you might make some people happy :
https://bugs.contribs.org/show_bug.cgi?id=10182

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: smeserver-mxbackup contrib
« Reply #2 on: July 02, 2017, 01:50:24 PM »
Good news.

The main change was the location of the perl file as normal.

Another to go in the contribs repo I guess.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline smeghead

  • *
  • 557
  • +0/-0
Re: smeserver-mxbackup contrib
« Reply #3 on: March 24, 2019, 10:01:16 AM »
Hi John

I tried to get the contrib & find it's now residing in your testing folder, hence the proffered yum command fails.

I can wget it no probs.

Could you please put it in the SMEContribs repo so it's generally available.

Cheers

Good news.

The main change was the location of the perl file as normal.

Another to go in the contribs repo I guess.
..................

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: smeserver-mxbackup contrib
« Reply #4 on: March 24, 2019, 11:24:17 AM »
I'll go take a look. I have a feeling it needed more work.

Can you let me know what happens when you test it please?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: smeserver-mxbackup contrib
« Reply #5 on: March 25, 2019, 02:21:08 PM »
OK, yes it is in my testing repo for a really good reason.... it really is for testing only.

[Edit]
> You will find a load of debugging code appearing in the Server Panel

Only because I enabled debugging in the file /etc/e-smith/web/functions!!
No need to comment anything apart from the debug line

[/Edit]

I am still not convinced it works correctly but the only way to prove that is to test it.

If we get it vaguely workable we'll import it to Contribs. So help will be gratefully received.

if you want to chat with me about it then you can find me on chat.reetspetit.info - ask for a login if you haven't already got one.
« Last Edit: March 25, 2019, 05:12:54 PM by ReetP »
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: smeserver-mxbackup contrib
« Reply #6 on: March 25, 2019, 03:54:34 PM »
OK, so I *think* it seems to work, at least for a domain - not sure how to test a single host yet - you probably have to specify it somewhere in the test mail.

So add your domain in the panel.

Now, from another box try doing the following:

telnet mx-backup.server.net 25
EHLO localhost.localdomain
MAIL FROM:<john@somedomain.com>
RCPT TO:<john@main-mx-server.com>
DATA
To:<john@main-mx-server.com>
From:<john@somedomain.com>
Subject:Test
Some body text
.
quit

Check /var/log/qpsmtpd/current to see it is received.

Then /var/log/qmail/current to see that it goes out.

That seemed to accept the mail without authentication, and then send it along. Need I to need see if it stores the mail.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: smeserver-mxbackup contrib
« Reply #7 on: March 26, 2019, 01:25:43 PM »
0.2-2 in my teast repo.

Disable debugging which I think I may have left on.

Updated readme with settings and some notes on testing at github

https://github.com/reetp/smeserver-mxbackup

I'd really like to know if it works!
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: smeserver-mxbackup contrib
« Reply #8 on: March 27, 2019, 10:56:18 AM »
The debugging is ONLY for the web panel, so unless you are intending on debugging that then leave it disabled.

There is no debugging for the mail part itself via this contrib.

Any debugging for mail can be done using the standard mail properties in SME.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation