-/* $OpenBSD: mta.c,v 1.223 2018/09/08 10:05:07 eric Exp $ */
+/* $OpenBSD: mta.c,v 1.224 2018/09/17 12:16:27 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
key.helotable = dispatcher->u.remote.helo_source;
key.heloname = dispatcher->u.remote.helo;
- if (dispatcher->u.remote.backup) {
- key.backupname = dispatcher->u.remote.backupmx;
- if (key.backupname == NULL)
- key.backupname = e->smtpname;
- key.domain = mta_domain(e->dest.domain, 0);
- key.flags |= RELAY_BACKUP;
- } else if (relayh->hostname[0]) {
+ if (relayh->hostname[0]) {
key.domain = mta_domain(relayh->hostname, 1);
key.flags |= RELAY_MX;
- } else {
+ }
+ else {
key.domain = mta_domain(e->dest.domain, 0);
+ if (dispatcher->u.remote.backup) {
+ key.backupname = dispatcher->u.remote.backupmx;
+ if (key.backupname == NULL)
+ key.backupname = e->smtpname;
+ }
}
key.tls = relayh->tls;
-/* $OpenBSD: mta_session.c,v 1.110 2018/09/08 10:05:07 eric Exp $ */
+/* $OpenBSD: mta_session.c,v 1.111 2018/09/17 12:16:27 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
fatalx("bad value for relay->tls: %d", relay->tls);
}
- if (relay->flags & RELAY_BACKUP)
- s->flags &= ~MTA_FORCE_PLAIN;
-
log_debug("debug: mta: %p: spawned for relay %s", s,
mta_relay_to_text(relay));
stat_increment("mta.session", 1);
-/* $OpenBSD: smtpd.h,v 1.559 2018/09/08 10:05:07 eric Exp $ */
+/* $OpenBSD: smtpd.h,v 1.560 2018/09/17 12:16:27 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
#define RELAY_TLS_NO 3
#define RELAY_AUTH 0x08
-#define RELAY_BACKUP 0x10
#define RELAY_MX 0x20
#define RELAY_LMTP 0x80
#define RELAY_TLS_VERIFY 0x200