Discussion:
How do I disable VRFY?
ToddAndMargo
2017-10-14 10:31:06 UTC
Permalink
Hi All,

OH LUCKY ME !!!! smtp.zoho.com does not support VRFY and
boots you off if you try to use it!

Reference bug: https://bugzilla.redhat.com/show_bug.cgi?id=1502108

Fedora 26: curl-7.53.1-7.fc26.x8664
Scientific Linux 7.4: curl-7.29.0-42.el7.x8664

I am trying to send eMail through curl on Fedora26. I am getting:

< 502 mx.zohomail.com VRFY not implemented
* Command failed: 502
QUIT
curl-7.53.1-7.fc26.x8664 is issuing the VRFY command even when
the server does not support it.

My command line does work on old-out-of-date (Scientific Linux
7.4) where curl is so out-of-date that it has not yet implemented
VRFY (Added in 7.34.0).

My full command line(s):
$ cat mail.txt | curl smtp://smtp.zoho.com:587 -vvv --mail-from
"***@zoho.com" --mail-rcpt "***@zoho.com" --ssl -u
***@zoho.com:redacted -k --anyauth

$ cat mail.txt | curl smtps://smtp.zoho.com:465 -vvv --mail-from
"***@zoho.com" --mail-rcpt "***@zoho.com" --ssl -u
***@zoho.com:redacted -k --anyauth


$cat mail.txt
From: "***@zoho.com>
To: "***@zoho.com>
Subject: This is a test

Hi yyyyy,
I'm sending this mail with curl thru my zoho account.
xxxxx


Anyone have a workaround? How do I shut off the VRFY command?

Many thanks,
-T
<editorial comment> [expletive deleted] </editorial comment>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When we ask for advice, we are usually looking for an accomplice.
-- Charles Varlet de La Grange
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiq
ToddAndMargo
2017-10-14 11:00:23 UTC
Permalink
Post by ToddAndMargo
Hi All,
OH LUCKY ME !!!!  smtp.zoho.com does not support VRFY and
boots you off if you try to use it!
Reference bug: https://bugzilla.redhat.com/show_bug.cgi?id=1502108
Fedora 26: curl-7.53.1-7.fc26.x8664
Scientific Linux 7.4: curl-7.29.0-42.el7.x8664
< 502 mx.zohomail.com VRFY not implemented
* Command failed: 502
QUIT
curl-7.53.1-7.fc26.x8664 is issuing the VRFY command even when
the server does not support it.
My command line does work on old-out-of-date (Scientific Linux
7.4) where curl is so out-of-date that it has not yet implemented
VRFY (Added in 7.34.0).
$ cat mail.txt | curl smtp://smtp.zoho.com:587 -vvv --mail-from
$ cat mail.txt | curl smtps://smtp.zoho.com:465 -vvv --mail-from
$cat mail.txt
Subject: This is a test
Hi yyyyy,
I'm sending this mail with curl thru my zoho account.
xxxxx
Anyone have a workaround?  How do I shut off the VRFY command?
Many thanks,
-T
<editorial comment> [expletive deleted] </editorial comment>
Well, sending mail.txt as an attachment with "-T" did work.

But I really, really need to pipe the data. Any work around?

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://cu
ToddAndMargo
2017-10-14 11:14:07 UTC
Permalink
Post by ToddAndMargo
Post by ToddAndMargo
Hi All,
OH LUCKY ME !!!!  smtp.zoho.com does not support VRFY and
boots you off if you try to use it!
Reference bug: https://bugzilla.redhat.com/show_bug.cgi?id=1502108
Fedora 26: curl-7.53.1-7.fc26.x8664
Scientific Linux 7.4: curl-7.29.0-42.el7.x8664
< 502 mx.zohomail.com VRFY not implemented
* Command failed: 502
 > QUIT
curl-7.53.1-7.fc26.x8664 is issuing the VRFY command even when
the server does not support it.
My command line does work on old-out-of-date (Scientific Linux
7.4) where curl is so out-of-date that it has not yet implemented
VRFY (Added in 7.34.0).
$ cat mail.txt | curl smtp://smtp.zoho.com:587 -vvv --mail-from
$ cat mail.txt | curl smtps://smtp.zoho.com:465 -vvv --mail-from
$cat mail.txt
Subject: This is a test
Hi yyyyy,
I'm sending this mail with curl thru my zoho account.
xxxxx
Anyone have a workaround?  How do I shut off the VRFY command?
Many thanks,
-T
<editorial comment> [expletive deleted] </editorial comment>
Well, sending mail.txt as an attachment with "-T" did work.
But I really, really need to pipe the data.  Any work around?
"-T -" picked up the pipe perfectly. So I guess this is solved.

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/m
ToddAndMargo
2017-10-16 10:51:01 UTC
Permalink
Post by ToddAndMargo
Post by ToddAndMargo
Hi All,
OH LUCKY ME !!!!  smtp.zoho.com does not support VRFY and
boots you off if you try to use it!
Reference bug: https://bugzilla.redhat.com/show_bug.cgi?id=1502108
Fedora 26: curl-7.53.1-7.fc26.x8664
Scientific Linux 7.4: curl-7.29.0-42.el7.x8664
< 502 mx.zohomail.com VRFY not implemented
* Command failed: 502
 > QUIT
curl-7.53.1-7.fc26.x8664 is issuing the VRFY command even when
the server does not support it.
My command line does work on old-out-of-date (Scientific Linux
7.4) where curl is so out-of-date that it has not yet implemented
VRFY (Added in 7.34.0).
$ cat mail.txt | curl smtp://smtp.zoho.com:587 -vvv --mail-from
$ cat mail.txt | curl smtps://smtp.zoho.com:465 -vvv --mail-from
$cat mail.txt
Subject: This is a test
Hi yyyyy,
I'm sending this mail with curl thru my zoho account.
xxxxx
Anyone have a workaround?  How do I shut off the VRFY command?
Many thanks,
-T
<editorial comment> [expletive deleted] </editorial comment>
Well, sending mail.txt as an attachment with "-T" did work.
But I really, really need to pipe the data.  Any work around?
"-T -" picked up the pipe perfectly.  So I guess this is solved.
An idea. Mention something in the -X section of the man
page. Something like,

When invoked with "-T" or "-T -" when using a pipe, curl
will not use VRFY. See -T for details.

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://c

Loading...