Lines Matching defs:smtp

223 **  Notice: The smtp server doesn't have a session context like the client
471 if (smtp.sm_nrcpts > 0) \
474 smtp.sm_nrcpts = 0; \
490 smtp.sm_gotmail = false; \
499 if (smtp.sm_discard) \
503 if (smtp.sm_quarmsg == NULL) \
512 smtp.sm_quarmsg); \
546 smtp(nullserver, d_flags, e)
576 SMTP_T smtp;
648 smtp.sm_nrcpts = 0;
650 smtp.sm_milterize = (nullserver == NULL);
651 smtp.sm_milterlist = false;
662 sm_dprintf("smtp() heap group #%d\n", sm_heap_group());
681 smtp.sm_discard = bitset(EF_DISCARD, e->e_flags);
763 result = sasl_server_new("smtp", AuthRealm, NULL, NULL, NULL,
767 result = sasl_server_new("smtp", AuthRealm, "", NULL, 0, &conn);
770 result = sasl_server_new("smtp", AuthRealm, NULL, NULL, 0,
916 if (smtp.sm_milterize)
921 smtp.sm_milterlist = milter_init(e, &state, &smtp.sm_milters);
930 smtp.sm_milterize = false;
938 smtp.sm_milterize = false;
946 smtp.sm_milterize = false;
957 if (smtp.sm_milterlist && smtp.sm_milterize &&
979 smtp.sm_milterize = false;
989 smtp.sm_milterize = false;
999 smtp.sm_milterize = false;
1140 smtp.sm_quarmsg = NULL;
1142 smtp.sm_quarmsg = newstr(e->e_quarmsg);
1149 smtp.sm_gotmail = false;
1194 if (LogLevel > (smtp.sm_gotmail ? 1 : 19))
1626 if (smtp.sm_gotmail)
1813 if (smtp.sm_gotmail)
2135 if (gothello || smtp.sm_gotmail)
2139 if (smtp.sm_milterlist && smtp.sm_milterize &&
2154 smtp.sm_milterize = false;
2163 smtp.sm_milterize = false;
2175 smtp.sm_milterize = false;
2187 smtp.sm_milterize = false;
2206 if (smtp.sm_quarmsg == NULL &&
2208 smtp.sm_quarmsg = newstr(e->e_quarmsg);
2291 if (smtp.sm_gotmail)
2327 sm_dprintf("smtp() heap group #%d\n",
2356 smtp.sm_nrcpts = 0;
2506 if (smtp.sm_milterlist && smtp.sm_milterize &&
2520 smtp.sm_gotmail = true;
2552 smtp.sm_e_nrcpts_orig = e->e_nrcpts;
2567 smtp.sm_nrcpts == 0 ||
2569 (smtp.sm_nrcpts + n_badrcpts) >=
2608 if (!smtp.sm_gotmail)
2621 smtp.sm_nrcpts >= MaxRcptPerMsg)
2645 if (!(smtp.sm_milterlist && smtp.sm_milterize &&
2647 (smtp.sm_milters.mis_flags &
2755 if (smtp.sm_milterlist && smtp.sm_milterize &&
2804 if (smtp.sm_nrcpts == 0)
2809 smtp.sm_nrcpts++;
2838 if (smtp.sm_milterlist && smtp.sm_milterize &&
2878 if (smtp.sm_milterlist && smtp.sm_milterize &&
2884 if (smtp.sm_e_nrcpts_orig < e->e_nrcpts)
2885 e->e_nrcpts = smtp.sm_e_nrcpts_orig;
2894 if (!smtp_data(&smtp, e))
3140 if (smtp.sm_nrcpts > 0)
3268 if (smtp.sm_milterlist && smtp.sm_milterize &&
3303 syserr("500 5.5.0 smtp: unknown code %d", c->cmd_code);
3324 ** smtp -- status of SMTP connection.
3335 smtp_data(smtp, e)
3336 SMTP_T *smtp;
3353 if (!smtp->sm_gotmail)
3358 else if (smtp->sm_nrcpts <= 0)
3363 (void) sm_snprintf(buf, sizeof(buf), "%u", smtp->sm_nrcpts);
3370 if (smtp->sm_milterlist && smtp->sm_milterize &&
3456 if (smtp->sm_discard)
3493 if (smtp->sm_milterlist && smtp->sm_milterize &&
3566 if (smtp->sm_milterlist && smtp->sm_milterize)
3843 smtp->sm_gotmail = false;
3876 if (smtp->sm_quarmsg == NULL)
3883 e->e_quarmsg = sm_rpool_strdup_x(e->e_rpool, smtp->sm_quarmsg);
4907 topic = "smtp";
5011 result = sasl_server_new("smtp", hostname, NULL, NULL, NULL,
5015 result = sasl_server_new("smtp", hostname, "", NULL, 0, conn);
5018 result = sasl_server_new("smtp", hostname, NULL, NULL, 0,