diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-05-13 21:29:17 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-05-13 21:29:17 +0000 |
commit | 4a841bc8302f1a519321a030734d900279fb0e22 (patch) | |
tree | abc9f1f43badfc71aa7d6d0463f297bf5affa6c0 /usr.sbin/smtpd | |
parent | e9d3913b8e8939eb82d3476ea06ef58adea70da5 (diff) |
do MX lookups in both "relay" and "relay via" case; ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/mta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c index 580ecde45aa..27f2d543e5f 100644 --- a/usr.sbin/smtpd/mta.c +++ b/usr.sbin/smtpd/mta.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta.c,v 1.45 2009/05/09 17:04:55 jacekm Exp $ */ +/* $OpenBSD: mta.c,v 1.46 2009/05/13 21:29:16 jacekm Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -538,7 +538,7 @@ mta_mxlookup(struct smtpd *env, struct session *sessionp, char *hostname, struct port = ntohs(rule->r_value.relayhost.port); if (rule->r_action == A_RELAYVIA) - dns_query_a(env, rule->r_value.relayhost.hostname, port, + dns_query_mx(env, rule->r_value.relayhost.hostname, port, sessionp->s_id); else dns_query_mx(env, hostname, port, sessionp->s_id); |