Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

RE: [milter-greylist] Re: Sync operation failing with 'Unexpected reply " 200" from peer ...'

2004-06-17 by attila.bruncsak@itu.int

Hello,

>>The fix is in 1.5.1, so everyone can test if it's okay.
>
>sync is ok (greylist.db on MXes are identical), but "Unexpected reply "add"
>from..." still appear in syslog:
>
>Jun 17 11:57:41 intra2 milter-greylist: [ID 829402 mail.info] Incoming MX
>sync connexion from 192.168.3.34
>Jun 17 12:09:54 intra1 milter-greylist: [ID 699817 mail.info] Connection to
>192.168.3.35 established
>Jun 17 12:09:54 intra1 milter-greylist: [ID 421412 mail.error] Unexpected
>reply "add" from 192.168.3.35, closing connexion (5 entries queued)

To summarize:
1. On V1.5.1 both Tru64 UNIX and Solaris 8 gives the error message:
'Unexpected reply "add" from ...'

This is probably due to the bug when I changed from strtok to strtok_r:
The variable 'cookie' has to be initialized to be NULL:
The "man strtok_r" says among others:
"In the initial call to strtok_r(), the *savept must be the null pointer."


2. On Solaris 8 the MX is working. On Tru64 UNIX the MX is still broken.
There is a need for the fflush() in the sync_server() function after
the fgets() for Tru64 UNIX. I think it does not heart on Solaris 8.

I attach a new diff.

Bests,
Attila

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.