jak v Sendmailu kopírovat odchozí poštu?

Michal Kubecek mike na mk-sys.cz
Čtvrtek Srpen 7 23:31:22 CEST 2003


On Tue, Aug 05, 2003 at 02:19:47PM +0200, Mgr. Michal Nikitinský wrote:
> Ahoj,
> 
> jak je možné v sendmailu zajistit to, aby se kopie všech odchozích zpráv ze
> všech, nebo z určitých účtů poslala na urč. účet, či adresu? Jde to vůbec?

Nejjednodušší asi bude použít v mailertable něco na způsob

.               procmail:/etc/procmailrc.sniff

a v tom procmailrc.sniff už si pak můžete dělat, co vás napadne.

Viz též otázku 4.20 v Sendmail FAQ:



Subject: Q4.20 -- How can I automatically copy messages based on sender or
recipient addresses?

   Date: June 30, 2000
   Updated: February 27, 2001
   Updated: June 5, 2001

   It would require custom programming. You could either write a mail
   filter using the new (currently not supported) Milter API in sendmail
   8.10 and later (see libmilter/README) or you could look at some of
   these other unsupported hints:
     * Axel Reinhold's logall.c module
     * Message-Id: <33AA593A.4B701C3F na syntegra.nl>
     * the procmailrc man page

   Note that no such feature has been added to sendmail. When asked about
   this one of the sendmail developers said it was "because we still
   believe a bit in privacy."



                                                           Michal Kubeček


Další informace o konferenci Linux