I strongly suspect this is a bug I've already fixed in the next version:
sometimes on 64-bit Linux systems, vsyslog() won't print all of the arguments
its given and inserts control characters instead. Usually it inserts the null
character (which ends the string) but yours seems to be inserting lots of other
junk as well. If you could run spamdyke with the "log-target" option set to
"stderr", the problem would likely go away.
It doesn't seem to cause any problems with spamdyke's operation, it just
doesn't print complete log messages.
You can try fixing it yourself, if you'd like. In version 4.3.1, edit log.c
and go down to line 506. You should see this:
vsyslog(syslog_level, format, tmp_va);
Replace it with these two lines:
vsnprintf(tmp_data, MAX_BUF, format, tmp_va);
syslog(syslog_level, "%s", tmp_data);
Recompile it with "make" and replace the spamdyke binary with the new one.
That should do it!
-- Sam Clippinger
On Jun 18, 2013, at 1:33 AM, Arne Metzger wrote:
> Hi,
>
> here are two log lines using tail from command line in a putty ssh session:
>
> Jun 18 08:15:09 sxxxv spamdyke[6336]: FILTER_BLACKLIST_NAME ip:
> 217.160.78.38 rdns: s16119092.onlinehome-server.info file:
> /var/qmail/spamdyke/blacklist_rdns(80)
> Jun 18 08:15:09 sxxxv spamdyke[6336]: DENIED_BLACKLIST_NAME from:
> [email protected] to: [email protected] origin_ip: 217.160.78.38
> origin_rdns: s16119092.onlinehome-server.info auth: (unknown)
> encryption: TLS reason:
> ^B^B^B^B^B^B^_^B^B^B^B^B^B^B^B^B^]^B^B^A^R^A^A^B^Z^B^^^B^B^B^B^B^B^B^B^B^B^B^_^B^B^B^B^B^B^B^B^B^]^B^B^A^P^A^A^A^A^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^A^A^A
> Jun 18 08:15:09 shjjv spamdyke[6336]: DENIED_BLACKLIST_NAME from:
> [email protected] to: [email protected] origin_ip: 217.160.78.38
> origin_rdns: s16119092.onlinehome-server.info auth: (unknown)
> encryption: TLS reason:
> ^B^B^B^B^B^B^_^B^B^B^B^B^B^B^B^B^]^B^B^A^R^A^A^B^Z^B^^^B^B^B^B^B^B^B^B^B^B^B^_^B^B^B^B^B^B^B^B^B^]^B^B^A^P^A^A^A^A^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^B^A^A^A
>
> Regards,
> Arne
>
> Am 18.06.2013 07:59, schrieb Arne Metzger:
>> Hi Eric,
>>
>> i use maillog on my "plesk-system". normally i have multitail running in
>> a putty window, but i try tail today.
>>
>> Reagrs,
>> Arne
>>
>> Am 17.06.2013 18:29, schrieb Eric Shubert:
>>> What are your log related config settings?
>>> If log-target is syslog, which syslog software are you using?
>>> If log-target is stderr, please include sample of your run file.
>>>
>>> On 06/17/2013 06:54 AM, Arne Metzger wrote:
>>>> I dont want to confuse you, so here the log lines without line breaks
>>>>
>>>> Jun 17 15:45:51 shjjv spamdyke[9610]: FILTER_RBL_MATCH ip:
>>>> 203.80.244.134 rbl: zen.spamhaus.org
>>>> Jun 17 15:45:51 shjjv spamdyke[9610]: DENIED_RBL_MATCH from:
>>>> [email protected] to: jxxxt-OrRQzMG+/[email protected]
>>>> origin_ip: 203.80.244.134
>>>> origin_rdns: mail.con-link.com auth: (unknown) encryption: (none)
>>>> reason: zen.^Y
>>>>
>>>> Second entry is truncated at ^Y
>>>>
>>>> Am 17.06.2013 15:50, schrieb Arne Metzger:
>>>>> Hello,
>>>>>
>>>>> i just wonder why some of my log entries are truncted
>>>>>
>>>>> Jun 17 15:45:51 shjjv spamdyke[9610]: FILTER_RBL_MATCH ip:
>>>>> 203.80.244.134 rbl: z
>>>>> en.spamhaus.org
>>>>> Jun 17 15:45:51 shjjv spamdyke[9610]: DENIED_RBL_MATCH from:
>>>>> [email protected] t
>>>>> o: [email protected] origin_ip: 203.80.244.134 origin_rdns: mail.con-link.
>>>>> com auth: (unknown) encryption: (none) reason: zen.^Y
>>>>>
>>>>> Any hints?
>>>>>
>>>>> Regards,
>>>>> Arne
>>>>>
>>>>> PS: Sam, Thank you soooo much for your fantastic work! I Love spamdyke!
>>>>> _______________________________________________
>>>>> spamdyke-users mailing list
>>>>> [email protected]
>>>>> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>> _______________________________________________
>> spamdyke-users mailing list
>> [email protected]
>> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>
> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users