User Tools

Site Tools


get_sendmail_to_log_the_subject_line

Get Sendmail to Log the Subject Line of an E-mail

Edit /etc/mail/sendmail.mc

After the MAILER () definitions, add:

LOCAL_CONFIG
Klog syslog
HSubject: $>+CheckSubject
LOCAL_RULESETS
SCheckSubject
R$*     $: $(log Subject: $1 $) $1

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)