Using xfmail with LDAP will not compile because xfmail uses deprecated ldap function calls. A simple patch is possible
Created attachment 107466 [details, diff] patch for xfmail LDAP issue
Created attachment 107468 [details] an ebuild that will work for xfmail on my system
mail-client/xfmail was removed from the tree.