|
|
@@ -137,13 +137,10 @@ PostfixIntegrate::Integrate(FileBackup *SaveFile) { |
|
|
|
|
|
|
|
OutputVerboseEnd();
|
|
|
|
|
|
|
|
if (!Explain()) {
|
|
|
|
|
|
|
|
if (MtaIsRunningDetected()) {
|
|
|
|
|
|
|
|
ReloadMta();
|
|
|
|
if (!ReloadMta()) {
|
|
|
|
|
|
|
|
}
|
|
|
|
std::cerr << "Unable to reload the postfix configuration. Please run "
|
|
|
|
<< "'postfix reload' for the integration with SNFMilter to take effect.";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
@@ -259,13 +256,10 @@ PostfixIntegrate::Unintegrate(FileBackup *SaveFile) { |
|
|
|
|
|
|
|
OutputVerboseEnd();
|
|
|
|
|
|
|
|
if (!Explain()) {
|
|
|
|
|
|
|
|
if (MtaIsRunningDetected()) {
|
|
|
|
if (!ReloadMta()) {
|
|
|
|
|
|
|
|
ReloadMta();
|
|
|
|
|
|
|
|
}
|
|
|
|
std::cerr << "Unable to reload the postfix configuration. Please run "
|
|
|
|
<< "'postfix reload' for the integration with SNFMilter to take effect.";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
@@ -299,6 +293,12 @@ PostfixIntegrate::MtaIsRunningDetected() { |
|
|
|
bool
|
|
|
|
PostfixIntegrate::ReloadMta() {
|
|
|
|
|
|
|
|
if (!MtaIsRunningDetected()) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Verbose()) {
|
|
|
|
|
|
|
|
std::cout << "Reloading postfix...\n";
|