From ee0731893568b9d73eb55cc0f30f42b0f72c3625 Mon Sep 17 00:00:00 2001 From: jmb Date: Sun, 7 Dec 1997 16:50:11 +0000 Subject: 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 --- etc/mail/sendmail.cf.additions | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'etc/mail') 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 -- cgit v1.1