diff options
author | jmb <jmb@FreeBSD.org> | 1998-04-14 02:09:23 +0000 |
---|---|---|
committer | jmb <jmb@FreeBSD.org> | 1998-04-14 02:09:23 +0000 |
commit | b7b2f9aa24511b57def3ad97904e93ea050d0e7b (patch) | |
tree | 7b5df50525ec10bb5e3297183db3ef86ef828eaa /etc/mail | |
parent | c056e50072109ddd98c4ff8df90eb653e0cc10bd (diff) | |
download | FreeBSD-src-b7b2f9aa24511b57def3ad97904e93ea050d0e7b.zip FreeBSD-src-b7b2f9aa24511b57def3ad97904e93ea050d0e7b.tar.gz |
use extended error codes as noted in rfc1893.
retain additional message in check_relay ruleset,
the message is written into the maillog.
this is useful to a site's postmaster.
Reviewed by: jmb
Submitted by: Ruslan Ermilov ru@ucb.crimea.ua
Diffstat (limited to 'etc/mail')
-rw-r--r-- | etc/mail/sendmail.cf.additions | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/mail/sendmail.cf.additions b/etc/mail/sendmail.cf.additions index 7094540..0921b96 100644 --- a/etc/mail/sendmail.cf.additions +++ b/etc/mail/sendmail.cf.additions @@ -63,24 +63,24 @@ R$* $: $>3 $1 # remove all RFC-822 comments--END # mail must come from a DNS resolvable host--BEGIN R$* < @ $+ . > $: $1 @ $2 -R$* < @ $+ > $#error $: "451 Domain does not resolve" +R$* < @ $+ > $#error $@ 4.1.8 $: "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 R$+ @$+ $: <$1@$2> $2 R<$*> $+.$+.$+ <$1> $3.$4 R<$*> $* $: $(spamsites $2 $: OK $) -R$+.REJECT $#error $: 521 $1 +R$+.REJECT $#error $@ 5.7.1 $: 550 $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" +R<$*> $*<@$*> $#error $@ 4.1.8 $: "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 -R$*.com. $#error $: "550 Mail refused, see http://maps.vix.com/rbl" +R$*.com. $#error $@ 5.7.1 $: "550 Mail refused, see http://maps.vix.com/rbl" # ip address must NOT be in Paul Vixie's RBL--END R$* $@ OK @@ -96,7 +96,7 @@ Scheck_rcpt # mail must NOT be addressed "fakenames"--BEGIN R$* $: <$1> $>3 $1 R<$*> $+ < @ $+ > $: <$1> $(fakenames $2 $: OK $) -R$+.REJECT $#error $: 521 $1 +R$+.REJECT $#error $@ 5.2.1 $: 550 $1 R<$*> $* $: $1 # mail must NOT be addressed "fakenames"--END # mail must come from or go to this machine or machines we allow to relay--BEGIN @@ -108,7 +108,7 @@ R<$*> $* $: $1 # R$=w $@ OK # R$* $=R $@ OK # R$@ $@ OK -# R$* $#error $: "550 Relaying Denied" +# R$* $#error $@ 5.7.1 $: "550 Relaying Denied" # mail must come from or go to this machine or machines we allow to relay--END R$* $@ OK |