|
|
|
|
|
|
|
|
|
|
|
|
|
|
OutputVerboseEnd();
|
|
|
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.";
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OutputVerboseEnd();
|
|
|
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.";
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
bool
|
|
|
PostfixIntegrate::ReloadMta() {
|
|
|
PostfixIntegrate::ReloadMta() {
|
|
|
|
|
|
|
|
|
|
|
|
if (!MtaIsRunningDetected()) {
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
if (Verbose()) {
|
|
|
if (Verbose()) {
|
|
|
|
|
|
|
|
|
std::cout << "Reloading postfix...\n";
|
|
|
std::cout << "Reloading postfix...\n";
|