Matus UHLAR - fantomas:
I was curious if I could do a script that would do the same, with the same
possible issues.
I can do perl, but it looks neither python nor perl have interface to postfix
what could e.g. expand maps without calling external commands.
On 01.07.21 22:49, Kevin N. wrote:
Among other things, it mainly acted as a proxy between Postfix and
Dovecot's quota-status to make sure that the quota query was done for
a real user instead of an alias.
The word "proxy" brought me to an idea that process probably could
communicate with proxymap to read from tables, it would just need to load
table names from postconf at start and reload.
would that be possible?
If so, it looks like the proxymap processes are restarted quite often, does
that mean that we don't need to detect if postfix is loaded, just reload
config when connection to proxymap fails?
One solution is when the table is in a real database (sql, etc.)
then you could use perl/pythobn/etc bindings.
Accessing Berkeley DB from perl or python may be possible but they
should adhere to the locking protocols that Postfix uses, typically
FCNTL-style shared locks for reading.
I was told it will be migrated to a real database but since it is used
only internally it wasn't high on the priorities list :) .
in my case it's not planned.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #98652: Operation completed successfully.