On Mon, 8 Apr 2002, Daniel Feenberg wrote:

> (where $u is the addressee) we created a user "archive" and
> modified the argument list to:
> 
>    A=mail.local -f $g -d $u archive
> 
> which also appends a copy of every incoming message to /var/mail/archive.
[...]
> mail is made. grepmail is easy to use but slow. You might prefer to have
> separate archives by user.

Clearly.

We trivially modified mail.local (actually the postfix local daemon) to
save mail to both ~$user/Mailbox and /backup/mail.0/$user/Mailbox. This
isn't for long-term archiving, we just rotate these directories for a week.
Very popular for user oopsies, especially where they accidentally set up a
POP client to nuke their IMAP INBOX.

> Forwarded mail and mail handled by user-specified procmail in the
> .forward file is not archived. This might be considered a bug or a
> feature.

Both. Users have the option. They can always tell procmail to append to
/backup/$user/Mailbox if they want. In your case they'd need to resend with
a 0: c ! archive rule.

> Outbound mail is much harder. This is certainly a FAQ on

The general sendmail community answer is "we don't do that because we still
believe in privacy." :-)

You could probably do this with sendmail.cf hacks, but assuming you're at 
8.11 or higher, the milter interface could be easiest.
http://www.sendmail.com/partner/resources/development/milter_api/smfi_addrcpt.html

Er, does anyone know why 
http://www.sendmail.com/partner/resources/development/milter_api/sample.html
reads "Page is temporarily unavailable?" I'd hate to think the sample code 
has a security problem... I'm glad I made my milter chroot and drop privs.

> http://www.nber.org/copy-out.html in hopes someone will explain what it
> means.

It makes sense to me, but can't rule 0 be called more than once? You'd
store multiple copies.

> I have heard that Postfix has a bcc-always option that would handle this
> problem with a minimum of fuss.

Zero fuss at all, and yes always_bcc applies to _all_ mail whether locally 
delivered or relayed.
-- 
Rich Graves <[EMAIL PROTECTED]>
UNet Systems Administrator


---
Send mail for the `bblisa' mailing list to `[EMAIL PROTECTED]'.
Mail administrative requests to `[EMAIL PROTECTED]'.

Reply via email to