summaryrefslogtreecommitdiffstats
path: root/etc/mail
diff options
context:
space:
mode:
authorjmb <jmb@FreeBSD.org>1997-12-07 16:50:11 +0000
committerjmb <jmb@FreeBSD.org>1997-12-07 16:50:11 +0000
commitee0731893568b9d73eb55cc0f30f42b0f72c3625 (patch)
tree2c8c3a663994672e03b96634f880d716a7d6aa33 /etc/mail
parent6acb892697598e36622fb1f60f6ca986915c31c1 (diff)
downloadFreeBSD-src-ee0731893568b9d73eb55cc0f30f42b0f72c3625.zip
FreeBSD-src-ee0731893568b9d73eb55cc0f30f42b0f72c3625.tar.gz
correct an error that i made in check_relay.
check_relay cannot return temporary errors. The temporary error is logged in the sendmail log, but on the SMTP protocol level, sendmail returns '550 Access Denied'. Reviewed by: jmb Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>
Diffstat (limited to 'etc/mail')
-rw-r--r--etc/mail/sendmail.cf.additions18
1 files changed, 8 insertions, 10 deletions
diff --git a/etc/mail/sendmail.cf.additions b/etc/mail/sendmail.cf.additions
index f4e1f78..6adedac 100644
--- a/etc/mail/sendmail.cf.additions
+++ b/etc/mail/sendmail.cf.additions
@@ -44,11 +44,6 @@ R<$*> $* $: $1
R$* $| $* $: $1 $| $(denyip $2 $)
R$* $| $*.REJECT $#error $: "521 blocked. contact postmaster@FreeBSD.ORG"
# ip address must NOT be in the "denyip" database--END
-# Host must resolve--BEGIN
-R$* $| $* $: <$1 $| $2> $>3 foo@$1
-R<$*> $*<@$*.> $: $1
-R<$*> $*<@$*> $#error $: "451 Domain does not resolve"
-# Host must resolve--END
R$* $@ OK
Scheck_mail
@@ -57,8 +52,7 @@ Scheck_mail
# may or may not have "<" ">"
# the groups of rules in this ruleset ARE NOT independent.
# "remove all RFC-822 comments" must come first
-# "Paul Vixie's RBL" must be last
-# you may rearrange the other rules.
+# "Connecting Host" and "Paul Vixie's RBL" must be last
#
# use the ones that you want comment out the rest
# each group is preceded and followed by a comment
@@ -72,13 +66,17 @@ R$* < @ $+ . > $: $1 @ $2
R$* < @ $+ > $#error $: "451 Domain does not resolve"
# mail must come from a DNS resolvable host--END
# mail must NOT come from a known source of spam--BEGIN
-# resolved. second check: one of the know spam sources?
-R$+ @$+ $: <$1@$2> $1 @$2
-R<$*> $+ @$+.$+.$+ <$1> $4.$5
+R$+ @$+ $: <$1@$2> $2
+R<$*> $+.$+.$+ <$1> $3.$4
R<$*> $* $: $(spamsites $2 $: OK $)
R$+.REJECT $#error $: 521 $1
R<$*> $* $: $1
# mail must NOT come from a known source of spam--END
+# Connecting Host must resolve--BEGIN
+R$* $: $1 $: $(dequote "" $&{client_name} $)
+R$* $: $>3 foo@$1
+R<$*> $*<@$*> $#error $: "451 Domain does not resolve"
+# Connecting Host must resolve--END
# ip address must NOT be in Paul Vixie's RBL--BEGIN
R$* $: $1 $: $(dequote "" $&{client_addr} $)
R$* $: $>check_rbl $1
OpenPOWER on IntegriCloud