Problem with makemap and hash tables
Mark Tinguely
tinguely at casselton.net
Tue Feb 5 15:18:50 UTC 2008
I got that error when there was a duplicate entry.
I broke down and am now restricting emails to mailers that have a valid
forward and reverse DNS entries. Most real mailers have properly configured
DNS, but I also added a permission for those that have a DNS entry that
comes back as possibly forged.
the file /etc/mail/ForgedIP are the hosts that I will bypass the new
filter. Added to sendmail.cf:
F{ForgedIP} /etc/mail/ForgedIP
(and in the relay area)
SLocal_check_relay
R$+ $| $={ForgedIP}$* $@ $1 $| $2
R$*$={ForgedNames} $| $* $@ $1 $| $2
R$* $: < $&{client_resolve} >
R<TEMP> $#error $@ 4.7.1 $: "450 Access denied. Cannot resolve PTR record for " $&{client_addr}
R<FORGED> $#error $@ 4.7.1 $: "550 Access denied. IP name possibly forged " $&{client_name}
R<FAIL> $#error $@ 4.7.1 $: "550 Access denied. IP name lookup failed " $&{client_name}
Scheck_relay
More information about the freebsd-questions
mailing list