summaryrefslogtreecommitdiffstats
path: root/qmail-smtpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmail-smtpd.c')
-rw-r--r--qmail-smtpd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/qmail-smtpd.c b/qmail-smtpd.c
index 8f0ebad..eebba2e 100644
--- a/qmail-smtpd.c
+++ b/qmail-smtpd.c
@@ -653,7 +653,11 @@ void smtp_rcpt(arg) char *arg; {
653 } 653 }
654 if (!(spp_val = spp_rcpt(allowed))) return; 654 if (!(spp_val = spp_rcpt(allowed))) return;
655 if (!relayclient && spp_val == 1) { 655 if (!relayclient && spp_val == 1) {
656 if (!allowed) { err_nogateway(); return; } 656 if (!allowed) {
657 strerr_warn6("qmail-smtpd: Attempted relay from ",mailfrom.s," at ",remoteip," to ",addr.s,0);
658 err_nogateway();
659 return;
660 }
657 } 661 }
658 spp_rcpt_accepted(); 662 spp_rcpt_accepted();
659 if (!stralloc_cats(&rcptto,"T")) die_nomem(); 663 if (!stralloc_cats(&rcptto,"T")) die_nomem();