dgaramond2 has asked for the wisdom of the Perl Monks concerning the following question:
I have several production servers running a home-grown SMTP daemon written in Perl. It is actually an SMTP proxy for qmail-smtpd, forks per client, and uses Net::SMTP::Server (which uses IO::Socket). +- 1500 lines.
Lately I've been getting complaints of duplicate mails received _only_ from some ISPs. The cause is, after the sender sends ".", my program replies with "250 QUEUED" line but the sender doesn't seem to receive it. The SMTP connection then hangs for a while before disconnected. The sender would then retry the mail delivery several times. The result: users receive duplicates for their mails (sometimes only 5, sometimes up to 15-20!).
The senders seem to be Windows machine (they either use Communigate Pro or MDaemon). I had a client trying this on an Win98 machine and NT4 machine with the telnet program, and surely after he sends ".", my program replies with a 250 status line (which is shown in the debug log) but he doesn't receive it. Several other lines were sent from him, and my program replies as it should, but again no further response is received at his end.
I haven't been able to reproduce this in our office, using Win2K, Win98 SE, as well as Linux. The machines are behind a Linux firewall.
There seems to be no problem with other clients. But qmail-smtpd doesn't have this problem.
Any hints?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Socket weirdness
by dave_the_m (Monsignor) on May 07, 2004 at 18:02 UTC | |
|
Re: Socket weirdness
by sgifford (Prior) on May 07, 2004 at 18:46 UTC | |
by dgaramond2 (Monk) on May 07, 2004 at 19:18 UTC | |
by sgifford (Prior) on May 07, 2004 at 19:23 UTC | |
by dgaramond2 (Monk) on May 07, 2004 at 19:49 UTC | |
by Anonymous Monk on May 07, 2004 at 21:50 UTC | |
| |
|
Re: Socket weirdness
by traveler (Parson) on May 07, 2004 at 17:34 UTC | |
by dgaramond2 (Monk) on May 11, 2004 at 08:28 UTC | |
by traveler (Parson) on May 20, 2004 at 15:12 UTC | |
|
Re: Socket weirdness
by dgaramond2 (Monk) on May 07, 2004 at 17:26 UTC |