Defines SMFSettings_T and config file parsing functions. More...
Go to the source code of this file.
Data Structures | |
struct | SMFSettings_T |
Holds spmfilter runtime configuration. More... | |
Enumerations | |
enum | SMFTlsOption_T { SMF_TLS_DISABLED, SMF_TLS_ENABLED, SMF_TLS_REQUIRED } |
Possible types of TLS configuration. More... | |
enum | SMFConnectionType_T { SMF_SQL_CONN, SMF_LDAP_CONN } |
Possible backend connection types. More... | |
Functions | |
int | smf_settings_set_debug (SMFSettings_T *settings, int debug) |
Set debug setting. | |
int | smf_settings_get_debug (SMFSettings_T *settings) |
Get debug setting. | |
int | smf_settings_set_config_file (SMFSettings_T *settings, char *cf) |
Set path to config file. | |
char * | smf_settings_get_config_file (SMFSettings_T *settings) |
Get config file path. | |
int | smf_settings_set_queue_dir (SMFSettings_T *settings, char *qd) |
Set path to queue directory. | |
char * | smf_settings_get_queue_dir (SMFSettings_T *settings) |
Get queue directory path. | |
void | smf_settings_set_engine (SMFSettings_T *settings, char *engine) |
Set engine which should be used. | |
char * | smf_settings_get_engine (SMFSettings_T *settings) |
Get configured engine. | |
int | smf_settings_add_module (SMFSettings_T *settings, char *module) |
Add available module to module list, which will be loaded at runtime. | |
SMFList_T * | smf_settings_get_modules (SMFSettings_T *settings) |
Get available modules. | |
void | smf_settings_set_module_fail (SMFSettings_T *settings, int i) |
Set module_fail setting 1 = proceed and ignore 2 = cancel further processing and return permanet error 3 = cancel further processing and return temporary error (default) | |
int | smf_settings_get_module_fail (SMFSettings_T *settings) |
Get module_fail setting. | |
void | smf_settings_set_nexthop (SMFSettings_T *settings, char *nexthop) |
Set nexthop setting. This parameter specifies the final destination, after a mail is processed by spmfilter. | |
char * | smf_settings_get_nexthop (SMFSettings_T *settings) |
Get configured nexthop setting. | |
void | smf_settings_set_nexthop_fail_code (SMFSettings_T *settings, int i) |
Set nexthop_fail_code setting If the delivery to the final destination fails for any reason, this code is used as response to the sending MTA (default 451). | |
int | smf_settings_get_nexthop_fail_code (SMFSettings_T *settings) |
Get nexthop_fail_code setting. | |
void | smf_settings_set_nexthop_fail_msg (SMFSettings_T *settings, char *msg) |
Set nexthop_fail_msg setting. If the delivery to the final destination fails for any reason, this message is used as reponse for the sending MTA. (default "Requested action aborted: local error in processing"). | |
char * | smf_settings_get_nexthop_fail_msg (SMFSettings_T *settings) |
Get nexthop_fail_msg setting. | |
void | smf_settings_set_backend (SMFSettings_T *settings, char *backend) |
Set lookup backend. | |
char * | smf_settings_get_backend (SMFSettings_T *settings) |
Get backend setting. | |
void | smf_settings_set_backend_connection (SMFSettings_T *settings, char *conn) |
Set backend_connection setting. If there are multiple server configured in the specified backend, it's possible to define a failover or load-balancing behaviour. Possible values are: balance = when you configure the backend profile for load balancing, spmfilter distributes connections across the list of hosts. If the actual host is not reachable, spmfilter switches back to failover configuration. failover = when you configure the backend profile for failover, spmfilter fails over to the next host in the list if it cannot connect to the first host. | |
char * | smf_settings_get_backend_connection (SMFSettings_T *settings) |
Get backend connection setting. | |
void | smf_settings_set_add_header (SMFSettings_T *settings, int i) |
Define if spmfilter should add it's own header. | |
int | smf_settings_get_add_header (SMFSettings_T *settings) |
Get add_header setting. | |
void | smf_settings_set_max_size (SMFSettings_T *settings, unsigned long size) |
Set max. allowed message size in byte. | |
unsigned long | smf_settings_get_max_size (SMFSettings_T *settings) |
Get max_size setting in bytes. | |
void | smf_settings_set_tls (SMFSettings_T *settings, SMFTlsOption_T t) |
Set tls setting. | |
SMFTlsOption_T | smf_settings_get_tls (SMFSettings_T *settings) |
Get tls setting. | |
void | smf_settings_set_lib_dir (SMFSettings_T *settings, char *lib_dir) |
Set path to shared libraries, if needed. | |
char * | smf_settings_get_lib_dir (SMFSettings_T *settings) |
Get shared library folder. | |
void | smf_settings_set_pid_file (SMFSettings_T *settings, char *pid_file) |
Set pid file. | |
char * | smf_settings_get_pid_file (SMFSettings_T *settings) |
Get current pid file. | |
void | smf_settings_set_bind_ip (SMFSettings_T *settings, char *ip) |
Set bind ip. | |
char * | smf_settings_get_bind_ip (SMFSettings_T *settings) |
Get current bind ip. | |
void | smf_settings_set_bind_port (SMFSettings_T *settings, int port) |
Set bind port. | |
int | smf_settings_get_bind_port (SMFSettings_T *settings) |
Get current bind port. | |
void | smf_settings_set_listen_backlog (SMFSettings_T *settings, int backlog) |
Set listen backlog. | |
int | smf_settings_get_listen_backlog (SMFSettings_T *settings) |
Get listen backlog number. | |
void | smf_settings_set_foreground (SMFSettings_T *settings, int foreground) |
Set foreground config option. | |
int | smf_settings_get_foreground (SMFSettings_T *settings) |
Get foreground setting. | |
void | smf_settings_set_user (SMFSettings_T *settings, char *user) |
Set effective user. | |
char * | smf_settings_get_user (SMFSettings_T *settings) |
Get effective user. | |
void | smf_settings_set_group (SMFSettings_T *settings, char *group) |
Set effective group. | |
char * | smf_settings_get_group (SMFSettings_T *settings) |
Get effective group. | |
void | smf_settings_set_max_childs (SMFSettings_T *settings, int max_childs) |
Set the number of maximal allowed processes. | |
int | smf_settings_get_max_childs (SMFSettings_T *settings) |
Get number of maxmimal allowed processes. | |
void | smf_settings_set_spare_childs (SMFSettings_T *settings, int spare_childs) |
Set the number of spare child processes. | |
int | smf_settings_get_spare_childs (SMFSettings_T *settings) |
Get number of spare processes. | |
void | smf_settings_set_syslog_facility (SMFSettings_T *settings, char *facility) |
Set syslog facility. | |
int | smf_settings_get_syslog_facility (SMFSettings_T *settings) |
Get syslog facility. | |
int | smf_settings_set_smtp_code (SMFSettings_T *settings, int code, char *msg) |
Add smtp return code to list. | |
char * | smf_settings_get_smtp_code (SMFSettings_T *settings, int code) |
Get smtp return code message of given code. | |
void | smf_settings_set_smtpd_timeout (SMFSettings_T *settings, int timeout) |
Set time limit for receiving a remote SMTP client request. | |
int | smf_settings_get_smtpd_timeout (SMFSettings_T *settings) |
Get time limit for receiving a remote SMTP client request. | |
void | smf_settings_set_sql_driver (SMFSettings_T *settings, char *driver) |
Set SQL driver, which should be used. Possible values are: | |
char * | smf_settings_get_sql_driver (SMFSettings_T *settings) |
Get sql_driver setting. | |
void | smf_settings_set_sql_name (SMFSettings_T *settings, char *name) |
Set SQL database name. | |
char * | smf_settings_get_sql_name (SMFSettings_T *settings) |
Get SQL database name. | |
int | smf_settings_add_sql_host (SMFSettings_T *settings, char *host) |
Set SQL host(s) | |
SMFList_T * | smf_settings_get_sql_hosts (SMFSettings_T *settings) |
Get SQL host(s) | |
void | smf_settings_set_sql_port (SMFSettings_T *settings, int port) |
Set SQL port. | |
int | smf_settings_get_sql_port (SMFSettings_T *settings) |
Get SQL port. | |
void | smf_settings_set_sql_user (SMFSettings_T *settings, char *user) |
Set SQL username. | |
char * | smf_settings_get_sql_user (SMFSettings_T *settings) |
Get SQL username. | |
void | smf_settings_set_sql_pass (SMFSettings_T *settings, char *pass) |
Set SQL password. | |
char * | smf_settings_get_sql_pass (SMFSettings_T *settings) |
Get SQL password. | |
void | smf_settings_set_sql_user_query (SMFSettings_T *settings, char *query) |
Set sql_user_query setting. | |
char * | smf_settings_get_sql_user_query (SMFSettings_T *settings) |
Get sql_user_query setting. | |
void | smf_settings_set_sql_encoding (SMFSettings_T *settings, char *encoding) |
Set SQL encoding. | |
char * | smf_settings_get_sql_encoding (SMFSettings_T *settings) |
Get SQL encoding. | |
void | smf_settings_set_sql_max_connections (SMFSettings_T *settings, int i) |
Set max. number of SQL connections. | |
int | smf_settings_get_sql_max_connections (SMFSettings_T *settings) |
Get max. number of SQL connections. | |
void | smf_settings_set_ldap_uri (SMFSettings_T *settings, char *uri) |
Set LDAP uri. | |
char * | smf_settings_get_ldap_uri (SMFSettings_T *settings) |
Get LDAP uri. | |
int | smf_settings_add_ldap_host (SMFSettings_T *settings, char *host) |
Set LDAP host(s) | |
SMFList_T * | smf_settings_get_ldap_hosts (SMFSettings_T *settings) |
Get LDAP host(s) | |
void | smf_settings_set_ldap_port (SMFSettings_T *settings, int port) |
Set LDAP port. | |
int | smf_settings_get_ldap_port (SMFSettings_T *settings) |
Get LDAP port. | |
void | smf_settings_set_ldap_binddn (SMFSettings_T *settings, char *binddn) |
Set LDAP binddn. | |
char * | smf_settings_get_ldap_binddn (SMFSettings_T *settings) |
Get LDAP binddn. | |
void | smf_settings_set_ldap_bindpw (SMFSettings_T *settings, char *bindpw) |
Set LDAP bind password. | |
char * | smf_settings_get_ldap_bindpw (SMFSettings_T *settings) |
Get LDAP bind password. | |
void | smf_settings_set_ldap_base (SMFSettings_T *settings, char *base) |
Set LDAP search base. | |
char * | smf_settings_get_ldap_base (SMFSettings_T *settings) |
Get LDAP search base. | |
void | smf_settings_set_ldap_referrals (SMFSettings_T *settings, int i) |
Set ldap_referrals setting. | |
int | smf_settings_get_ldap_referrals (SMFSettings_T *settings) |
Get ldap_referrals setting. | |
void | smf_settings_set_ldap_scope (SMFSettings_T *settings, char *scope) |
Set LDAP scope Possible values are: | |
char * | smf_settings_get_ldap_scope (SMFSettings_T *settings) |
Get LDAP scope. | |
void | smf_settings_set_ldap_user_query (SMFSettings_T *settings, char *query) |
Set LDAP user query. | |
char * | smf_settings_get_ldap_user_query (SMFSettings_T *settings) |
Get LDAP user query. | |
void | smf_settings_set_lookup_persistent (SMFSettings_T *settings, int persistent) |
Set lookup connection persistent. | |
int | smf_settings_get_lookup_persistent (SMFSettings_T *settings) |
Get the lookup persistent value. | |
char * | smf_settings_group_get (SMFSettings_T *settings, char *group_name, char *key) |
Returns the raw value associated with key under the selected group. | |
int | smf_settings_group_get_integer (SMFSettings_T *settings, char *group_name, char *key) |
Returns the value associated with key under the selected group as an integer. | |
int | smf_settings_group_get_boolean (SMFSettings_T *settings, char *group_name, char *key) |
Returns the boolean values associated with key under the selected group as integer. | |
SMFList_T * | smf_settings_group_get_list (SMFSettings_T *settings, char *group_name, char *key) |
Returns the values associated with key under the selected group. | |
Defines SMFSettings_T and config file parsing functions.
All config settings, defined in spmfilter.conf, are stored in a SMFSettings_T object and can be accessed via the corresponding function.
enum SMFConnectionType_T |
enum SMFTlsOption_T |
int smf_settings_add_ldap_host | ( | SMFSettings_T * | settings, |
char * | host | ||
) |
Set LDAP host(s)
settings | a SMFSettings_T object |
host | ldap host list |
int smf_settings_add_module | ( | SMFSettings_T * | settings, |
char * | module | ||
) |
Add available module to module list, which will be loaded at runtime.
settings | a SMFSettings_T object |
module | module name |
int smf_settings_add_sql_host | ( | SMFSettings_T * | settings, |
char * | host | ||
) |
Set SQL host(s)
settings | a SMFSettings_T object |
host | sql_host list |
int smf_settings_get_add_header | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_backend | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_backend_connection | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_bind_ip | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_bind_port | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_config_file | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_debug | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_engine | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_foreground | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_group | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_ldap_base | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_ldap_binddn | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_ldap_bindpw | ( | SMFSettings_T * | settings | ) |
SMFList_T* smf_settings_get_ldap_hosts | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_ldap_port | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_ldap_referrals | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_ldap_scope | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_ldap_uri | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_ldap_user_query | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_lib_dir | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_listen_backlog | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_lookup_persistent | ( | SMFSettings_T * | settings | ) |
Get the lookup persistent value.
settings | a SMFSettings_T object |
int smf_settings_get_max_childs | ( | SMFSettings_T * | settings | ) |
Get number of maxmimal allowed processes.
settings | a SMFSettings_T object |
unsigned long smf_settings_get_max_size | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_module_fail | ( | SMFSettings_T * | settings | ) |
SMFList_T* smf_settings_get_modules | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_nexthop | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_nexthop_fail_code | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_nexthop_fail_msg | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_pid_file | ( | SMFSettings_T * | settings | ) |
Get current pid file.
settings | a SMFSettings_T object |
char* smf_settings_get_queue_dir | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_smtp_code | ( | SMFSettings_T * | settings, |
int | code | ||
) |
Get smtp return code message of given code.
settings | a SMFSettings_T object |
code | to look for |
int smf_settings_get_smtpd_timeout | ( | SMFSettings_T * | settings | ) |
Get time limit for receiving a remote SMTP client request.
settings | a SMFSettings_T object |
int smf_settings_get_spare_childs | ( | SMFSettings_T * | settings | ) |
Get number of spare processes.
settings | a SMFSettings_T object |
char* smf_settings_get_sql_driver | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_sql_encoding | ( | SMFSettings_T * | settings | ) |
SMFList_T* smf_settings_get_sql_hosts | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_sql_max_connections | ( | SMFSettings_T * | settings | ) |
Get max. number of SQL connections.
settings | a SMFSettings_T object |
char* smf_settings_get_sql_name | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_sql_pass | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_sql_port | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_sql_user | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_sql_user_query | ( | SMFSettings_T * | settings | ) |
int smf_settings_get_syslog_facility | ( | SMFSettings_T * | settings | ) |
SMFTlsOption_T smf_settings_get_tls | ( | SMFSettings_T * | settings | ) |
char* smf_settings_get_user | ( | SMFSettings_T * | settings | ) |
char* smf_settings_group_get | ( | SMFSettings_T * | settings, |
char * | group_name, | ||
char * | key | ||
) |
Returns the raw value associated with key under the selected group.
settings | a SMFSettings_T object |
group_name | name of the settings section |
key | a key |
int smf_settings_group_get_boolean | ( | SMFSettings_T * | settings, |
char * | group_name, | ||
char * | key | ||
) |
Returns the boolean values associated with key under the selected group as integer.
settings | a SMFSettings_T object |
group_name | name of the settings section |
key | a key |
int smf_settings_group_get_integer | ( | SMFSettings_T * | settings, |
char * | group_name, | ||
char * | key | ||
) |
Returns the value associated with key under the selected group as an integer.
settings | a SMFSettings_T object |
group_name | name of the settings section |
key | a key |
SMFList_T* smf_settings_group_get_list | ( | SMFSettings_T * | settings, |
char * | group_name, | ||
char * | key | ||
) |
Returns the values associated with key under the selected group.
settings | a SMFSettings_T object |
group_name | name of the settings section |
key | a key |
void smf_settings_set_add_header | ( | SMFSettings_T * | settings, |
int | i | ||
) |
Define if spmfilter should add it's own header.
settings | a SMFSettings_T object |
i | add_header value, either 1 (true) or 0 (false) |
void smf_settings_set_backend | ( | SMFSettings_T * | settings, |
char * | backend | ||
) |
Set lookup backend.
settings | a SMFSettings_T object |
backend | backend setting list |
void smf_settings_set_backend_connection | ( | SMFSettings_T * | settings, |
char * | conn | ||
) |
Set backend_connection setting. If there are multiple server configured in the specified backend, it's possible to define a failover or load-balancing behaviour. Possible values are: balance = when you configure the backend profile for load balancing, spmfilter distributes connections across the list of hosts. If the actual host is not reachable, spmfilter switches back to failover configuration. failover = when you configure the backend profile for failover, spmfilter fails over to the next host in the list if it cannot connect to the first host.
settings | a SMFSettings_T object |
conn | backend connection |
void smf_settings_set_bind_ip | ( | SMFSettings_T * | settings, |
char * | ip | ||
) |
Set bind ip.
settings | a SMFSettings_T object |
ip | char pointer with ip |
void smf_settings_set_bind_port | ( | SMFSettings_T * | settings, |
int | port | ||
) |
Set bind port.
settings | a SMFSettings_T object |
port | port number |
int smf_settings_set_config_file | ( | SMFSettings_T * | settings, |
char * | cf | ||
) |
Set path to config file.
settings | a SMFSettings_T object |
cf | config file |
int smf_settings_set_debug | ( | SMFSettings_T * | settings, |
int | debug | ||
) |
Set debug setting.
settings | a SMFSettings_T object |
debug | debug setting either 0 (false) or 1 (true) |
void smf_settings_set_engine | ( | SMFSettings_T * | settings, |
char * | engine | ||
) |
Set engine which should be used.
settings | a SMFSettings_T object |
engine | engine |
void smf_settings_set_foreground | ( | SMFSettings_T * | settings, |
int | foreground | ||
) |
Set foreground config option.
settings | a SMFSettings_T object |
foreground | foreground config options (1 = true, 0 = false) |
void smf_settings_set_group | ( | SMFSettings_T * | settings, |
char * | group | ||
) |
Set effective group.
settings | a SMFSettings_T object |
group | effective groupname |
void smf_settings_set_ldap_base | ( | SMFSettings_T * | settings, |
char * | base | ||
) |
Set LDAP search base.
settings | a SMFSettings_T object |
base | ldap base value |
void smf_settings_set_ldap_binddn | ( | SMFSettings_T * | settings, |
char * | binddn | ||
) |
Set LDAP binddn.
settings | a SMFSettings_T object |
binddn | ldap binddn value |
void smf_settings_set_ldap_bindpw | ( | SMFSettings_T * | settings, |
char * | bindpw | ||
) |
Set LDAP bind password.
settings | a SMFSettings_T object |
bindpw | ldap bindpw value |
void smf_settings_set_ldap_port | ( | SMFSettings_T * | settings, |
int | port | ||
) |
Set LDAP port.
settings | a SMFSettings_T object |
port | ldap port value |
void smf_settings_set_ldap_referrals | ( | SMFSettings_T * | settings, |
int | i | ||
) |
Set ldap_referrals setting.
settings | a SMFSettings_T object |
i | ldap referrals value |
void smf_settings_set_ldap_scope | ( | SMFSettings_T * | settings, |
char * | scope | ||
) |
Set LDAP scope Possible values are:
settings | a SMFSettings_T object |
scope | ldap scope value |
void smf_settings_set_ldap_uri | ( | SMFSettings_T * | settings, |
char * | uri | ||
) |
Set LDAP uri.
settings | a SMFSettings_T object |
uri | ldap uri value |
void smf_settings_set_ldap_user_query | ( | SMFSettings_T * | settings, |
char * | query | ||
) |
Set LDAP user query.
settings | a SMFSettings_T object |
query | ldap user query |
void smf_settings_set_lib_dir | ( | SMFSettings_T * | settings, |
char * | lib_dir | ||
) |
Set path to shared libraries, if needed.
settings | a SMFSettings_T object |
lib_dir | path to shared libraries folder |
void smf_settings_set_listen_backlog | ( | SMFSettings_T * | settings, |
int | backlog | ||
) |
Set listen backlog.
settings | a SMFSettings_T object |
backlog | max. number of listen backlog queue |
void smf_settings_set_lookup_persistent | ( | SMFSettings_T * | settings, |
int | persistent | ||
) |
Set lookup connection persistent.
settings | a SMFSettings_T object |
persistent | value as integer, 1 if true, 0 if false |
void smf_settings_set_max_childs | ( | SMFSettings_T * | settings, |
int | max_childs | ||
) |
Set the number of maximal allowed processes.
settings | a SMFSettings_T object |
max_childs | number of processes |
void smf_settings_set_max_size | ( | SMFSettings_T * | settings, |
unsigned long | size | ||
) |
Set max. allowed message size in byte.
settings | a SMFSettings_T object |
size | max_size setting |
void smf_settings_set_module_fail | ( | SMFSettings_T * | settings, |
int | i | ||
) |
Set module_fail setting 1 = proceed and ignore 2 = cancel further processing and return permanet error 3 = cancel further processing and return temporary error (default)
settings | a SMFSettings_T object |
i | module_fail value |
void smf_settings_set_nexthop | ( | SMFSettings_T * | settings, |
char * | nexthop | ||
) |
Set nexthop setting. This parameter specifies the final destination, after a mail is processed by spmfilter.
settings | a SMFSettings_T object |
nexthop | nexthtop string |
void smf_settings_set_nexthop_fail_code | ( | SMFSettings_T * | settings, |
int | i | ||
) |
Set nexthop_fail_code setting If the delivery to the final destination fails for any reason, this code is used as response to the sending MTA (default 451).
settings | a SMFSettings_T object |
i | nexthop_fail_code value |
void smf_settings_set_nexthop_fail_msg | ( | SMFSettings_T * | settings, |
char * | msg | ||
) |
Set nexthop_fail_msg setting. If the delivery to the final destination fails for any reason, this message is used as reponse for the sending MTA. (default "Requested action aborted: local error in processing").
settings | a SMFSettings_T object |
msg | nexthop fail message |
void smf_settings_set_pid_file | ( | SMFSettings_T * | settings, |
char * | pid_file | ||
) |
Set pid file.
settings | a SMFSettings_T object |
pid_file | char pointer with pid file path |
int smf_settings_set_queue_dir | ( | SMFSettings_T * | settings, |
char * | qd | ||
) |
Set path to queue directory.
settings | a SMFSettings_T object |
qd | queue directory path |
int smf_settings_set_smtp_code | ( | SMFSettings_T * | settings, |
int | code, | ||
char * | msg | ||
) |
Add smtp return code to list.
settings | a SMFSettings_T object |
code | smtp code |
msg | smtp return message |
void smf_settings_set_smtpd_timeout | ( | SMFSettings_T * | settings, |
int | timeout | ||
) |
Set time limit for receiving a remote SMTP client request.
settings | a SMFSettings_T object |
timeout | timeout limit in seconds |
void smf_settings_set_spare_childs | ( | SMFSettings_T * | settings, |
int | spare_childs | ||
) |
Set the number of spare child processes.
settings | a SMFSettings_T object |
spare_childs | number of spare processes |
void smf_settings_set_sql_driver | ( | SMFSettings_T * | settings, |
char * | driver | ||
) |
Set SQL driver, which should be used. Possible values are:
settings | a SMFSettings_T object |
driver | sql_driver value |
void smf_settings_set_sql_encoding | ( | SMFSettings_T * | settings, |
char * | encoding | ||
) |
Set SQL encoding.
settings | a SMFSettings_T object |
encoding | sql encoding |
void smf_settings_set_sql_max_connections | ( | SMFSettings_T * | settings, |
int | i | ||
) |
Set max. number of SQL connections.
settings | a SMFSettings_T object |
i | number of max allowed connections |
void smf_settings_set_sql_name | ( | SMFSettings_T * | settings, |
char * | name | ||
) |
Set SQL database name.
settings | a SMFSettings_T object |
name | database name |
void smf_settings_set_sql_pass | ( | SMFSettings_T * | settings, |
char * | pass | ||
) |
Set SQL password.
settings | a SMFSettings_T object |
pass | sql_pass value |
void smf_settings_set_sql_port | ( | SMFSettings_T * | settings, |
int | port | ||
) |
Set SQL port.
settings | a SMFSettings_T object |
port | sql port |
void smf_settings_set_sql_user | ( | SMFSettings_T * | settings, |
char * | user | ||
) |
Set SQL username.
settings | a SMFSettings_T object |
user | sql user value |
void smf_settings_set_sql_user_query | ( | SMFSettings_T * | settings, |
char * | query | ||
) |
Set sql_user_query setting.
settings | a SMFSettings_T object |
query | sql user query value |
void smf_settings_set_syslog_facility | ( | SMFSettings_T * | settings, |
char * | facility | ||
) |
Set syslog facility.
settings | a SMFSettings_T object |
facility | syslog facility |
void smf_settings_set_tls | ( | SMFSettings_T * | settings, |
SMFTlsOption_T | t | ||
) |
Set tls setting.
settings | a SMFSettings_T object |
t | a SMFTlsOption_T value |
void smf_settings_set_user | ( | SMFSettings_T * | settings, |
char * | user | ||
) |
Set effective user.
settings | a SMFSettings_T object |
user | effective username |