Add flag to prevent libcurl sendint VRFY on sending emails.
authorCarl Hetherington <cth@carlh.net>
Thu, 6 Nov 2014 22:43:54 +0000 (22:43 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 6 Nov 2014 22:43:54 +0000 (22:43 +0000)
src/lib/quickmail.cc

index 0b1553a342ad3f6133a8c46157e2b8189a4f9abe..4584d4e3b3fae5659ba74628037b02ca4c0330af 100644 (file)
@@ -930,6 +930,10 @@ const char* quickmail_send (quickmail mailobj, const char* smtpserver, unsigned
     //set callback function for getting message body
     curl_easy_setopt(curl, CURLOPT_READFUNCTION, quickmail_get_data);
     curl_easy_setopt(curl, CURLOPT_READDATA, mailobj);
+    /* Without this curl sends VRFY, which exim errors on
+       (at least on main.carlh.net)
+    */
+    curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
     //enable debugging if requested
     if (mailobj->debuglog) {
       curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);