config.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * saop: smtp authentication over pop3
  3. * Copyright (C) 2007 Juan José Gutiérrez de Quevedo <juanjo@iteisa.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; version 2 of the License
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along
  15. * with this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. *
  18. * @author Juan José Gutiérrez de Quevedo <juanjo@iteisa.com>
  19. */
  20. #ifndef CONFIG_H
  21. #define CONFIG_H
  22. #include <stdio.h>
  23. #include <string.h>
  24. #include <ctype.h>
  25. #include "utils.h"
  26. struct config_t
  27. {
  28. #ifndef WIN32
  29. unsigned char background;
  30. unsigned char drop_privileges;
  31. char user[512];
  32. char group[512];
  33. char chroot[512];
  34. #endif /* WIN32 */
  35. unsigned short listen_port;
  36. char smtp_server[512];
  37. unsigned short smtp_port;
  38. char auth_server[512];
  39. unsigned short auth_port;
  40. char auth_file[512];
  41. char local_domains[512];
  42. char auth_method[512];
  43. };
  44. void read_config(char *,struct config_t *);
  45. #endif /* CONFIG_H */