diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-10-07 17:30:42 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-10-07 17:30:42 +0000 |
commit | 622768b2cd479ad6bfdbf3d62078732df052ba87 (patch) | |
tree | e4864f38cfd826d0d2d35aaa7cfba850aa0657fb /usr.sbin/smtpd/mfa.c | |
parent | 0f84655406a532085f61f8b398fe1c0e2cc7bcaa (diff) |
since the bounce code rewrite, we no longer need to perform ruleset match
and aliases resolution on the sender before envelope is written in queue:
- mfa_test_mail() no longer calls ruleset_match()
- lka_verify_mail() no longer resolves sender and set rule action
- lka_resolve_mail() becomes dead code so just kill it
ok jacekm@
Diffstat (limited to 'usr.sbin/smtpd/mfa.c')
-rw-r--r-- | usr.sbin/smtpd/mfa.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/smtpd/mfa.c b/usr.sbin/smtpd/mfa.c index 6ec5d55f78a..50570c71ab7 100644 --- a/usr.sbin/smtpd/mfa.c +++ b/usr.sbin/smtpd/mfa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfa.c,v 1.37 2009/09/03 08:19:13 jacekm Exp $ */ +/* $OpenBSD: mfa.c,v 1.38 2009/10/07 17:30:41 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -468,7 +468,6 @@ void mfa_test_mail(struct smtpd *env, struct message *m) { struct submit_status ss; - struct rule *r; ss.id = m->id; ss.code = 530; @@ -487,11 +486,6 @@ mfa_test_mail(struct smtpd *env, struct message *m) } /* Current policy is to allow all well-formed addresses. */ - r = ruleset_match(env, &ss.u.path, NULL); - if (r == NULL) - ss.u.path.rule.r_action = A_RELAY; - else - ss.u.path.rule = *r; goto accept; refuse: |