[Exim] Logging of mails with attachment

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jens Strohschnitter
Dátum:  
Címzett: EXIM Official Maillist
Tárgy: [Exim] Logging of mails with attachment
Hi there,

is it possible to log all mails, that have attachments
to a seperate logfile, like blocking with system_filter ?

For example all mails with attachment should be logged
in a file attachments.log that contains the informations:

senderaddress
recipientaddress
attachment

like:

if "I DON'T KNOW WHAT TO ASK" then
logfile /var/log/exim/attachments.log
logwrite "$tod_log $message_id has attachment: $1"
logwrite "$tod_log subject: $rheader_subject"
logwrite "$tod_log recipients: $recipients"
logwrite "$tod_log return path: $return_path"
logwrite "------------------------------------------------------------------------------"
unseen finish
endif

But only mails with attachment. Any others should be
logged into the standart mainlog.

Hope someone can help me, thanxx a lot for all replies.


--
Regards,

     Jens Strohschnitter


-------------------------------------
*!!!LINUX LINUX LINUX LINUX LINUX!!!*

* http://www.jens-strohschnitter.de *
-------------------------------------
Set the controls for
         the heart of the sun
-------------------------------------