Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Backup or logging of all mail messages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
orick
n00b
n00b


Joined: 08 May 2003
Posts: 46
Location: Chile

PostPosted: Wed Aug 11, 2004 5:32 pm    Post subject: Backup or logging of all mail messages Reply with quote

Hi to all,

I want to setup a mail server with the main caracteristic that all incoming and outgoing messages, including attachments of whatever size will be logged completely and periodically backed up. This has to be independent of what type of MUA the user employs (pop, webmail etc).

In the documentation of qmail, there is a compile time option (setting QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5 in conf-unusual.h) that seems to provide this ingoing and outgoing logging facility, but I did not find something equivalent for postfix.

So, I would be grateful if somebody could answer to the following questions:

1. In the qmail ebuild, are that compile time options set, or do I have to set them by myself before emerging the ebuild?

2. For postfix, how could such a complete logging of all incoming and outgoing messages be acomplished?

Thank you very much in advance
_________________
Olivier
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Aug 11, 2004 6:31 pm    Post subject: Reply with quote

Then you did not read the manual !

Adding this to main.cf:

Code:
always_bcc = address@domain.tld

will send a copy of every message in or out of the system to that address.

One gotcha: this will, by definition, be the largest mailbox, so you'd better disable the internal quota for Postfix, since it will stop delivering to that mailbox when it has reached the maximum size.

You can implement normal filesystem quotas instead.

Or go for broke, and create a neat cron job to offload the mailbox to backup space every night ;-)
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
davidblewett
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 274
Location: Indiana

PostPosted: Wed Aug 11, 2004 9:55 pm    Post subject: Reply with quote

Courier has an option in it's ESMTP server config to keep a copy of every message that goes through it.
_________________
No guilt in life, no fear in death
this is the power of Christ in me
From life’s first cry to final breath
Jesus commands my destiny
-- Newsboys, "In Christ Alone", "Adoration: The Worship Album"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum