hi [EMAIL PROTECTED] wrote: > And then add "relay_recipient_maps = hash:/etc/postfix/validrecipients" to > /etc/postfix/main.cf.tmpl and restart postfix. > > After this EFW does only accept mails for recipients in the validrecipients. > If another recipient is used, EFW makes error 550 during SMTP-dialog and does > not send any NDRs. > > If someone knows, how to use ldap instead of a file, I would be interested.
yes, it looks pretty simple with the howto which posted mike sadly we did not compile postfix with ldap. in order to compile an own ldap capable postfix simply change the define within postfix.spec file from %define LDAP=0 to LDAP=1 and recompile the package then something like relay_recipient_maps = ldap:/etc/postfix/ldap.cf in /etc/postfix/main.cf.tmpl and server_host = ldap.my.com search_base = dc=my, dc=com in ldap.cf, should do the job. i am unsure if it is wise to make your postfix having ldap lookups for every mail coming in, especially on mailservers with high load. maybe it would be better to have some script which frequently downloads the whole ldap tree and puts it into a virtualtable hash. however, if it works fine we will implement it. it would be very interesting, since this check really makes sense peter -- :: e n d i a n :: open source - open minds :: peter warasin :: http://www.endian.it :: [EMAIL PROTECTED] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Efw-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/efw-user
