adeniz
51701b2eb0
Change permission and owner:group of SnfSnifferDirName only when
creating SnfSnifferDirName. Reason: SnfSnifferDirName could be
a system directory (e.g. "/usr/sbin"), and the permission and
owner:group of system directories should not be changed.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@65 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
10 år sedan
adeniz
283d0e520d
Remove non-source files from source directories.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@64 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
11 år sedan
adeniz
694d780d2c
Move from PKG-SNF-CS-NIX.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@63 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
11 år sedan
adeniz
cf29b5eb3a
Improved grammer.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@62 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
11 år sedan
adeniz
4a4b08051f
Removed integration for OpenSuse. Reason: sendmail configuration file for OpenSuse
is controlled by SuSEconfig, and SuSEconfig does not support configuration with milters.
Checking with the opensuse-programming list yielded one response: Configuration needs to be
done manually, and most people use postfix anyway.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@61 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
11 år sedan
adeniz
ffcadfc38d
Make share/snf-milter be owned by snfuser with mode 755 (so that the
rulebase can be created by snfuser).
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@60 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
8199d3ad78
Make postfix a member of the snfuser group upon integration with postfix.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@59 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
ce3d6aa62f
Do not check failbit when copying a file. Reason: Copying an empty file causes
failbit to be set even when there is no error.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@58 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
0f5b91a89a
Implemented updating of SNFMilter.xml, tested -with functionality on Ubuntu.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@57 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
b2b113168a
Removed diagnostic.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@56 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
fffa19cbb6
Implemented PostfixIntegrate::MtaConfigurationIsChrooted().
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@55 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
06cc2e3f80
PostfixMilterConf constructor accepts the milter spec rather than always using unix:/var/snf-milter/socket.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@54 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
7eea9f0cd3
Upgraded Utility::ReplaceXmlAttribute to ignore elements in comments.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@53 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
b1c86f53f7
Add newline if necessary when removing postfix integration.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@52 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
d6b0d2ee33
Completed unit tests.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@51 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
9f1dd8f368
Unit tested PostfixMilterConf::IsIntegrated, IsMilterLine, and
AddIntegration.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@50 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
0b7f4e41b2
Implemented PostfixMilterConf, class to updated the smtpd_milters line
in postfix main.cf.
Modified PostfixIntegrate to use PostfixMilterConf.
Need to implement unit test for PostfixMilterConf.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@49 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
aa23e5d0bf
Removed "# Added by ..." when integrating with postfix.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@48 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
09751b5120
Do not include $smtpd_milters in the definition of smtpd_milters. This is a temporary
fix, since assigning a value to smtpd_milters would overwrite any previous value.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@47 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
8e2441f549
Refer user to INSTALL file when integrating with sendmail on OpenBSD or
FreeBSD.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@46 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
8090dab554
Moved all processing in main.cpp into the try-block. Reason:
SNFMilterConfig.GetCommandLineInput() can now throw an exception.
Completed SENDMAIL-11 (test that integration with sendmail is not
supported on OpenBSD).
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@45 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
30a4c5094d
Tested SENDMAIL-10 (test that sendmail integration is not
supported on FreeBSD).
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@44 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
c32bbfd01a
Completed SENDMAIL-09 (sendmail integration on CentOS).
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@43 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
5895eb8e5d
Removed support for integration with sendmail for OpenBSD and FreeBSD.
Changed sendmail reload to "/etc/init.d/sendmail reload" because the service command is in different
locations in different Ubuntu OS versions.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@42 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
13610d48df
Added prospective commands for integration with sendmail on OpenBSD and FreeBSD (not tested).
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@41 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
45b9580624
Completed SENDMAIL-08 (on OpenSuse).
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@40 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
0b085158b5
When unintegrating sendmail, output message indicating the command
to build the new sendmail.cf file.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@39 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
b3775e59f8
Completed SENDMAIL-07 (on Fedora).
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@38 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
ea97477b20
Completed SENDMAIL-02 thru SENDMAIL-06 tests on Ubuntu.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@37 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
f17399da6e
Return -1 on error (needed by package managers).
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@36 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
4efc49b531
Implemented SNFMilter integration with sendmail, completed test
SENDMAIL-01 (on ubuntu).
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@35 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
0e3c5d47c5
Completed SNFMilterConfig tests.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@34 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
4590136826
Corrected location of postfix configuration files for OpenBSD.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@33 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
908600334e
Correct detection of whether postfix is integrated with SNFMilter.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@32 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
87b6ecf10a
Changed comment in main.cf to indicate that the line was added by
SNFMilterConfig.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@31 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
197ecedb1c
Tested on Fedora 7 (32-bit).
Corrected -v and -explain output when reloading MTA.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@30 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
b025efa67d
Tested integration/unintegration with postfix on Ubuntu.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@29 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
391b879527
Updated integration/unintegration to restart postfix if it is running.
Added test procedures to test the integration/unintegration with
postfix.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@28 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
9694cfa00f
Test start/stop functionality with different configuration of log file
rotation, and local/GMT time.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@27 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
a71d368b6f
Removed -config processing. Added checks for specification of -auth
or -id (but not both) with another command.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@26 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
28dbce670f
Verified start/stop functionality with status.second logging in append
mode.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@25 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
287b6e24bb
Begin testing correct generation of log files with date stamps.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@24 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
6cd36b7865
Configuration files for testing.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@23 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
4d8afb2508
Load credentials when starting or stopping SNFMilter.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@22 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
069c987b16
Implemented adding datestamp to log file when Append is specified in
the configuration.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@21 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
f12f035337
Tested functionality: Help, Conflict detection, Setup/repair,
Credential, Start/stop with XCI.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@20 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
15ec1d8c69
Implemented checking via XCI, status.second, and status.minute the
Sniffer running state.
Updated StartSniffer to check the running state.
Implemented StopSniffer.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@19 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
796a1c243c
Tested SetupRepair() functionality.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@18 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
b15b3d2aa9
Implemented updating of identity file.
Implement unit test of Utility::ReplaceXmlAttribute() in
TestUtility.cpp.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@17 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan
adeniz
39f6cbf224
Defined commands for repair/setup, startSniffer, etc.
git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@16 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
12 år sedan