Re: Exim a odchozi mail ...


To czdebian-l zavinac debian bod cz
From Petr Cech <cech zavinac atrey bod karlin bod mff bod cuni bod cz>
Date Wed, 28 May 2003 16:26:01 +0200
Mail-followup-to czdebian-l zavinac debian bod cz
User-agent Mutt/1.3.28i

Petr Klima napsal:
> Ahoj vsichni
> 
> Potreboval bych v Eximu udelat neco jako tohle
> (samozrejme to nefunguje ...)
> 
> * zavinac * ${1} zavinac ${2},qqq zavinac xxx bod cz,xxx zavinac seznam bod 
> cz Ffr
> 
> Z kratka potrebuji aby se archyvovali odchozi maily, a to i local 
> delivery  ...
> 
> Jede to najak jednoduse, nebo to budu muset krast z queue

precist si exim FAQ a najit
http://www.exim.org/exim-html-4.20/doc/html/FAQ.html#TOC328

   Q5033:  How can I send a copy of all outgoing messages to another
mailbox?

   A5033:  The most straightforward way is to set up a system filter, and
include a command such as:

    unseen deliver mailbox zavinac whatever bod domain

   This sends a copy of every message to mailbox zavinac whatever bod domain 
(unless the
message already has that recipient - Exim never does duplicate deliveries).

   To save only ``outgoing'' messages, you need to come up with a definition
of what ``outgoing'' means. Typically, this might be a check on the sender
address and/or on the originating host.  Here is an example:

    if $sender_address_domain is mydomain.com and
       ${mask:$sender_host_address/24} is 192.168.324.0/24
    then
      unseen deliver mailbox zavinac whatever bod domain
    endif


                                Petr Cech
-- 
Debian GNU/Linux maintainer - www.debian.{org,cz}
           cech zavinac atrey bod karlin bod mff bod cuni bod cz

"Computers are useless. They can only give answers."            Pablo Picasso

Partial thread listing: