Bug 3884 - spamd: wrong ident and facility in syslog messages
Summary: spamd: wrong ident and facility in syslog messages
Status: RESOLVED WORKSFORME
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: 3.0.0
Hardware: All other
: P5 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords: triage
Depends on:
Blocks:
 
Reported: 2004-10-07 08:35 UTC by Andreas Dembach
Modified: 2005-07-23 10:06 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Dembach 2004-10-07 08:35:39 UTC
It seems that spamd loses ident and facility for syslog() calls after forking:

/var/log/mail.log
Oct  7 17:28:37 fred spamd[7376]: spamd starting  

/var/log/messages:
Oct  7 17:28:41 fred check[7390]: server started on port 783/tcp (running
version 3.0.0)  
Oct  7 17:28:41 fred check[7390]: server successfully spawned child process, pid
7413  
Oct  7 17:28:41 fred check[7390]: server successfully spawned child process, pid
7414  


However, after I patched the spamd code as follows, everything seems to be fine.

1692c1692
<   eval { syslog( 'info', "%s", $msg ); };
---
>   eval { openlog_for_spamd(); syslog( 'info', "%s", $msg ); };
Comment 1 Daniel Quinlan 2005-04-29 01:57:22 UTC
this should be working in HEAD, can you test on the latest nightly
build of the pre-3.1 tree (available from downloads)
Comment 2 Duncan Findlay 2005-07-23 18:06:34 UTC
The logging code changed significantly between 3.0.0 and 3.1.0, so this code
likely changed, and I suspect this is fixed. Please reopen if you still see this.