summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-11-06 22:43:54 +0000
committerCarl Hetherington <cth@carlh.net>2014-11-06 22:43:54 +0000
commit6b6c478faa5beac32c9441e41c7dd61de7c662c1 (patch)
tree2325f0ad09962b73f244e00020548e18454d9c02 /src
parentfa737edf632ab952ab6f2f70d4af61cca9a1da63 (diff)
Add flag to prevent libcurl sendint VRFY on sending emails.
Diffstat (limited to 'src')
-rw-r--r--src/lib/quickmail.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/quickmail.cc b/src/lib/quickmail.cc
index 0b1553a34..4584d4e3b 100644
--- a/src/lib/quickmail.cc
+++ b/src/lib/quickmail.cc
@@ -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);