2011-11-14 15:57:52 +01:00
|
|
|
/*
|
|
|
|
* cfg.h, SJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CFG_H
|
|
|
|
#define _CFG_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
struct __config {
|
2013-01-06 21:04:58 +01:00
|
|
|
int server_id;
|
2011-11-14 15:57:52 +01:00
|
|
|
char username[MAXVAL];
|
|
|
|
|
|
|
|
char hostid[MAXVAL];
|
|
|
|
char pidfile[MAXVAL];
|
|
|
|
|
|
|
|
char listen_addr[MAXVAL];
|
|
|
|
int listen_port;
|
|
|
|
|
|
|
|
char clamd_addr[MAXVAL];
|
|
|
|
int clamd_port;
|
|
|
|
char clamd_socket[MAXVAL];
|
|
|
|
|
2013-01-11 11:37:23 +01:00
|
|
|
int encrypt_messages;
|
|
|
|
|
2012-10-28 20:36:46 +01:00
|
|
|
int tls_enable;
|
|
|
|
char pemfile[MAXVAL];
|
|
|
|
char cipher_list[MAXVAL];
|
|
|
|
|
2011-11-14 15:57:52 +01:00
|
|
|
int use_antivirus;
|
|
|
|
|
|
|
|
char memcached_servers[MAXVAL];
|
|
|
|
int memcached_ttl;
|
|
|
|
|
|
|
|
int number_of_worker_processes;
|
|
|
|
int max_requests_per_child;
|
|
|
|
|
|
|
|
int backlog;
|
|
|
|
|
|
|
|
char workdir[MAXVAL];
|
|
|
|
char queuedir[MAXVAL];
|
|
|
|
|
|
|
|
int verbosity;
|
|
|
|
char locale[MAXVAL];
|
|
|
|
|
|
|
|
int session_timeout;
|
|
|
|
|
|
|
|
char piler_header_field[MAXVAL];
|
2012-11-27 13:16:30 +01:00
|
|
|
char extra_to_field[MAXVAL];
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
unsigned char key[KEYLEN];
|
|
|
|
unsigned char iv[MAXVAL];
|
|
|
|
|
2012-01-26 14:35:51 +01:00
|
|
|
char spam_header_line[MAXVAL];
|
|
|
|
|
2012-02-19 22:59:47 +01:00
|
|
|
int default_retention_days;
|
|
|
|
|
2011-11-14 15:57:52 +01:00
|
|
|
// mysql stuff
|
|
|
|
|
|
|
|
char mysqlhost[MAXVAL];
|
|
|
|
int mysqlport;
|
|
|
|
char mysqlsocket[MAXVAL];
|
|
|
|
char mysqluser[MAXVAL];
|
|
|
|
char mysqlpwd[MAXVAL];
|
|
|
|
char mysqldb[MAXVAL];
|
|
|
|
int mysql_connect_timeout;
|
|
|
|
|
2012-01-07 00:00:36 +01:00
|
|
|
int update_counters_to_memcached;
|
|
|
|
int memcached_to_db_interval;
|
|
|
|
|
2012-07-06 13:02:40 +02:00
|
|
|
int archive_emails_not_having_message_id;
|
2012-07-23 16:51:36 +02:00
|
|
|
|
2012-08-22 08:15:53 +02:00
|
|
|
int min_word_len;
|
|
|
|
|
2012-07-23 16:51:36 +02:00
|
|
|
int debug;
|
2011-11-14 15:57:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _CFG_H */
|