| | 17 | postfix now pulls the address maps directly from CAL's LDAP, though it took a bit of tweaking to do this. as it turns out, the postfix library which binds to LDAP binds to the OpenLDAP libraries, and those libraries are configured to pull their entropy sources from `/dev/random` on the default packages in sarge. Of course, this doesn't work properly if the daemon using these libraries is running within a chroot which doesn't have `/dev/random`. the `ldap_table` man page implies that setting the `tls_random_file` option will direct the libraries to use an alternate entropy source. However, this option doesn't work because the openLDAP libraries are configured to expect `/dev/random` anyway (probably when the URANDOM_DEVICE variable gets set in the configure stage of compilation). |
| | 18 | |
| | 19 | i resolved this problem by creating a new kernel device node within the postfix chroot: |
| | 20 | |
| | 21 | {{{ |
| | 22 | # mknod -m 444 /dev/random c 1 9 |
| | 23 | }}} |
| | 24 | |
| | 25 | (note that this is in fact a pseudo-random device (1,9) instead of a true random device (1,8). i made this decision because i didn't want a depleted entropy pool to shutdown postfix's `smtpd` lookups.) |
| | 26 | |