> "-T" is NOT the same thing as "-t"! ah yes the "-t" seems to have solved it. > } my ($recipient, $sender, $ip, $hostname) - @_; > "-" is NOT the same thing as "="! yes that was my typo. anyway the whitelisting fucntion appears to be working now. Thanks for your feedback.