Hi,

i ran into this some time ago, i have used the "ldap mailaddr_filter":

https://marc.info/?l=opensmtpd-misc&m=140534144926275&w=2 
(https://marc.info/?l=opensmtpd-misc&m=140534144926275&w=2)

After some trouble with it i have used a little script to sync the active 
directory email attributes with a table.
Basically it was ldapsearch with some greps, its far from perfect but worked 
for me. 

Stefan
On Thu, Feb 18, 2016 at 10:29, Jason Tubnor  wrote: 
Hi,
While I have a nice edge server now that handles inbound spam/av using 
OpenSMTPd, Spam Assassin and ClamAV, I want the OpenSMTPd server to validate 
legitimate email addresses on initial connection before accepting, processing, 
and relaying them onto the primary Microsoft Exchange Servers.  Now I have seen 
some examples (over on undeadly) of LDAP to an openldap instance but don't 
think that will work in this case?  AD does present and permit LDAP lookups and 
provides 'proxyaddresses' of smtp addresses associated to the users accounts 
but I don't think there is any facility (that I could find) to perform this for 
each connection (similar to table myaddresses ldap://activedirectory).
Has anyone solved this or know how to achieve this?  Maybe even a script that I 
can run say every 3 hours, a bit of hackery, uniq and a makemap would get me by 
as well.
Thanks,
Jason.

Reply via email to