comparison src/dnsbl.h @ 350:f4ca91f49cb6

send the original mail from address to the verify server, not the srs/pvrs unwrapped version; recognize our own dkim signatures
author Carl Byington <carl@five-ten-sg.com>
date Mon, 26 Dec 2016 09:31:57 -0800
parents 5e4b5540c8cc
children 7fd39f029936
comparison
equal deleted inserted replaced
349:3c39051699bd 350:f4ca91f49cb6
36 uint32_t ip; // ip4 address of the smtp client in network order 36 uint32_t ip; // ip4 address of the smtp client in network order
37 const char *helo; // helo from client 37 const char *helo; // helo from client
38 map<DNSBLP, bool> checked_black; // map of dnsblp to result of (ip listed on that dnsbl) 38 map<DNSBLP, bool> checked_black; // map of dnsblp to result of (ip listed on that dnsbl)
39 map<DNSWLP, bool> checked_white; // map of dnswlp to result of (ip listed on that dnswl) 39 map<DNSWLP, bool> checked_white; // map of dnswlp to result of (ip listed on that dnswl)
40 // message specific data 40 // message specific data
41 const char *mailaddr; // envelope from value 41 const char *origaddr; // envelope from value, lowercase, no srs/pvrs unwrapping
42 const char *mailaddr; // envelope from value, lowercase, srs/pvrs unwapped
42 const char *fromaddr; // header from value, set by mlfi_header() 43 const char *fromaddr; // header from value, set by mlfi_header()
43 int header_count; // count of headers already seen 44 int header_count; // count of headers already seen
44 bool dkim_ok; // ok to proceed with dkim checking 45 bool dkim_ok; // ok to proceed with dkim checking
45 string_set dkim_signers; // non empty if message was validly signed, set of signers 46 string_set dkim_signers; // non empty if message was validly signed, set of signers
46 const char *queueid; // sendmail queue id 47 const char *queueid; // sendmail queue id
78 void reset(bool final = false); // for a new message 79 void reset(bool final = false); // for a new message
79 void get_fd(); 80 void get_fd();
80 void return_fd(); 81 void return_fd();
81 size_t my_read(char *buf, size_t len); 82 size_t my_read(char *buf, size_t len);
82 size_t my_write(const char *buf, size_t len); 83 size_t my_write(const char *buf, size_t len);
83 void need_content_filter(const char *rcpt, CONTEXT &con); 84 void need_content_filter(CONTEXT &con);
84 }; 85 };
85 86
86 void my_syslog(const char *queueid, const char *text); 87 void my_syslog(const char *queueid, const char *text);
87 void my_syslog(mlfiPriv *priv, const char *text); 88 void my_syslog(mlfiPriv *priv, const char *text);
88 void my_syslog(mlfiPriv *priv, const string text); 89 void my_syslog(mlfiPriv *priv, const string text);