On 08/08/14 19:30, Giovanni Bechis wrote:
On 08/08/14 18:24, Todd T. Fries wrote:
Penned by Giovanni Bechis on 20140808 9:53.38, we have:
| On 07/28/14 22:19, Gilles Chehade wrote:
| > On Sat, Jul 26, 2014 at 05:46:18PM +0200, Giovanni Bechis wrote:
| >> Hi,
| >> I started to play with smtpd but to let it work on my environment I need
mysql_table
| >> support (or some ugly hacks); atm I have some local patches taken from
portable,
| >> what would be the right way to go ?
| >> I tried portable as well but on OpenBSD it does not build out-of-the-box.
| >>
| >
| > Hi,
| >
| > Eric and I have already implemented table_mysql and table_postgres.
| >
| > We don't ship it with OpenBSD because we think it's preferable that they
| > are packaged and distributed as ports, we just didn't have the time to
| > work on that yet.
| >
| > You can grab a copy at:
| >
| > https://github.com/OpenSMTPD/OpenSMTPD-extras/tree/master/extras
| >
| > feel free to package yourself :-)
| >
| I have a wip-port but it does not work because I have installed table-* files
under ${PREFIX}/libexec/smtpd (ports should not write under /usr/sbin) but
smtpd exec table-* stuff only under /usr/sbin/smtpd [¹].
|
| [¹] /usr/src/usr.sbin/smtpd/smtpd.h:59:#define PATH_LIBEXEC
"/usr/libexec/smtpd"
|
| Should smtpd(8) try to find table-* files also on other paths ?
| Thanks & Cheers
| Giovanni
Some exceptions might be ok, not sure if this is one.
Try looking at ports/sysutils/login_ldap or ports/sysutils/login_oauth.
Both write to /usr/libexec/auth/ due to the security implications of
having auth apps elsewhere.
Is smtpd similar enough to have the same treatment?
It could be done this way, atm there are 2/3 table_* files but there could be
more stuff (filter_*) sooner or later.
I do not know if it is ok to do it this way.
Cheers & Thanks
Giovanni
Re-inventing the wheel are we?
--
This e-mail is confidential and may not be shared with anyone other than
recipient(s) without written permission from sender.