Koozali.org: home of the SME Server

Backup Incoming and Outgoing EMail - SME 7.0b5

Offline mudra

  • ****
  • 78
  • +0/-0
Backup Incoming and Outgoing EMail - SME 7.0b5
« on: October 17, 2005, 02:16:32 PM »
I have been testing SME 7.0b5 at home and it really works well, however, on my production 6.01 box, I can backup all my incoming and outgoing mails through a set of instructions found here in the forum; using mailfront.

This method did not work in 6.5, does anyone know of a workaround for 7.0 ?

The method was as follows :-

Quote
At your own risk

1) From your closest mirror, download Charlie Brady's mailfront-0.86-1es2.i386.rpm contrib rpm. Example:

http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/CharlieBrady/RPMS/i386/mailfront-0.86-1es2.i386.rpm

2) Use the server-manager to add a user named 'maillog'

3) Add the rpm:
# rpm -Uvh mailfront-0.86-1es2.i386.rpm

4) Add the environment variable:
# echo maillog > /var/service/smtpfront-qmail/env/LOG_RECIPIENT

All mail incoming and outgoing is backed up in the maillog directory.

If this is not what you want anymore you can remove by

# rm /var/service/smtpfront-qmail/env/LOG_RECIPIENT
# service smtpfront-qmail restart

Credit to Charlie Brady



Is there another method to accomplish the same thing ? Another contrib maybe ? Another workaround ?

I would be more than willing to try some things out, I just have no idea where to start.

TIA

Mudra

 :roll:

tandum

Backup Incoming and Outgoing EMail - SME 7.0b5
« Reply #1 on: October 27, 2005, 04:42:02 PM »
I added a user to the system and then added the line :
| forward user@mydomain.com
to /var/qmail/alias/.qmail-localdelivery-default

You'd need to alter templates and signal an event to make the changes stick plus I'm only catching incoming mail not outgoing.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Backup Incoming and Outgoing EMail - SME 7.0b5
« Reply #2 on: October 27, 2005, 05:33:44 PM »
Quote from: "mudra"

This method did not work in 6.5, does anyone know of a workaround for 7.0 ?


Please see the bug tracker for 7.0 at http://smeserver.sourceforge.net/ - there is a feature request for that which contains a suggestion for how to achieve it.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Backup Incoming and Outgoing EMail - SME 7.0b5
« Reply #3 on: October 27, 2005, 05:35:04 PM »
Quote from: "tandum"
I added a user to the system and then added the line :
| forward user@mydomain.com
to /var/qmail/alias/.qmail-localdelivery-default

You'd need to alter templates and signal an event to make the changes stick plus I'm only catching incoming mail not outgoing.


And not only that, but you are keeping multiple copies for any mail with multiple recipients. Please see the bug tracker for an alternative suggestion.

Offline mudra

  • ****
  • 78
  • +0/-0
Backup Incoming and Outgoing EMail - SME 7.0b5
« Reply #4 on: May 06, 2006, 10:39:05 AM »
I have tried looking in BUGZILLA, does anyone have a link to the solution or more of a step-by-step guide.

I am really keen to move to 7.0 but need to back up all my incoming and outgoing mails.

TIA

Mudra

tandum

Backup Incoming and Outgoing EMail - SME 7.0b5
« Reply #5 on: May 10, 2006, 06:01:30 PM »
I now use the bcc plugin but the powers at be don't seem to like the way I do it. However, This script works.

Change the  echo "bcc all admin@localhost" to the address you want mail to go to.  Create a user called archive and send mail there.

This script creates ignore mail to and from files. Add appropriate people to those files. If admin is remote, add admin to both files.

--------Start---------------------
#!/bin/sh

# This script inserts the bcc plugin into qpsmtpd on SME 7

# Create the template directory
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/bcc_ignore_rcptto
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/bcc_ignore_mailfrom

# Create the Template files
echo "bcc all admin@localhost" > /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/13bcc
echo "admin" > /etc/e-smith/templates-custom/var/service/qpsmtpd/config/bcc_ignore_rcptto/template-begin
echo "admin" > /etc/e-smith/templates-custom/var/service/qpsmtpd/config/bcc_ignore_mailfrom/template-begin

# Add the bcc config files to email-update event. The plugins file already exists.
touch /etc/e-smith/events/email-update/templates2expand/var/service/qpsmtpd/config/bcc_ignore_mailfrom
touch /etc/e-smith/events/email-update/templates2expand/var/service/qpsmtpd/config/bcc_ignore_rcptto

# Trigger an email update and restart qpsmptd
/sbin/e-smith/signal-event email-update
/sbin/service qpsmtpd restart
-------stop---------------------

flame away

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Backup Incoming and Outgoing EMail - SME 7.0b5
« Reply #6 on: June 13, 2006, 03:13:46 PM »
Quote from: "CharlieBrady"
Please see the bug tracker for 7.0 at http://smeserver.sourceforge.net/ - there is a feature request for that which contains a suggestion for how to achieve it.


I *think* he's talking about bug # 13 NFR: add option to capture an archive copy of all mail which makes this look pretty simple...

I know nothing about it, nor whether it "plays well" with tandum's script (or makes it irrelevant...)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Backup Incoming and Outgoing EMail - SME 7.0b5
« Reply #7 on: June 14, 2006, 10:19:42 PM »
Quote from: "mmccarn"
Quote from: "CharlieBrady"
Please see the bug tracker for 7.0 at http://smeserver.sourceforge.net/ - there is a feature request for that which contains a suggestion for how to achieve it.


I *think* he's talking about bug # 13 NFR: add option to capture an archive copy of all mail which makes this look pretty simple...

I know nothing about it, nor whether it "plays well" with tandum's script (or makes it irrelevant...)


It obsoletes tandum's script.