mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 07:11:59 +01:00
90 lines
1.4 KiB
C
90 lines
1.4 KiB
C
/*
|
|
* cfg.h, SJ
|
|
*/
|
|
|
|
#ifndef _CFG_H
|
|
#define _CFG_H
|
|
|
|
#include "config.h"
|
|
|
|
struct __config {
|
|
int server_id;
|
|
char username[MAXVAL];
|
|
|
|
char hostid[MAXVAL];
|
|
char pidfile[MAXVAL];
|
|
char pilergetd_pidfile[MAXVAL];
|
|
|
|
char listen_addr[MAXVAL];
|
|
int listen_port;
|
|
|
|
char pilergetd_listen_addr[MAXVAL];
|
|
int pilergetd_listen_port;
|
|
|
|
char pilergetd_password[MAXVAL];
|
|
|
|
char clamd_addr[MAXVAL];
|
|
int clamd_port;
|
|
char clamd_socket[MAXVAL];
|
|
|
|
int encrypt_messages;
|
|
|
|
int tls_enable;
|
|
char pemfile[MAXVAL];
|
|
char cipher_list[MAXVAL];
|
|
|
|
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];
|
|
char extra_to_field[MAXVAL];
|
|
|
|
unsigned char key[KEYLEN];
|
|
unsigned char iv[MAXVAL];
|
|
|
|
char spam_header_line[MAXVAL];
|
|
|
|
int default_retention_days;
|
|
|
|
// mysql stuff
|
|
|
|
char mysqlhost[MAXVAL];
|
|
int mysqlport;
|
|
char mysqlsocket[MAXVAL];
|
|
char mysqluser[MAXVAL];
|
|
char mysqlpwd[MAXVAL];
|
|
char mysqldb[MAXVAL];
|
|
int mysql_connect_timeout;
|
|
|
|
int update_counters_to_memcached;
|
|
int memcached_to_db_interval;
|
|
|
|
int archive_emails_not_having_message_id;
|
|
|
|
int archive_only_mydomains;
|
|
|
|
int min_word_len;
|
|
|
|
int tweak_sent_time_offset;
|
|
|
|
int debug;
|
|
};
|
|
|
|
|
|
#endif /* _CFG_H */
|