Files

38 lines
952 B
Markdown
Raw Permalink Normal View History

2022-05-10 15:14:33 +02:00
# MyNetTCPTable
MyNetTCPTable is a tcp_table service for postfix to allow matching networks from LDAP.
ldap_table does not allow to match network range, so you have to set all IPs in LDAP to use it.
MyNetTCPTable cover this use case, allowing you to put ipNetwork objects into LDAP in CIDR form and match unicast IP sent by postfix to these networks.
## Usage
get 1.2.3.4
200 1.2.3.4
## logging
2022-05-10 15:55:13 +02:00
MyNetTCPTable logs to stdout, with level info by default. Level can be changed with '-logLevel' switch. See usage for allowed values.
2022-05-10 15:14:33 +02:00
2022-05-10 15:55:13 +02:00
Logging to syslog can be enabled with '-logTo syslog' argument. Logs will be written to LOG_MAIL facility.
2022-05-10 15:14:33 +02:00
Note that enabling syslog won't disable stdout output.
## Additionnal commands
Get current log level:
2022-05-10 15:16:30 +02:00
2022-05-10 15:14:33 +02:00
get loglevel
200 info
2022-05-10 15:16:30 +02:00
Set log level:
2022-05-10 15:14:33 +02:00
set loglevel debug
200 loglevel%20set
2022-05-10 15:16:30 +02:00
Refresh network cache:
2022-05-10 15:14:33 +02:00
set refresh
200 Refreshing%20cache