Koozali.org: home of the SME Server

Send copy of all mail to user.

anarchos

Send copy of all mail to user.
« on: February 18, 2004, 05:46:07 PM »
I am needing to send a copy of all mail going through the server to an archive account.  Anyone know of a way to do this?

ie. mail to anyone@domain.com gets delivered to the right account, and also copied to archive@domain.com.

I've done this before with qmail-scanner, but not sure how that would work with SME 6 and it's implementation of spamassassin, etc.

Any ideas?

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
Send copy of all mail to user.
« Reply #1 on: February 18, 2004, 06:54:22 PM »
anarchos,

There may be other ways, but can't you do this:

create the account 'archive'

edit each user to 'both deliver locally and forward' assigning the archive@domain.com as the forward address.

Craig

RayG

Send copy of all mail to user.
« Reply #2 on: February 18, 2004, 07:56:23 PM »
This functionality is built into qmail but may require a switch change and recompile. Search the forums for queue_extra which is the name of the switch (if I remember correctly) used to enable the archive feature.

anarchos

Send copy of all mail to user.
« Reply #3 on: February 18, 2004, 09:34:41 PM »
Thanks guys, I'm just going to go with the 'both deliver locally and forward' option as there aren't many users on this system.

Offline byte

  • *
  • 2,183
  • +2/-0
Send copy of all mail to user.
« Reply #4 on: February 18, 2004, 10:15:33 PM »
Or why not use this...

 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

5) Send some e-mails and you should find messages delivered to intended recipients plus archival copies in the 'maillog' inbox.

The above is found here @ http://myezserver.com/phpBB2/viewtopic.php?t=492

I use this to backup/archive my emails

HTH

Byte
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!