really it is a nice topic thanks for staring you
I think that postfix not it self is able to do that. but maybe you can reject it so you can check out .
you can ping your host both with name & IP?
grep command are use in cmd
i thin so you use java because java is one the best language it is a provide lot of security
Separate names with a comma.