From a256ebb237babf44b1c5778fa541043628cf2cd5 Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Tue, 21 Feb 2017 21:41:14 +0100 Subject: [PATCH] (BWDIC!) sendout.c:__mta_start(): with SMTP *mta*, do not send to aliases! --- sendout.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sendout.c b/sendout.c index 211cfd45..f4fdf42a 100644 --- a/sendout.c +++ b/sendout.c @@ -1219,6 +1219,19 @@ __mta_start(struct sendbundle *sbp) n_err(_("No SMTP support compiled in\n")); goto jstop; #else + /* C99 */{ + struct name *np; + + for(np = sbp->sb_to; np != NULL; np = np->n_flink) + if(!(np->n_type & GDEL) && (np->n_flags & NAME_ADDRSPEC_ISNAME)){ + n_err(_("SMTP *mta* cannot send to alias name: %s\n"), + n_shexp_quote_cp(np->n_name, FAL0)); + rv = FAL0; + } + if(!rv) + goto jstop; + } + if (n_poption & n_PO_DEBUG) { (void)smtp_mta(sbp); rv = TRU1; -- 2.11.4.GIT