Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add email subject to maillog (sendmail log file)

Status
Not open for further replies.

csgonan

MIS
May 2, 2007
118
US
I need to add the email subject to sendmail (8.13.8+Sun). I understand I can do that in the sendmail.cf How can I do this for both the local.cf and sendmail.cf, and even the submit.cf so I can see the subject in all the maillog entries.

This is a solaris 10 server. I found 2 of the same suggestions that did not work.

I added this to my sendmail.mc file and rebuilt but the subject did not appear in the logs.

LOCAL_CONFIG
Klog syslog
HSubject: $>Log_Subject

LOCAL_RULESETS
SLog_Subject
R$* $: $(log Subject: $1 $) $1



Thanks
 
I got this to work. I had to link both local.cf and sendmail.cf to the resulting file.

LOCAL_CONFIG
Klog syslog
HSubject: $>+CheckSubject

LOCAL_RULESETS
SCheckSubject
R$* $: $(log Subject: $1 $) $1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top