|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ("OpenBSD" == OperatingSystemType) {
|
|
|
if ("OpenBSD" == OperatingSystemType) {
|
|
|
|
|
|
|
|
|
SendmailSendmailMcPath = "/etc/mail/sendmail.mc";
|
|
|
|
|
|
SendmailSendmailCfPath = "/etc/mail/localhost.cf";
|
|
|
|
|
|
ReloadMtaCommand = "kill -HUP `head -1 /var/run/sendmail.pid`";
|
|
|
|
|
|
ReloadMtaCommand = "pkill -HUP sendmail";
|
|
|
|
|
|
|
|
|
|
|
|
FileToBackup.push_back(SendmailSendmailMcPath);
|
|
|
|
|
|
FileToBackup.push_back(SendmailSendmailCfPath);
|
|
|
|
|
|
|
|
|
IntegrationIsSupported = false;
|
|
|
|
|
|
|
|
|
} else if ("FreeBSD" == OperatingSystemType) {
|
|
|
} else if ("FreeBSD" == OperatingSystemType) {
|
|
|
|
|
|
|
|
|
SendmailSendmailMcPath = "/etc/mail/freebsd.mc";
|
|
|
|
|
|
SendmailSendmailCfPath = "/etc/mail/sendmail.cf";
|
|
|
|
|
|
BuildInstallSendmailCfFile = "(cd /etc/mail && make cf && make install)";
|
|
|
|
|
|
ReloadMtaCommand = "/etc/rc.d/sendmail restart";
|
|
|
|
|
|
|
|
|
|
|
|
FileToBackup.push_back(SendmailSendmailMcPath);
|
|
|
|
|
|
FileToBackup.push_back(SendmailSendmailCfPath);
|
|
|
|
|
|
|
|
|
IntegrationIsSupported = false;
|
|
|
|
|
|
|
|
|
} else if ("Ubuntu" == OperatingSystemType) {
|
|
|
} else if ("Ubuntu" == OperatingSystemType) {
|
|
|
|
|
|
|
|
|
|
|
|
IntegrationIsSupported = true;
|
|
|
SendmailSendmailMcPath = "/etc/mail/sendmail.mc";
|
|
|
SendmailSendmailMcPath = "/etc/mail/sendmail.mc";
|
|
|
SendmailSendmailCfPath = "/etc/mail/sendmail.cf";
|
|
|
SendmailSendmailCfPath = "/etc/mail/sendmail.cf";
|
|
|
BuildInstallSendmailCfFile = "(cd /etc/mail && make)";
|
|
|
BuildInstallSendmailCfFile = "(cd /etc/mail && make)";
|
|
|
ReloadMtaCommand = "/usr/sbin/service sendmail reload";
|
|
|
|
|
|
|
|
|
ReloadMtaCommand = "/etc/init.d/sendmail reload";
|
|
|
|
|
|
|
|
|
FileToBackup.push_back(SendmailSendmailMcPath);
|
|
|
FileToBackup.push_back(SendmailSendmailMcPath);
|
|
|
FileToBackup.push_back(SendmailSendmailCfPath);
|
|
|
FileToBackup.push_back(SendmailSendmailCfPath);
|
|
|
|
|
|
|
|
|
} else if ("RedHat" == OperatingSystemType) {
|
|
|
} else if ("RedHat" == OperatingSystemType) {
|
|
|
|
|
|
|
|
|
|
|
|
IntegrationIsSupported = true;
|
|
|
SendmailSendmailMcPath = "/etc/mail/sendmail.mc";
|
|
|
SendmailSendmailMcPath = "/etc/mail/sendmail.mc";
|
|
|
SendmailSendmailCfPath = "/etc/mail/sendmail.cf";
|
|
|
SendmailSendmailCfPath = "/etc/mail/sendmail.cf";
|
|
|
BuildInstallSendmailCfFile = "(cd /etc/mail && make)";
|
|
|
BuildInstallSendmailCfFile = "(cd /etc/mail && make)";
|
|
|
ReloadMtaCommand = "/sbin/service sendmail reload";
|
|
|
|
|
|
|
|
|
ReloadMtaCommand = "/etc/init.d/sendmail reload";
|
|
|
|
|
|
|
|
|
FileToBackup.push_back(SendmailSendmailMcPath);
|
|
|
FileToBackup.push_back(SendmailSendmailMcPath);
|
|
|
FileToBackup.push_back(SendmailSendmailCfPath);
|
|
|
FileToBackup.push_back(SendmailSendmailCfPath);
|
|
|
|
|
|
|
|
|
} else if ("Suse" == OperatingSystemType) {
|
|
|
} else if ("Suse" == OperatingSystemType) {
|
|
|
|
|
|
|
|
|
|
|
|
IntegrationIsSupported = true;
|
|
|
SendmailSendmailMcPath = "/etc/mail/linux.mc";
|
|
|
SendmailSendmailMcPath = "/etc/mail/linux.mc";
|
|
|
SendmailSendmailCfPath = "/etc/mail/sendmail.cf";
|
|
|
SendmailSendmailCfPath = "/etc/mail/sendmail.cf";
|
|
|
BuildInstallSendmailCfFile = "(cd /etc/mail && rm -f sendmail.cf && m4 /etc/mail/linux.mc > sendmail.cf)";
|
|
|
BuildInstallSendmailCfFile = "(cd /etc/mail && rm -f sendmail.cf && m4 /etc/mail/linux.mc > sendmail.cf)";
|
|
|
ReloadMtaCommand = "/sbin/service sendmail reload";
|
|
|
|
|
|
|
|
|
ReloadMtaCommand = "/etc/init.d/sendmail reload";
|
|
|
|
|
|
|
|
|
FileToBackup.push_back(SendmailSendmailMcPath);
|
|
|
FileToBackup.push_back(SendmailSendmailMcPath);
|
|
|
FileToBackup.push_back(SendmailSendmailCfPath);
|
|
|
FileToBackup.push_back(SendmailSendmailCfPath);
|
|
|
|
|
|
|
|
|
void
|
|
|
void
|
|
|
SendmailIntegrate::Integrate(FileBackup *SaveFile) {
|
|
|
SendmailIntegrate::Integrate(FileBackup *SaveFile) {
|
|
|
|
|
|
|
|
|
|
|
|
if (!IntegrationIsSupported) {
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
if (IsIntegrated()) {
|
|
|
if (IsIntegrated()) {
|
|
|
|
|
|
|
|
|
return;
|
|
|
return;
|
|
|
|
|
|
|
|
|
void
|
|
|
void
|
|
|
SendmailIntegrate::Unintegrate(FileBackup *SaveFile) {
|
|
|
SendmailIntegrate::Unintegrate(FileBackup *SaveFile) {
|
|
|
|
|
|
|
|
|
|
|
|
if (!IntegrationIsSupported) {
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
if (!IsIntegrated()) {
|
|
|
if (!IsIntegrated()) {
|
|
|
|
|
|
|
|
|
return;
|
|
|
return;
|