Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] peer - reply 200

2004-06-07 by manu@netbsd.org

hans hm04 <hm04.yer@...> wrote:

> sorry for my late answer, but i was very busy last days. 
> due to your first reply i did see, that i didn't ask
> what i want.  my question should be "is there somebody out
> who use the peer statement on _solaris_ plattform"

Um, that may be a bit less easy to find. :) 

>   6   0.00090      dzsmtp1 -> dzsmtp2      TCP D=5252 S=49932 Push
> Ack=1659155102 Seq=3351061952 Len=119 Win=49640
> 
>          0: 0800 2077 e050 0003 ba14 f7ae 0800 4500    .. w.P....รท...E.
>         16: 009f 5570 4000 4006 e5ed c225 3d56 c225    ..Up@.@....%=V.%
>         32: 3d5a c30c 1484 c7bd 25c0 62e4 b29e 5018    =Z......%.b...P.
>         48: c1e8 3d35 0000 3230 3020 5965 6168 2c20    ..=5..200 Yeah,
>         64: 7768 6174 2064 6f20 796f 7520 7761 6e74    what do you want
>         80: 3f0a 6164 6420 6164 6472 2031 3934 2e34    ?.add addr 194.4
>         96: 382e 3132 352e 3337 2066 726f 6d20 3c68    8.125.37 from <h
>        112: 616e 732e 6d61 7965 7240 6131 2e6e 6574    ans.mayer@...
>        128: 3e20 7263 7074 203c 6861 6e73 2e6d 6179    > rcpt <hans.may
>        144: 6572 4061 6765 732e 6174 3e20 6461 7465    er@...> date
>        160: 2031 3038 3635 3538 3033 370d 0a            1086558037..

For some reason I can't figure yet, the data sent contains some received
data. Weird.

In sync.c, there are only fprintf and fgets on a stream obtained from
the socket connexion. I see no reason why I could send some data I
received.

in sync.c:sync_send(), try adding a fpurge(peer->p_stream):

        if ((peer->p_stream == NULL) && (peer_connect(peer) != 0))
                return -1;

        fpurge(peer->p_stream);

        if (type == PS_CREATE)
                fprintf(peer->p_stream, "add ");
        else
                fprintf(peer->p_stream, "del ");

And retry with snoop to see if something changed (I don't say if
something work as if this is the fix, it won't be enough to fix
everything) 

-- 
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.
manu@...

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.