/* * atomicpop3pass - advanced qmail POP3 authentification * * main.h - configuration header file * __________________________________________________________ * * Developed by Ondrej Jombik * Copyright (c) 2002-2003 Platon SDG, http://platon.sk/ * All rights reserved. * * See README file for more information about this software. * See COPYING file for license information. * * Download the latest version from * http://platon.sk/projects/libplaton/ */ /* $Platon: */ #ifndef MAIN_H # define MAIN_H /* Program name (used with syslog, etc.) */ #define PROGRAM_NAME "atomicpop3pass" /* Configuration file location. */ #define CONFIG_FILE "/var/qmail/users/poppasswd" /* Verbosity level 0 - no logging (syslog completelly disabled) 1 - errors only (shows only program execution errors) 3 - brief info (quiet; one message per logon) 5 - common info without debugging (verbose) 9 - all debug messages (for development purpose) Note that also valid or unvalid passwords will be stored into syslog with this option enabled. */ #define SYSLOG_LEVEL (3) /* Three internal logging levels maped to syslog ones. */ #if SYSLOG_LEVEL >= 1 # include # define SYSLOG_DEBUG LOG_DEBUG /* debugging messages */ # define SYSLOG_INFO LOG_INFO /* informational messages */ # define SYSLOG_ERROR LOG_ERR /* error and warning messages */ #endif /* Syslog facility */ #define SYSLOG_FACILITY LOG_LOCAL0 /* Sleep in seconds after invalid login. If you don't like silly telnet crackers, feel free to keep this number high, even more than 15. */ #define SLEEP (20) /* Buffer size. Keep it at least 2048. */ #define BUFLEN (2048) /* Exit function */ void atexit_function0(void); /* String clearing function specially for login and password */ void nuke_dynamic_string(char **str); #endif /* ifndef MAIN_H */ /* Modeline for ViM {{{ * vim:set ts=4: * vim600:fdm=marker fdl=0 fdc=0: * }}} */