bug-mailfromd
Re: [Bug-mailfromd] sendmail access map connect: alternative
Oh Thanks Sergey for showing this. Hmmm, ok the sendmail access map does
match such an entry. I think I will put these than also in dns, because
dns will match this (I think)
-----Original Message-----
Cc: bug-mailfromd
Subject: Re: [Bug-mailfromd] sendmail access map connect: alternative
> Just to verify, dbget(reject_db,
> "ec2-34-232-41-240.compute-1.amazonaws.com") returns ERROR with this
> reject database.
It definitely does not. To verify, do this:
$ cat > reject.txt <<EOF
compute-1.amazonaws.com ERROR
adsl ERROR
EOF
$ makemap hash reject.db < reject.txt
$ cat > dbt.mf <<EOF
string reject_db "reject.db"
func main(...)
returns number
do
echo dbget(reject_db, $1)
done
EOF
$ mailfromd --run dbt.mf ec2-34-232-41-240.compute-1.amazonaws.com
$ mailfromd --run dbt.mf adsl
ERROR