SMFSettings T¶
SMFSettings_T is used to store all configuration options.
1 typedef struct {
2 int debug;
3 char *config_file;
4 char *queue_dir;
5 char *engine;
6 char **modules;
7 int module_fail;
8 char *nexthop;
9 int nexthop_fail_code;
10 char *nexthop_fail_msg;
11 char **backend;
12 char *backend_connection;
13
14 char *sql_driver;
15 char *sql_name;
16 char **sql_host;
17 int sql_num_hosts;
18 int sql_port;
19 char *sql_user;
20 char *sql_pass;
21 char *sql_user_query;
22 char *sql_encoding;
23 int sql_max_connections;
24
25 char *ldap_uri;
26 char **ldap_host;
27 int ldap_num_hosts;
28 int ldap_port;
29 char *ldap_binddn;
30 char *ldap_bindpw;
31 char *ldap_base;
32 int ldap_referrals;
33 char *ldap_scope;
34 char *ldap_user_query;
35 } SMFSettings_T;
| name |
description |
| debug |
enables debugging |
| config_file |
path to config file |
| queue_dir |
path to spooling directory |
| engine |
configured engine (e.g. smtpd) |
| modules |
configured modules |
| module_fail |
behavior when module fails |
| nexthop |
next smtp destination (e.g. localhost:2525) |
| nexthop_fail_code |
smtp code, if delivery to nexthop fails |
| nexthop_fail_msg |
smtp message, if delivery to nexthop fails |
| backend |
configured lookup backends (e.g. sql) |
| backend_connection |
failover/load-balacing configuration for backend |
Additional settings if spmfilter was compiled with libZDB:
| name |
description |
| sql_driver |
sql backend driver (e.g. postgresql) |
| sql_name |
database name, or path to sqlite datanase file |
| sql_host |
all configured database hosts |
| sql_num_host |
number of database hosts |
| sql_port |
database port |
| sql_user |
database username |
| sql_pass |
database password |
| sql_encoding |
database encoding |
| sql_user_query |
sql query to determine the existence of a user |
| sql_max_connections |
number of max. database connections |
Additional settings if spmfilter was compiled with LDAP:
| name |
description |
| ldap_uri |
ldap connection uri |
| ldap_host |
all configured ldap hosts |
| ldap_num_hosts |
number of ldap hosts |
| ldap_port |
ldap port |
| ldap_binddn |
bind dn for ldap connection |
| ldap_bindpw |
bind password for ldap connection |
| ldap_base |
base dn for ldap lookups |
| ldap_referrals |
enables/disables ldap referral lookups |
| ldap_scope |
ldap search scope |
| ldap_user_query |
ldap query to determine the existence of a user |