aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-09-02 14:42:55 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-09-02 14:42:55 +0000
commit2f1fbd02408654d9ddc861d18bbcc16b254e7b4b (patch)
tree3f5aba73f7a2a16e6987cafc7e9cadadde680cc2 /etc
parent4e93670f1fe3b6d1646f8d65e4369a79532a5bdd (diff)
downloadmailfromd-2f1fbd02408654d9ddc861d18bbcc16b254e7b4b.tar.gz
mailfromd-2f1fbd02408654d9ddc861d18bbcc16b254e7b4b.tar.bz2
Use RFC-compliant reply codes.
git-svn-id: file:///svnroot/mailfromd/trunk@505 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'etc')
-rw-r--r--etc/mailfromd.rc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/mailfromd.rc b/etc/mailfromd.rc
index 2bbc55f2..318d1cde 100644
--- a/etc/mailfromd.rc
+++ b/etc/mailfromd.rc
@@ -31,15 +31,15 @@ do
if $f = ""
accept
elif hostname ${client_addr} matches ".*(adsl|sdsl|hdsl|ldsl|dialin|dialup|ppp|dhcp|dynamic).*"
- reject 550 "Use your SMTP relay"
+ reject 550 5.7.1 "Use your SMTP relay"
elif hostname ${client_addr} matches ".*-[0-9]{1,3}-[0-9]{1,3}-[0-9]{1,3}-[0-9]{1,3}.*"
on poll host ${client_addr} for $f do
when success:
accept
when not_found or failure:
- reject 510 "Sender validity not confirmed"
+ reject 550 5.1.0 "Sender validity not confirmed"
when temp_failure:
- tempfail
+ tempfail 450 4.1.0 "Try again later"
done
elif relayed hostname ${client_addr}
accept
@@ -50,14 +50,14 @@ do
when success:
accept
when not_found or failure:
- reject 510 "Sender validity not confirmed"
+ reject 550 5.1.0 "Sender validity not confirmed"
when temp_failure:
tempfail
done
fi
if rate($f "-" ${client_addr}, interval(1 hour 30 minutes)) > 100
- tempfail 410 "Mail sending rate exceeded. Try again later"
+ tempfail 450 4.7.0 "Mail sending rate exceeded. Try again later"
fi
done

Return to:

Send suggestions and report system problems to the System administrator.