Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Archiving All eMail Throughput

Status
Not open for further replies.

benace

IS-IT--Management
Apr 8, 2003
37
US
Hello everyone-

Hopefully this will be an easy one.

I want to archive every email that passes through my sendmail box, regardless of which mailbox it goes to, or if it is destined for a valid recipient. That is to say, I want every email that is sent to my sendmail server for acceptance to be archived into a separate mailbox called "archive".

Aside from appending ", archive" to every alias entry, is there a parameter or feature that will let me do this programatically? Disk storage is not a concern.

Thanks for the help

-ben


 
If the mailboxes are local, procmail is probably the easiest way. If messages pass through sendmail on their way to other destinations, then maybe will have what you need. Never tried it, myself.
 
lgarner-

Synonym worked beautifully. I've attached the process I used below:


5.0 Create user "archive"
5.1 Log into the sendmail server as root
5.2 Type cd /usr/local/bin and press Enter
5.3 Download the Synonym RPM from yum, the internet, or locally
5.4 Type rpm -ivh synonym-0.4-3.i386.rpm and press Enter
5.5 The program will return a command prompt when installation is complete
5.6 Type vi /etc/synonym.conf and press Enter
5.7 Replace entire text with the following (NO leading or trailing lines)
<Rules>
<Rule>
<Condition>
<Header>From</Header>
<Match>.*</Match>
</Condition>
<Action>
<ActionType>Copy</ActionType>
<Address>archive</Address>
</Action>
</Rule>
</Rules>
5.8 Save changes and exit
5.9 Type service synonym start and press Enter
5.10 Type chkconfig synonym on and press Enter
5.15 Type vi /etc/mail/sendmail.mc
5.16 At the very end, add the following two lines:
5.16.1 define(`_FFR_MILTER', `true')
5.16.2 INPUT_MAIL_FILTER(`Synonym', `S=local:/var/run/synonym/synonym.sock, T=C:10m;S:1s;R:1s;E:5m')
5.17 Save changes
5.18 Restart sendmail, start synonym
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top