summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-05-13 21:29:17 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-05-13 21:29:17 +0000
commit4a841bc8302f1a519321a030734d900279fb0e22 (patch)
treeabc9f1f43badfc71aa7d6d0463f297bf5affa6c0 /usr.sbin/smtpd
parente9d3913b8e8939eb82d3476ea06ef58adea70da5 (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.c4
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);