Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

PostfixIntegrate.hpp 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // \file PostfixIntegrate.hpp
  2. //
  3. // Copyright (C) 2011 ARM Research Labs, LLC.
  4. // See www.armresearch.com for the copyright terms.
  5. //
  6. // This file defines the PostfixIntegrate interface.
  7. //
  8. // $Id$
  9. //
  10. ///////////////////////////////////////////////////////////////////////////////////////////////////
  11. #ifndef PostfixIntegratehpp_included
  12. #define PostfixIntegratehpp_included
  13. #include "MtaIntegrate.hpp"
  14. /// Class to manage the SNFMilter integration with postfix.
  15. //
  16. // This class implements the MtaIntegrate interface for postfix.
  17. //
  18. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  19. class PostfixIntegrate : public MtaIntegrate {
  20. public:
  21. virtual void SetOperatingSystem(std::string OperatingSystemType);
  22. virtual void Integrate(FileBackup *SaveFile);
  23. virtual void Unintegrate(FileBackup *SaveFile);
  24. private:
  25. virtual bool MtaIsRunningDetected();
  26. virtual bool ReloadMta();
  27. virtual bool IsIntegrated();
  28. /// Postfix main.cf file path.
  29. std::string PostfixMainCfPath;
  30. /// Postfix master.cf file path.
  31. std::string PostfixMasterCfPath;
  32. /// Value of smtpd_milters keyword.
  33. std::string PostfixSocketSpec;
  34. /// True if postfix runs chrooted by default.
  35. bool PostfixDefaultIsChrooted;
  36. /// Command to determine whether postfix is running.
  37. std::string MtaIsRunningCommand;
  38. /// Command to reload postfix.
  39. std::string ReloadMtaCommand;
  40. };
  41. #endif