in reply to Re: Re: Socket weirdness
in thread Socket weirdness

And you're sending "250 ...\r\n", right? Not sending a proper SMTP line ending could confuse some clients and not others.

Also, is it possible the clients are timing out, because you're taking a very long time to process the message?

I find that using something like snoop/tcpdump or truss/strace is a great way of getting a reality check on what my program is really doing, as compared to what I think it's doing. :)

Replies are listed 'Best First'.
Re: Re: Re: Re: Socket weirdness
by dgaramond2 (Monk) on May 07, 2004 at 19:49 UTC

    Yup, always "\r\n" (actually I got a little paranoid and always make a habit to write "\015\012", because sometimes I tinker on Windows).

    Timing out: don't think so. The timestamps on my log clearly show consistently only 1-2 second between done receiving DATA and sending the 250 line.

    Anyway, I'm gonna try to have a session with my client and will do tcpdump and strace as well. Thanks. (Argh, it's so frustrating not being able to reproduce this myself...)

      But do you binmode?
        Do I need to on Linux?