cURL / Mailing Lists / curl-users / Single Mail


Re: Using cURL to check SMTP, POP3 servers

From: Gisle Vanem <>
Date: Thu, 5 Feb 2004 09:24:36 +0100

*** This mailing list is moving ***
*** ***
"J.Lance Wilkinson, 814-865-1818" <> said:

> I find that I can use
> cURL telnet://servername:25
> and cURL telnet://servername:110
> to get the salutations from the SMTP and POP3 servers that I want
> to test. What I can't seem to do is to get the connection, once
> the salutation has been secured, to DISCONNECT. All I can do is
> abort the cURL program, resulting of course in loss of any output
> from the -o, --dump-header or sysout assigned files.

I find that the salutation isn't send before you send a command.
So this
  echo HELO foo | curl --data-ascii - telnet://smtp-server:25

works kindof, but it disconnects too soon. I.e. when curl reads EOF
from stdin it seems. Maybe you can make it delay a bit longer?


The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
Received on 2004-02-05