Here is a helpful hint: When binding to your LDAP server, remember to include a timeout value: if ( $ldap = Net::LDAP->new($LDAPServer, timeout => 5 )){ { check recipient in LDAP }else{ LDAP server is down} The default timeout is 120 seconds, so each multiplexor fill hang for 2 minutes and you will quickly use them all up!