Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

356 lines
19 KiB

  1. /////////////////////////////////////////////////////////////////////////
  2. // //
  3. // SMTP specific items //
  4. // //
  5. /////////////////////////////////////////////////////////////////////////
  6. //
  7. // Service name.
  8. //
  9. # define SMTP_SERVICE_NAME TEXT("SMTPSVC")
  10. # define SMTP_SERVICE_NAME_A "SMTPSVC"
  11. # define SMTP_SERVICE_NAME_W L"SMTPSVC"
  12. # define SMTP_MD_ROOT_PATH "/LM/SmtpSvc/"
  13. # define SMTP_MD_LOCAL_DOMAINS_PATH "/LocalDomains"
  14. # define SMTP_MD_DOMAIN_ROUTES_PATH "/DomainRoutes"
  15. //
  16. // Client Interface Name for RPC connections over named pipes
  17. //
  18. # define SMTP_INTERFACE_NAME SMTP_SERVICE_NAME
  19. # define SMTP_NAMED_PIPE TEXT("\\PIPE\\") ## SMTP_INTERFACE_NAME
  20. # define SMTP_NAMED_PIPE_W L"\\PIPE\\" ## SMTP_SERVICE_NAME_W
  21. //service location junk
  22. #define INET_SMTP_SVCLOC_ID (ULONGLONG)(0x2000000000000000)
  23. //Domain routing table bit fields
  24. typedef DWORD DOMAIN_ROUTE_ACTION_TYPE;
  25. #define SMTP_NO_ACTION ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000000))
  26. #define SMTP_DROP ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000001))
  27. #define SMTP_SMARTHOST ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000002))
  28. #define SMTP_SSL ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000004))
  29. #define SMTP_SASL ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000008))
  30. #define SMTP_ALIAS ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000010))
  31. #define SMTP_DELIVER ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000020))
  32. #define SMTP_DEFAULT ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000040))
  33. #define SMTP_AUTH_NTLM ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000080))
  34. #define SMTP_AUTH_CLEARTEXT ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000100))
  35. #define SMTP_ETRN_CMD ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000200))
  36. #define SMTP_IP_RELAY ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000400))
  37. #define SMTP_AUTH_RELAY ((DOMAIN_ROUTE_ACTION_TYPE)(0x00000800))
  38. #define SMTP_DOMAIN_RELAY ((DOMAIN_ROUTE_ACTION_TYPE)(0x00001000))
  39. #define SMTP_CSIDE_TURN ((DOMAIN_ROUTE_ACTION_TYPE)(0x00002000))
  40. #define SMTP_CSIDE_ETRN ((DOMAIN_ROUTE_ACTION_TYPE)(0x00004000))
  41. #define SMTP_DISABLE_ETRN ((DOMAIN_ROUTE_ACTION_TYPE)(0x00008000))
  42. #define SMTP_CHUNKING ((DOMAIN_ROUTE_ACTION_TYPE)(0x00010000))
  43. #define SMTP_DISABLE_CHUNK ((DOMAIN_ROUTE_ACTION_TYPE)(0x00020000))
  44. #define SMTP_DISABLE_BMIME ((DOMAIN_ROUTE_ACTION_TYPE)(0x00040000))
  45. #define SMTP_DISABLE_DSN ((DOMAIN_ROUTE_ACTION_TYPE)(0x00080000))
  46. #define SMTP_DISABLE_PIPELINE ((DOMAIN_ROUTE_ACTION_TYPE)(0x00100000))
  47. #define SMTP_AUTH_KERBEROS ((DOMAIN_ROUTE_ACTION_TYPE)(0x00200000))
  48. #define SMTP_USE_HELO ((DOMAIN_ROUTE_ACTION_TYPE)(0x00400000))
  49. #define SMTP_DISABLE_DROP_QUOTA ((DOMAIN_ROUTE_ACTION_TYPE)(0x00800000))
  50. #define SMTP_ALL_ROUTE_FLAGS ( \
  51. SMTP_NO_ACTION |\
  52. SMTP_DROP |\
  53. SMTP_SMARTHOST |\
  54. SMTP_SSL |\
  55. SMTP_SASL |\
  56. SMTP_ALIAS |\
  57. SMTP_DELIVER |\
  58. SMTP_DEFAULT |\
  59. SMTP_AUTH_NTLM |\
  60. SMTP_AUTH_CLEARTEXT |\
  61. SMTP_ETRN_CMD |\
  62. SMTP_IP_RELAY |\
  63. SMTP_AUTH_RELAY |\
  64. SMTP_CSIDE_TURN |\
  65. SMTP_CSIDE_ETRN |\
  66. SMTP_DOMAIN_RELAY |\
  67. SMTP_DISABLE_ETRN |\
  68. SMTP_CHUNKING |\
  69. SMTP_AUTH_KERBEROS |\
  70. SMTP_USE_HELO)
  71. #define SMTP_ALL_AUTH_FLAGS ( \
  72. SMTP_AUTH_NTLM |\
  73. SMTP_AUTH_CLEARTEXT \
  74. )
  75. //
  76. typedef DWORD INBOUND_COMMAND_SUPPORT_OPTIONS;
  77. #define SMTP_I_SUPPORT_VRFY ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000001))
  78. #define SMTP_I_SUPPORT_VRFY_ON_SSL ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000002))
  79. #define SMTP_I_SUPPORT_VRFY_ON_AUTH ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000004))
  80. #define SMTP_I_SUPPORT_EXPN ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000008))
  81. #define SMTP_I_SUPPORT_EXPN_ON_SSL ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000010))
  82. #define SMTP_I_SUPPORT_EXPN_ON_AUTH ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000020))
  83. #define SMTP_I_SUPPORT_DSN ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000040))
  84. #define SMTP_I_SUPPORT_ETRN ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000080))
  85. #define SMTP_I_SUPPORT_ETRN_ON_SSL ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000100))
  86. #define SMTP_I_SUPPORT_ETRN_ON_AUTH ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000200))
  87. #define SMTP_I_SUPPORT_TURN ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000400))
  88. #define SMTP_I_SUPPORT_TURN_ON_SSL ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000800))
  89. #define SMTP_I_SUPPORT_ECODES ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00001000))
  90. #define SMTP_I_SUPPORT_PIPELINING ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00002000))
  91. #define SMTP_I_SUPPORT_AUTH ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00004000))
  92. #define SMTP_I_SUPPORT_AUTH_ON_SSL ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00008000))
  93. #define SMTP_I_SUPPORT_LOGIN ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00010000))
  94. #define SMTP_I_SUPPORT_LOGIN_ON_SSL ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00020000))
  95. #define SMTP_I_SUPPORT_HELP ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00040000))
  96. #define SMTP_I_SUPPORT_HELP_ON_AUTH ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00080000))
  97. #define SMTP_I_SUPPORT_CHUNK ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00100000))
  98. #define SMTP_I_SUPPORT_BMIME ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00200000))
  99. #define SMTP_I_SUPPORT_8BITMIME ((INBOUND_COMMAND_SUPPORT_OPTIONS)(0x00400000))
  100. #define SMTP_DEFAULT_CMD_SUPPORT ( \
  101. SMTP_I_SUPPORT_VRFY |\
  102. SMTP_I_SUPPORT_DSN |\
  103. SMTP_I_SUPPORT_TURN |\
  104. SMTP_I_SUPPORT_ETRN |\
  105. SMTP_I_SUPPORT_AUTH |\
  106. SMTP_I_SUPPORT_LOGIN |\
  107. SMTP_I_SUPPORT_HELP |\
  108. SMTP_I_SUPPORT_CHUNK |\
  109. SMTP_I_SUPPORT_BMIME |\
  110. SMTP_I_SUPPORT_ECODES |\
  111. SMTP_I_SUPPORT_PIPELINING |\
  112. SMTP_I_SUPPORT_8BITMIME )
  113. #define SMTP_IS_SSL_CONNECTION (0x00000001)
  114. #define SMTP_IS_AUTH_CONNECTION (0x00000002)
  115. //
  116. typedef DWORD OUTBOUND_COMMAND_SUPPORT_OPTIONS;
  117. #define SMTP_0_SUPPORT_DSN ((OUTBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000001))
  118. #define SMTP_0_FORCE_CHUNK ((OUTBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000002))
  119. #define SMTP_0_SUPPORT_BMIME ((OUTBOUND_COMMAND_SUPPORT_OPTIONS)(0x00000004))
  120. #define SMTP_DEFAULT_OUTBOUND_SUPPORT ( \
  121. SMTP_0_SUPPORT_DSN )
  122. typedef DWORD REVERSE_DNS_OPTIONS;
  123. #define SMTP_I_HELOEHLO_RDNS ((REVERSE_DNS_OPTIONS)(0x00000001))
  124. #define SMTP_I_HELOEHLO_RDNS_DISCONNECT ((REVERSE_DNS_OPTIONS)(0x00000002))
  125. #define SMTP_I_MAILFROM_RDNS ((REVERSE_DNS_OPTIONS)(0x00000004))
  126. #define SMTP_I_MAILFROM_RDNS_DISCONNECT ((REVERSE_DNS_OPTIONS)(0x00000008))
  127. // these should be added in the
  128. // metabase with a user type of IIS_MD_UT_SERVER
  129. //
  130. #define MD_COMMAND_LOG_MASK (SMTP_MD_ID_BEGIN_RESERVED ) // 36864
  131. #define MD_FLUSH_MAIL_FILE (SMTP_MD_ID_BEGIN_RESERVED+2 )
  132. #define MD_BATCH_MSG_LIMIT (SMTP_MD_ID_BEGIN_RESERVED+7 )
  133. #define MD_MAX_MAIL_OBJECTS (SMTP_MD_ID_BEGIN_RESERVED+9 )
  134. #define MD_ROUTING_THREADS (SMTP_MD_ID_BEGIN_RESERVED+10 )
  135. #define MD_MAIL_QUEUE_DIR (SMTP_MD_ID_BEGIN_RESERVED+11 )
  136. #define MD_SHOULD_PICKUP_MAIL (SMTP_MD_ID_BEGIN_RESERVED+12 )
  137. #define MD_MAX_DIR_BUFFERS (SMTP_MD_ID_BEGIN_RESERVED+13 )
  138. #define MD_MAX_DIR_CHANGE_IO_SIZE (SMTP_MD_ID_BEGIN_RESERVED+14 )
  139. #define MD_MAX_DIR_PENDING_IOS (SMTP_MD_ID_BEGIN_RESERVED+15 )
  140. #define MD_MAIL_PICKUP_DIR (SMTP_MD_ID_BEGIN_RESERVED+16 ) // 36880
  141. #define MD_SHOULD_DELIVER (SMTP_MD_ID_BEGIN_RESERVED+17 )
  142. #define MD_MAIL_DROP_DIR (SMTP_MD_ID_BEGIN_RESERVED+18 )
  143. #define MD_ROUTING_DLL (SMTP_MD_ID_BEGIN_RESERVED+19 )
  144. #define MD_REVERSE_NAME_LOOKUP (SMTP_MD_ID_BEGIN_RESERVED+20 )
  145. #define MD_NAME_RESOLUTION_TYPE (SMTP_MD_ID_BEGIN_RESERVED+21 )
  146. #define MD_HOP_COUNT (SMTP_MD_ID_BEGIN_RESERVED+22 )
  147. #define MD_MAX_SMTP_ERRORS (SMTP_MD_ID_BEGIN_RESERVED+23 )
  148. #define MD_MAX_MSG_SIZE (SMTP_MD_ID_BEGIN_RESERVED+27 )
  149. #define MD_MAX_MSG_SIZE_B4_CLOSE (SMTP_MD_ID_BEGIN_RESERVED+28 )
  150. //#define MD_OUTBOUND_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+29 )
  151. #define MD_MAX_OUTBOUND_CONNECTION (SMTP_MD_ID_BEGIN_RESERVED+30 )
  152. #define MD_MAX_RECIPIENTS (SMTP_MD_ID_BEGIN_RESERVED+31 )
  153. #define MD_LOCAL_RETRY_ATTEMPTS (SMTP_MD_ID_BEGIN_RESERVED+32 )
  154. #define MD_LOCAL_RETRY_MINUTES (SMTP_MD_ID_BEGIN_RESERVED+33 )
  155. #define MD_REMOTE_RETRY_ATTEMPTS (SMTP_MD_ID_BEGIN_RESERVED+34 )
  156. #define MD_REMOTE_RETRY_MINUTES (SMTP_MD_ID_BEGIN_RESERVED+35 )
  157. //#define MD_SHARE_RETRY_MINUTES (SMTP_MD_ID_BEGIN_RESERVED+36 ) // 36900
  158. #define MD_SHOULD_PIPELINE_OUT (SMTP_MD_ID_BEGIN_RESERVED+37 )
  159. #define MD_SHOULD_PIPELINE_IN (SMTP_MD_ID_BEGIN_RESERVED+38 )
  160. #define MD_SMARTHOST_TYPE (SMTP_MD_ID_BEGIN_RESERVED+41 )
  161. #define MD_SMARTHOST_NAME (SMTP_MD_ID_BEGIN_RESERVED+42 )
  162. #define MD_CONNECT_RESPONSE (SMTP_MD_ID_BEGIN_RESERVED+43 )
  163. #define MD_DEFAULT_DOMAIN_VALUE (SMTP_MD_ID_BEGIN_RESERVED+44 )
  164. #define MD_BAD_MAIL_DIR (SMTP_MD_ID_BEGIN_RESERVED+45 )
  165. #define MD_ROUTING_SOURCES (SMTP_MD_ID_BEGIN_RESERVED+46 )
  166. //#define MD_REMOTE_HANG_TIME (SMTP_MD_ID_BEGIN_RESERVED+47 )
  167. #define MD_MASQUERADE_NAME (SMTP_MD_ID_BEGIN_RESERVED+48 )
  168. #define MD_DO_MASQUERADE (SMTP_MD_ID_BEGIN_RESERVED+49 )
  169. #define MD_REMOTE_SMTP_PORT (SMTP_MD_ID_BEGIN_RESERVED+50 )
  170. // added by feisu
  171. //#define MD_SSLPORT (SMTP_MD_ID_BEGIN_RESERVED+51 )
  172. #define MD_POSTMASTER_EMAIL (SMTP_MD_ID_BEGIN_RESERVED+52 )
  173. #define MD_POSTMASTER_NAME (SMTP_MD_ID_BEGIN_RESERVED+53 )
  174. #define MD_ETRN_DAYS (SMTP_MD_ID_BEGIN_RESERVED+54 )
  175. // end added by feisu
  176. #define MD_LOCAL_DOMAINS (SMTP_MD_ID_BEGIN_RESERVED+55)
  177. #define MD_DOMAIN_ROUTING (SMTP_MD_ID_BEGIN_RESERVED+56) // 36920
  178. #define MD_REMOTE_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+57)
  179. #define MD_SEND_NDR_TO (SMTP_MD_ID_BEGIN_RESERVED+58)
  180. #define MD_SEND_BAD_TO (SMTP_MD_ID_BEGIN_RESERVED+59)
  181. #define MD_ALWAYS_USE_SSL (SMTP_MD_ID_BEGIN_RESERVED+60)
  182. #define MD_MAX_OUT_CONN_PER_DOMAIN (SMTP_MD_ID_BEGIN_RESERVED+61)
  183. #define MD_LIMIT_REMOTE_CONNECTIONS (SMTP_MD_ID_BEGIN_RESERVED+62)
  184. #define MD_REMOTE_SECURE_PORT (SMTP_MD_ID_BEGIN_RESERVED+65)
  185. //#define MD_SORT_TEMP_DIR (SMTP_MD_ID_BEGIN_RESERVED+66)
  186. #define MD_SMTP_SERVICE_VERSION (SMTP_MD_ID_BEGIN_RESERVED+67)
  187. //#define MD_SMTP_EXTENSION_DLLS (SMTP_MD_ID_BEGIN_RESERVED+68)
  188. //#define MD_SMTP_NUM_RESOLVER_SOCKETS (SMTP_MD_ID_BEGIN_RESERVED+69)
  189. //#define MD_SMTP_USE_MX_RESOLVER (SMTP_MD_ID_BEGIN_RESERVED+70)
  190. #define MD_FQDN_VALUE (SMTP_MD_ID_BEGIN_RESERVED+71)
  191. #define MD_UPDATED_FQDN (SMTP_MD_ID_BEGIN_RESERVED+72)
  192. #define MD_UPDATED_DEFAULT_DOMAIN (SMTP_MD_ID_BEGIN_RESERVED+73)
  193. #define MD_ETRN_SUBDOMAINS (SMTP_MD_ID_BEGIN_RESERVED+74)
  194. //#define MD_MAX_POOL_THREADS (SMTP_MD_ID_BEGIN_RESERVED+75)
  195. #define MD_SASL_LOGON_DOMAIN (SMTP_MD_ID_BEGIN_RESERVED+76) // 36940
  196. //#define MD_SERVER_SS_AUTH_MAPPING (SMTP_MD_ID_BEGIN_RESERVED+77)
  197. #define MD_SMTP_CLEARTEXT_AUTH_PROVIDER (SMTP_MD_ID_BEGIN_RESERVED+78)
  198. //#define MD_ALWAYS_USE_SASL (SMTP_MD_ID_BEGIN_RESERVED+79)
  199. //#define MD_SMTP_AUTHORIZATION (SMTP_MD_ID_BEGIN_RESERVED+80)
  200. #define MD_MAX_SMTP_AUTHLOGON_ERRORS (SMTP_MD_ID_BEGIN_RESERVED+81)
  201. #define MD_ROUTE_ACTION (SMTP_MD_ID_BEGIN_RESERVED+82)
  202. #define MD_ROUTE_ACTION_TYPE (SMTP_MD_ID_BEGIN_RESERVED+83)
  203. #define MD_ROUTE_USER_NAME (SMTP_MD_ID_BEGIN_RESERVED+84)
  204. #define MD_ROUTE_PASSWORD (SMTP_MD_ID_BEGIN_RESERVED+85)
  205. #define MD_SMTP_DS_TYPE (SMTP_MD_ID_BEGIN_RESERVED+86)
  206. #define MD_SMTP_DS_DATA_DIRECTORY (SMTP_MD_ID_BEGIN_RESERVED+87)
  207. #define MD_SMTP_DS_DEFAULT_MAIL_ROOT (SMTP_MD_ID_BEGIN_RESERVED+88)
  208. #define MD_SMTP_DS_BIND_TYPE (SMTP_MD_ID_BEGIN_RESERVED+89)
  209. #define MD_SMTP_DS_SCHEMA_TYPE (SMTP_MD_ID_BEGIN_RESERVED+90)
  210. #define MD_SMTP_DS_HOST (SMTP_MD_ID_BEGIN_RESERVED+91)
  211. #define MD_SMTP_DS_NAMING_CONTEXT (SMTP_MD_ID_BEGIN_RESERVED+92)
  212. #define MD_SMTP_DS_ACCOUNT (SMTP_MD_ID_BEGIN_RESERVED+93)
  213. #define MD_SMTP_DS_PASSWORD (SMTP_MD_ID_BEGIN_RESERVED+94)
  214. //#define MD_SMTP_DS_MAX_RESOLVE_BUFFERS (SMTP_MD_ID_BEGIN_RESERVED+95)
  215. //#define MD_SMTP_DS_MAX_VIRTUAL_SERVERS (SMTP_MD_ID_BEGIN_RESERVED+96) // 36960
  216. //#define MD_SMTP_DS_MAX_HANDLE_CACHE_ENTRIES (SMTP_MD_ID_BEGIN_RESERVED+97)
  217. //#define MD_SMTP_DS_SORT_THRESHOLD (SMTP_MD_ID_BEGIN_RESERVED+98)
  218. //#define MD_SMTP_PREFERRED_AUTH (SMTP_MD_ID_BEGIN_RESERVED+99)
  219. #define MD_SMTP_MAX_REMOTEQ_THREADS (SMTP_MD_ID_BEGIN_RESERVED+100)
  220. #define MD_SMTP_MAX_LOCALQ_THREADS (SMTP_MD_ID_BEGIN_RESERVED+101)
  221. #define MD_SMTP_AUTHORIZED_TURN_LIST (SMTP_MD_ID_BEGIN_RESERVED+102)
  222. #define MD_SMTP_CSIDE_ETRN_DELAY (SMTP_MD_ID_BEGIN_RESERVED+103)
  223. #define MD_SMTP_CSIDE_ETRN_DOMAIN (SMTP_MD_ID_BEGIN_RESERVED+104)
  224. //#define MD_SMTP_VALIDATE_HELO_ARG (SMTP_MD_ID_BEGIN_RESERVED+105)
  225. #define MD_SMTP_IP_RELAY_ADDRESSES (SMTP_MD_ID_BEGIN_RESERVED+106)
  226. //#define MD_SYSTEM_ROUTING_THREADS (SMTP_MD_ID_BEGIN_RESERVED+108)
  227. #define MD_SMTP_RELAY_FOR_AUTH_USERS (SMTP_MD_ID_BEGIN_RESERVED+109)
  228. #define MD_SMTP_DISABLE_RELAY (SMTP_MD_ID_BEGIN_RESERVED+110)
  229. //Chunking advertisement flags
  230. //#define MD_SHOW_BINARY_MIME (SMTP_MD_ID_BEGIN_RESERVED+111)
  231. //#define MD_SHOW_CHUNKING (SMTP_MD_ID_BEGIN_RESERVED+112)
  232. //#define MD_SMTP_RDNS_OPTIONS (SMTP_MD_ID_BEGIN_RESERVED+113)
  233. //#define MD_SMTP_DSN_DELAY (SMTP_MD_ID_BEGIN_RESERVED+114)
  234. #define MD_ROUTE_AUTHTARGET (SMTP_MD_ID_BEGIN_RESERVED+115)
  235. // (+116) 36980
  236. #define MD_SMTP_HELO_NODOMAIN (SMTP_MD_ID_BEGIN_RESERVED+117)
  237. #define MD_SMTP_MAIL_NO_HELO (SMTP_MD_ID_BEGIN_RESERVED+118)
  238. #define MD_SMTP_INBOUND_NAGLE (SMTP_MD_ID_BEGIN_RESERVED+119)
  239. #define MD_SMTP_OUTBOUND_NAGLE (SMTP_MD_ID_BEGIN_RESERVED+120)
  240. #define MD_SMTP_INBOUND_SND_BUFF (SMTP_MD_ID_BEGIN_RESERVED+121)
  241. #define MD_SMTP_INBOUND_RCV_BUFF (SMTP_MD_ID_BEGIN_RESERVED+122)
  242. //DLL specifiers flags
  243. #define MD_AQUEUE_DLL (SMTP_MD_ID_BEGIN_RESERVED+123)
  244. //#define MD_MAPIDRV_DLL (SMTP_MD_ID_BEGIN_RESERVED+124)
  245. //#define MD_CAT_DLL (SMTP_MD_ID_BEGIN_RESERVED+125)
  246. #define MD_SMTP_AQUEUE_WAIT (SMTP_MD_ID_BEGIN_RESERVED+126)
  247. //#define MD_SMTP_USE_REMOTE_DS (SMTP_MD_ID_BEGIN_RESERVED+127)
  248. //Address validation flags
  249. #define MD_DOMAIN_VALIDATION_FLAGS (SMTP_MD_ID_BEGIN_RESERVED+128)
  250. #define MD_SMTP_DS_DOMAIN (SMTP_MD_ID_BEGIN_RESERVED+129)
  251. #define MD_SMTP_DS_USE_CAT (SMTP_MD_ID_BEGIN_RESERVED+130)
  252. //New Retry related flags
  253. #define MD_SMTP_REMOTE_RETRY_THRESHOLD (SMTP_MD_ID_BEGIN_RESERVED+131)
  254. #define MD_SMTP_REMOTE_PROGRESSIVE_RETRY_MINUTES (SMTP_MD_ID_BEGIN_RESERVED+132)
  255. #define MD_SMTP_USE_TCP_DNS (SMTP_MD_ID_BEGIN_RESERVED+133)
  256. #define MD_INBOUND_COMMAND_SUPPORT_OPTIONS (SMTP_MD_ID_BEGIN_RESERVED+134)
  257. #define MD_OUTBOUND_COMMAND_SUPPORT_OPTIONS (SMTP_MD_ID_BEGIN_RESERVED+135)
  258. #define MD_ADD_NOHEADERS (SMTP_MD_ID_BEGIN_RESERVED+136) // 37000
  259. //Relocated due to ID conflict
  260. #define MD_SMTP_CONNECT_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+137)
  261. #define MD_SMTP_MAILFROM_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+138)
  262. #define MD_SMTP_RCPTTO_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+139)
  263. #define MD_SMTP_DATA_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+140)
  264. #define MD_SMTP_BDAT_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+141)
  265. #define MD_SMTP_AUTH_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+142)
  266. #define MD_SMTP_SASL_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+143)
  267. //#define MD_SMTP_ETRN_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+144)
  268. #define MD_SMTP_TURN_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+145)
  269. #define MD_SMTP_RSET_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+146)
  270. //#define MD_SMTP_QUIT_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+147)
  271. #define MD_SMTP_HELO_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+148)
  272. //#define MD_SMTP_EHLO_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+149)
  273. //#define MD_SMTP_DATATERMINATION_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+150)
  274. //#define MD_SMTP_BDATTERMINATION_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+151)
  275. //#define MD_SMTP_TLS_TIMEOUT (SMTP_MD_ID_BEGIN_RESERVED+152)
  276. //For setting DSN expire intervals (in minutes)
  277. #define MD_SMTP_EXPIRE_LOCAL_DELAY_MIN (SMTP_MD_ID_BEGIN_RESERVED+153)
  278. #define MD_SMTP_EXPIRE_LOCAL_NDR_MIN (SMTP_MD_ID_BEGIN_RESERVED+154)
  279. #define MD_SMTP_EXPIRE_REMOTE_DELAY_MIN (SMTP_MD_ID_BEGIN_RESERVED+155)
  280. #define MD_SMTP_EXPIRE_REMOTE_NDR_MIN (SMTP_MD_ID_BEGIN_RESERVED+156) // 37020
  281. //DSN specific keys
  282. #define MD_SMTP_DSN_OPTIONS (SMTP_MD_ID_BEGIN_RESERVED+157)
  283. #define MD_SMTP_DSN_LANGUAGE_ID (SMTP_MD_ID_BEGIN_RESERVED+158)
  284. //
  285. // jstamerj 1998/10/27 08:36:59: To specify the remote ldap tcp port
  286. //
  287. #define MD_SMTP_DS_PORT (SMTP_MD_ID_BEGIN_RESERVED+159)
  288. #define MD_SMTP_DS_FLAGS (SMTP_MD_ID_BEGIN_RESERVED+160)
  289. // SSL keys
  290. #define MD_SMTP_SSL_REQUIRE_TRUSTED_CA (SMTP_MD_ID_BEGIN_RESERVED+161)
  291. #define MD_SMTP_SSL_CERT_HOSTNAME_VALIDATION (SMTP_MD_ID_BEGIN_RESERVED+162)
  292. // logging level
  293. #define MD_SMTP_EVENTLOG_LEVEL (SMTP_MD_ID_BEGIN_RESERVED+163)
  294. //#define MD_SMTP_MAX_INBOUND_CONNECTIONS_PER_IP (SMTP_MD_ID_BEGIN_RESERVED+164 )
  295. //#define MD_SMTP_SSL_CERT_HOSTNAME_OVERRIDE (SMTP_MD_ID_BEGIN_RESERVED+165)
  296. #define MD_SMTP_DISABLE_PICKUP_DOT_STUFF (SMTP_MD_ID_BEGIN_RESERVED+166)
  297. //
  298. // Flags for the MD_SMTP_DS_FLAGS DWORD key:
  299. //
  300. #define SMTPDSFLAG_RESOLVELOCAL 0x00000001
  301. #define SMTPDSFLAG_RESOLVEREMOTE 0x00000002
  302. #define SMTPDSFLAG_RESOLVESENDER 0x00000004
  303. #define SMTPDSFLAG_RESOLVERECIPIENTS 0x00000008
  304. #define SMTPDSFLAG_ALLFLAGS 0x0000000F
  305. //
  306. //Flags for the MD_SMTP_DS_USE_CAT DWORD key:
  307. //
  308. #define SMTPDSUSECAT_ENABLED 0xFFFFFFFF
  309. #define SMTPDSUSECAT_DISABLED 0x00000000