Re: Need more logging!

Marc MERLIN <[email protected]>
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
On Fri, Aug 15, 2003 at 07:23:40AM -0700, Marc MERLIN wrote:
> This is already logged in rejectlog

Mmmh, actually, spam that is accepted doesn't have its headers logged.

Just use the system_filter to save the headers of all incoming mails

Here's a sample you can modify:
if $header_message-id matches "<[^>]+@>"
then
  logfile /var/log/exim/nullmesgidbouncedemail.log 0600
  logwrite "$tod_log $message_id envelope: $sender_address, From: $h_from ($send
er_host_name[$sender_host_address]) => $recipients (recipients=$recipients_count
)  subject=$header_subject\n$message_headers"

  save /var/spool/exim/rejects/nullmesgidbouncedemail 0644

  if not error_message
  then
    fail text "Sorry, but your message-ID is broken, apparently because your\n\
             hostname isn't set right\n\
             You need to fix this before you can send us mail.\n"
  endif

  seen finish
endif

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/   |   Finger [email protected] for PGP key
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.