On Sat, Dec 19, 2020 at 08:02:19PM +0300, ?????????? ???????????? wrote: > Hello. > Where can I find any manuals and examples regarding OpenSMTPD-extras? > Which table types are supported and do not have status "experimental" > like ldap tables? > E.g. what is opensmtpd-extras-python and how can I use it? > -- > Best regards > Maksim Rodin >
Sorry didn't answer the python question. I'm not a python expert, but I suspect that you would write a script similar to the following perl: Obviously untested, just a best guess. #!/usr/bin/env perl use common::sense; our %state = (); sub update { $state{updated} = 1; print STDERR "table perl updated\n"; } sub check { my ($service, $value, $key) = @_; print STDERR "$service: $value: $key\n"; } sub lookup { my ($service, $value, $key) = @_; print STDERR "$service: $value: $key\n"; return "test"; } sub fetch { my ($service, $value) = @_; print STDERR "$service: $value\n"; return "test"; } Then in smtpd.conf have something like: table test python:/path/to/python/script.py action "some_action" maildir alias <test>