User Tools

Site Tools


get_sendmail_to_log_the_subject_line

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
get_sendmail_to_log_the_subject_line [2007/03/02 16:27]
adam created
get_sendmail_to_log_the_subject_line [2007/03/02 16:28]
adam
Line 1: Line 1:
 ===== Get Sendmail to Log the Subject Line of an E-mail ===== ===== Get Sendmail to Log the Subject Line of an E-mail =====
  
-Edit /etc/mail/sendmail.mc+Edit ''/etc/mail/sendmail.mc''
  
-After the MAILER () definition, add:+After the MAILER () definitions, add:
  
-  Code Text''LOCAL_CONFIG+  LOCAL_CONFIG
   Klog syslog   Klog syslog
   HSubject: $>+CheckSubject   HSubject: $>+CheckSubject
Line 12: Line 12:
   R$*     $: $(log Subject: $1 $) $1   R$*     $: $(log Subject: $1 $) $1
  
-That's a tab after the R$* on the last line, not spaces.+That's a tab after the ''R$*'' on the last line, not spaces.
get_sendmail_to_log_the_subject_line.txt ยท Last modified: 2016/11/25 22:38 (external edit)