OPNsense Forum

English Forums => Development and Code Review => Topic started by: bimbar on October 08, 2021, 10:40:19 am

Title: A plugin to populate the postfix recipients table from LDAP (like an AD)
Post by: bimbar on October 08, 2021, 10:40:19 am
It is best practice to use the postfix recipients table to validate incoming emails against local email accounts.
Often this is Microsoft Exchange, which means an Active Directory, which can be accessed via LDAP.
Doing this manually is error prone and can be a lot of work if there are many email accounts.

So I wrote a plugin which queries the LDAP server and inserts the resulting EMail addresses into the appropriate postfix configuration and can be used with cron in opnsense.

So my questions are:

- Is there demand for such a thing - would it be worth it to develop if further (and I do not mean monetarily)?
- Would it be useful and possible to integrate such a functionality into the existing postfix plugin?
Title: Re: A plugin to populate the postfix recipients table from LDAP (like an AD)
Post by: fabian on October 08, 2021, 08:55:26 pm
- Is there demand for such a thing - would it be worth it to develop if further (and I do not mean monetarily)?
I don't know but extending open source software and providing it to the public is what makes it successful. There is always someone who might need it.

- Would it be useful and possible to integrate such a functionality into the existing postfix plugin?
Yes, if the Maintainer of that plugin agrees with your changes. The Maintainer is @mimugmail BTW.
Title: Re: A plugin to populate the postfix recipients table from LDAP (like an AD)
Post by: mimugmail on October 08, 2021, 10:26:41 pm
If it makes sense, I'm all in :)
Title: Re: A plugin to populate the postfix recipients table from LDAP (like an AD)
Post by: bimbar on October 13, 2021, 10:17:53 am
I made a github for this: https://github.com/bimbar/os-ldap2postfix/