From 52f047e65b4894433dffae9e68888cc84c239a3f Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 5 Dec 2011 18:34:33 -0500 Subject: move mailscanner into config where it should be --- config/mailscanner/mailscanner.inc | 905 +++++++++++++++++++++++++ config/mailscanner/mailscanner.xml | 340 ++++++++++ config/mailscanner/mailscanner_about.php | 98 +++ config/mailscanner/mailscanner_alerts.xml | 158 +++++ config/mailscanner/mailscanner_antispam.xml | 401 +++++++++++ config/mailscanner/mailscanner_antivirus.xml | 182 +++++ config/mailscanner/mailscanner_attachments.xml | 212 ++++++ config/mailscanner/mailscanner_content.xml | 228 +++++++ config/mailscanner/mailscanner_report.xml | 413 +++++++++++ config/mailscanner/mailscanner_sync.xml | 132 ++++ 10 files changed, 3069 insertions(+) create mode 100644 config/mailscanner/mailscanner.inc create mode 100644 config/mailscanner/mailscanner.xml create mode 100755 config/mailscanner/mailscanner_about.php create mode 100644 config/mailscanner/mailscanner_alerts.xml create mode 100644 config/mailscanner/mailscanner_antispam.xml create mode 100644 config/mailscanner/mailscanner_antivirus.xml create mode 100644 config/mailscanner/mailscanner_attachments.xml create mode 100644 config/mailscanner/mailscanner_content.xml create mode 100644 config/mailscanner/mailscanner_report.xml create mode 100644 config/mailscanner/mailscanner_sync.xml (limited to 'config/mailscanner') diff --git a/config/mailscanner/mailscanner.inc b/config/mailscanner/mailscanner.inc new file mode 100644 index 00000000..fd7b6d16 --- /dev/null +++ b/config/mailscanner/mailscanner.inc @@ -0,0 +1,905 @@ + 'deleted.content.message.txt', + 'deletedbadfilename' => 'deleted.filename.message.txt', + 'deletedvirus' =>'deleted.virus.message.txt', + 'deletedsize' => 'deleted.size.message.txt', + 'storedbadcontent' => 'stored.content.message.txt', + 'storedbadfilename' => 'stored.filename.message.txt', + 'storedvirus' => 'stored.virus.message.txt', + 'storedsize' => 'stored.size.message.txt', + 'disinfected' => 'disinfected.report.txt', + 'sendercontent' => 'sender.content.report.txt', + 'sendererror' => 'sender.error.report.txt', + 'senderbadfilename' => 'sender.filename.report.txt', + 'sendervirus' => 'sender.virus.report.txt', + 'sendersize' => 'sender.size.report.txt', + 'senderrbl' => 'sender.spam.rbl.report.txt', + 'sendersa' => 'sender.spam.sa.report.txt', + 'sendermcp' => 'sender.mcp.report.txt', + 'senderspam'=>'sender.spam.report.txt', + 'recipientmcp'=>'recipient.mcp.report.txt', + 'recipientspam'=>'recipient.spam.report.txt', + 'rejection' =>'rejection.report.txt'); + + foreach ($report_files as $key_r => $file_r){ + if ($report[$key_r] == ""){ + #$input_errors[]= $key; + $config['installedpackages']['msreport']['config'][0][$key_r]=base64_encode(file_get_contents($report_dir.'/'.$file_r.'.sample')); + file_put_contents($report_dir.'/'.$file_r,ms_text_area_decode($config['installedpackages']['msreport']['config'][0][$key_r]),LOCK_EX); + $load_samples++; + } + #print $key_r ."X $file_r X". base64_encode(file_get_contents($report_dir.'/'.$file_r.'.sample')) ."
"; + + if ($alert['sig']){ + if($alert['sig_html'] == ""){ + $config['installedpackages']['msalerts']['config'][0]['sig_html']=base64_encode(file_get_contents($report_dir.'/inline.sig.html')); + $load_samples++; + } + if($alert['sig_txt'] == ""){ + $config['installedpackages']['msalerts']['config'][0]['sig_txt']=base64_encode(file_get_contents($report_dir.'/inline.sig.txt')); + $load_samples++; + } + } + + if ($alert['warning']){ + if($alert['warning_html'] == ""){ + $config['installedpackages']['msalerts']['config'][0]['warning_html']=base64_encode(file_get_contents($report_dir.'/inline.warning.html')); + $load_samples++; + } + if($alert['warning_txt'] == ""){ + $config['installedpackages']['msalerts']['config'][0]['warning_txt']=base64_encode(file_get_contents($report_dir.'/inline.warning.txt')); + $load_samples++; + } + } + + + } + #exit; + if($load_samples > 0) + write_config(); + /* +Phishing Safe Sites File = %etc-dir%/phishing.safe.sites.conf +Phishing Bad Sites File = %etc-dir%/phishing.bad.sites.conf +Country Sub-Domains List = %etc-dir%/country.domains.conf +*/ + + #create MailScanner.conf$deliver_silent + $mc=<< Filename = signature.jpg +Inline HTML Warning = %report-dir%/inline.warning.html +Inline Text Warning = %report-dir%/inline.warning.txt +Sender Content Report = %report-dir%/sender.content.report.txt +Sender Error Report = %report-dir%/sender.error.report.txt +Sender Bad Filename Report = %report-dir%/sender.filename.report.txt +Sender Virus Report = %report-dir%/sender.virus.report.txt +Sender Size Report = %report-dir%/sender.size.report.txt +Hide Incoming Work Dir = {$hide_incoming_work_dir} +Include Scanner Name In Reports = {$include_scanner_name} +# +# Changes to Message Headers +# -------------------------- +# +Mail Header = X-%org-name%-MailScanner: +Spam Header = X-%org-name%-MailScanner-SpamCheck: +Spam Score Header = X-%org-name%-MailScanner-SpamScore: +Information Header = X-%org-name%-MailScanner-Information: +Add Envelope From Header = yes +Add Envelope To Header = no +Envelope From Header = X-%org-name%-MailScanner-From: +Envelope To Header = X-%org-name%-MailScanner-To: +ID Header = X-%org-name%-MailScanner-ID: +IP Protocol Version Header = # X-%org-name%-MailScanner-IP-Protocol: +Spam Score Character = s +SpamScore Number Instead Of Stars = no +Minimum Stars If On Spam List = 0 +Clean Header Value = Found to be clean +Infected Header Value = Found to be infected +Disinfected Header Value = Disinfected +Information Header Value = Please contact the ISP for more information +Detailed Spam Report = yes +Include Scores In SpamAssassin Report = yes +Always Include SpamAssassin Report = no +Multiple Headers = append +Place New Headers At Top Of Message = no +Hostname = the %org-name% ($HOSTNAME) MailScanner +Sign Messages Already Processed = no +Sign Clean Messages = yes +Attach Image To Signature = no +Attach Image To HTML Message Only = yes +Allow Multiple HTML Signatures = no +Dont Sign HTML If Headers Exist = # In-Reply-To: References: +Mark Infected Messages = yes +Mark Unscanned Messages = yes +Unscanned Header Value = Not scanned: please contact your Internet E-Mail Service Provider for details +Remove These Headers = X-Mozilla-Status: X-Mozilla-Status2: +Deliver Cleaned Messages = yes + +# +# Notifications back to the senders of blocked messages +# ----------------------------------------------------- +# +Notify Senders = {$notify_sender} +Notify Senders Of Viruses = {$notify_sender_viruses} +Notify Senders Of Blocked Filenames Or Filetypes = {$notify_sender_fileytypes} +Notify Senders Of Blocked Size Attachments = {$notify_sender_attachments} +Notify Senders Of Other Blocked Content = {$notify_sender_contents} +Never Notify Senders Of Precedence = list bulk + +# +# Changes to the Subject: line +# ---------------------------- +# +Scanned Modify Subject = no # end +Scanned Subject Text = [Scanned] +Virus Modify Subject = start +Virus Subject Text = [Virus?] +Filename Modify Subject = start +Filename Subject Text = [Filename?] +Content Modify Subject = start +Size Modify Subject = start +Size Subject Text = [Size] +Disarmed Modify Subject = start +Disarmed Subject Text = [Disarmed] +Phishing Modify Subject = no +Phishing Subject Text = [Fraude?] +Spam Modify Subject = start +Spam Subject Text = [Spam?] +High Scoring Spam Modify Subject = start +High Scoring Spam Subject Text = [Spam?] + +# +# Changes to the Message Body +# --------------------------- +# +Warning Is Attachment = yes +Attachment Warning Filename = %org-name%-Attachment-Warning.txt +Attachment Encoding Charset = ISO-8859-1 + +# +# Mail Archiving and Monitoring +# ----------------------------- +# +Archive Mail = +Missing Mail Archive Is = directory + +# +# Notices to System Administrators +# -------------------------------- +# +Send Notices = {$send_notices} +Notices Include Full Headers = {$notices_include_header} +Hide Incoming Work Dir in Notices = {$hide_incoming_work_dir_notices} +Notice Signature = {$notice_signature} +Notices From = ${$notice_from} +Notices To = ${$notice_to} +Local Postmaster = postmaster + +# +# Spam Detection and Virus Scanner Definitions +# -------------------------------------------- +# +Spam List Definitions = %etc-dir%/spam.lists.conf +Virus Scanner Definitions = %etc-dir%/virus.scanners.conf + +# +# Spam Detection and Spam Lists (DNS blocklists) +# ---------------------------------------------- +# + +Spam Checks = yes +Spam List = # spamhaus-ZEN # You can un-comment this to enable them +Spam Domain List = +Spam Lists To Be Spam = 1 +Spam Lists To Reach High Score = 3 +Spam List Timeout = 10 +Max Spam List Timeouts = 7 +Spam List Timeouts History = 10 +Is Definitely Not Spam = %rules-dir%/spam.whitelist.rules +Is Definitely Spam = no +Definite Spam Is High Scoring = no +Ignore Spam Whitelist If Recipients Exceed = 20 +Max Spam Check Size = 200k + +# +# Watermarking +# ------------ +# +Use Watermarking = no +Add Watermark = yes +Check Watermarks With No Sender = yes +Treat Invalid Watermarks With No Sender as Spam = nothing +Check Watermarks To Skip Spam Checks = yes +Watermark Secret = %org-name%-Secret +Watermark Lifetime = 604800 +Watermark Header = X-%org-name%-MailScanner-Watermark: + +# +# SpamAssassin +# ------------ +# + +Use SpamAssassin = {$use_sa} +Max SpamAssassin Size = {$sa_max} +Required SpamAssassin Score = {$sa_score} +High SpamAssassin Score = {$hi_score} +SpamAssassin Auto Whitelist = {$sa_auto_whitelist} +SpamAssassin Timeout = 75 +Max SpamAssassin Timeouts = 10 +SpamAssassin Timeouts History = 30 +Check SpamAssassin If On Spam List = {$check_sa_if_on_spam_list} +Include Binary Attachments In SpamAssassin = {$include_sa_bin_attachments} +Spam Score = {$spam_score} +Cache SpamAssassin Results = {$cache_spamassassin_results} +SpamAssassin Cache Database File = /var/spool/MailScanner/incoming/SpamAssassin.cache.db +Rebuild Bayes Every = {$rebuild_bayes} +Wait During Bayes Rebuild = {$wait_during_bayes_rebuild} + +# +# Custom Spam Scanner Plugin +# -------------------------- +# +Use Custom Spam Scanner = no +Max Custom Spam Scanner Size = 20k +Custom Spam Scanner Timeout = 20 +Max Custom Spam Scanner Timeouts = 10 +Custom Spam Scanner Timeout History = 20 + +# +# What to do with spam +# -------------------- +# + +Spam Actions = {$spam_actions} header "X-Spam-Status: Yes" +High Scoring Spam Actions = {$hispam_actions} header "X-Spam-Status: Yes" +Non Spam Actions = deliver header "X-Spam-Status: No" +SpamAssassin Rule Actions = +Sender Spam Report = %report-dir%/sender.spam.report.txt +Sender Spam List Report = %report-dir%/sender.spam.rbl.report.txt +Sender SpamAssassin Report = %report-dir%/sender.spam.sa.report.txt +Inline Spam Warning = %report-dir%/inline.spam.warning.txt +Recipient Spam Report = %report-dir%/recipient.spam.report.txt +Enable Spam Bounce = %rules-dir%/bounce.rules + +# +# Logging +# ------- +# +Syslog Facility = {$syslog_facility} +Log Speed = {$log_speed} +Log Spam = {$log_spam} +Log Non Spam = {$log_non_spam} +Log Delivery And Non-Delivery = {$log_delivery} +Log Permitted Filenames = {$log_filenames} +Log Permitted Filetypes = {$log_filetypes} +Log Permitted File MIME Types = {$log_mime} +Log Silent Viruses = {$log_silent} +Log Dangerous HTML Tags = {$log_dangerous} +Log SpamAssassin Rule Actions = {$log_sa_rule_action} + +# +# Advanced SpamAssassin Settings +# ------------------------------ +# +SpamAssassin Temporary Dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp +SpamAssassin User State Dir = +SpamAssassin Install Prefix = +SpamAssassin Site Rules Dir = /usr/local/etc/mail/spamassassin +SpamAssassin Local Rules Dir = +SpamAssassin Local State Dir = # /var/lib/spamassassin +SpamAssassin Default Rules Dir = + +# +# MCP (Message Content Protection) +# ----------------------------- +# + +MCP Checks = {$mcp_checks} +First Check = spam +MCP Required SpamAssassin Score = {$mcp_score} +MCP High SpamAssassin Score = {$hi_mcp_score} +MCP Error Score = 1 +MCP Header = X-%org-name%-MailScanner-MCPCheck: +Non MCP Actions = deliver +MCP Actions = {$mcp_action} +High Scoring MCP Actions = {$mcp_hi_action} +Bounce MCP As Attachment = {$bounce_mcp} +MCP Modify Subject = start +MCP Subject Text = [MCP?] +High Scoring MCP Modify Subject = start +High Scoring MCP Subject Text = [MCP?] + +Is Definitely MCP = {$is_mcp} +Is Definitely Not MCP = {$is_not_mcp} +Definite MCP Is High Scoring = {$mcp_is_high_score} +Always Include MCP Report = {$include_mcp_report} +Detailed MCP Report = {$detailled_mcp_report} +Include Scores In MCP Report = {$score_mcp_report} +Log MCP = {$log_mcp} + +MCP Max SpamAssassin Timeouts = 20 +MCP Max SpamAssassin Size = {$mcp_max} +MCP SpamAssassin Timeout = 10 + +MCP SpamAssassin Prefs File = %mcp-dir%/mcp.spam.assassin.prefs.conf +MCP SpamAssassin User State Dir = +MCP SpamAssassin Local Rules Dir = %mcp-dir% +MCP SpamAssassin Default Rules Dir = %mcp-dir% +MCP SpamAssassin Install Prefix = %mcp-dir% +Recipient MCP Report = %report-dir%/recipient.mcp.report.txt +Sender MCP Report = %report-dir%/sender.mcp.report.txt + +# +# Advanced Settings +# ----------------- +# +Use Default Rules With Multiple Recipients = {$default_rule_multiple} +Read IP Address From Received Header = {$read_ipaddress} +Spam Score Number Format = {$spam_score_format} +MailScanner Version Number = 4.79.11 +SpamAssassin Cache Timings = {$cache_timings} +Debug = {$debug} +Debug SpamAssassin = {$debug_spam} +Run In Foreground = {$foreground} +Always Looked Up Last = {$look_up_last} +Always Looked Up Last After Batch = {$look_up_last_batch} +Deliver In Background = {$deliver_background} +Delivery Method = {$mailscanner['deliver_method']} +Split Exim Spool = {$split_exim_spool} +Lockfile Dir = /var/spool/MailScanner/incoming/Locks +Custom Functions Dir = /usr/local/lib/MailScanner/MailScanner/CustomFunctions +Lock Type = +Syslog Socket Type = +Automatic Syntax Check = {$syntax_check} +Minimum Code Status = {$mailscanner['minimum_code']} +include /usr/local/etc/MailScanner/conf.d/* + + + +EOF; + #write files + conf_mount_rw(); + $mlang=strtolower($report['language']); + $mfiles[]="/usr/local/etc/MailScanner/virus.scanners.conf"; + $mfiles[]="/usr/local/share/MailScanner/reports/{$mlang}/inline.spam.warning.txt"; + $mfiles[]="/usr/local/share/MailScanner/reports/{$mlang}/languages.conf"; + + foreach ($mfiles as $mfile) + if (! file_exists ($mfile)) + copy($mfile.".sample",$mfile); + if (!is_dir("/var/spool/MailScanner/incoming")){ + mkdir("/var/spool/MailScanner/incoming", 0755,true); + chown ('/var/spool/MailScanner/incoming','postfix'); + } + if (!is_dir("/var/spool/MailScanner/quarantine")){ + mkdir("/var/spool/MailScanner/quarantine", 0755,true); + chown ('/var/spool/MailScanner/quarantine','postfix'); + } + chown ('/var/spool/postfix','postfix'); + + file_put_contents($mailscanner_dir."/MailScanner.conf", $mc, LOCK_EX); + file_put_contents($mailscanner_dir."/filename.rules.conf",ms_text_area_decode($config['installedpackages']['msattachments']['config'][0]['filename_rules']),LOCK_EX); + file_put_contents($mailscanner_dir."/filetype.rules.conf",ms_text_area_decode($config['installedpackages']['msattachments']['config'][0]['filetype_rules']),LOCK_EX); + file_put_contents($mailscanner_dir."/archives.filename.rules.conf",ms_text_area_decode($config['installedpackages']['msattachments']['config'][0]['filename_rules']),LOCK_EX); + file_put_contents($mailscanner_dir."/archives.filetype.rules.conf",ms_text_area_decode($config['installedpackages']['msattachments']['config'][0]['filetype_rules']),LOCK_EX); + file_put_contents($mailscanner_dir."/phishing.safe.sites.conf",ms_text_area_decode($config['installedpackages']['mscontent']['config'][0]['phishing_safe']),LOCK_EX); + file_put_contents($mailscanner_dir."/phishing.bad.sites.conf",ms_text_area_decode($config['installedpackages']['mscontent']['config'][0]['phishing_bad']),LOCK_EX); + file_put_contents($mailscanner_dir."/country.domains.conf",ms_text_area_decode($config['installedpackages']['mscontent']['config'][0]['country_domains']),LOCK_EX); + file_put_contents($mailscanner_dir.'/spam.assassin.prefs.conf',ms_text_area_decode($config['installedpackages']['msantispam']['config'][0]['sa_pref_file']),LOCK_EX); + file_put_contents($mailscanner_dir.'/spam.lists.conf',ms_text_area_decode($config['installedpackages']['msantispam']['config'][0]['rbl_file']),LOCK_EX); + file_put_contents($mailscanner_dir.'/mcp/mcp.spam.assassin.prefs.conf',ms_text_area_decode($config['installedpackages']['msantispam']['config'][0]['mcp_pref_file']),LOCK_EX); + file_put_contents($mailscanner_dir.'/rules/bounce.rules',ms_text_area_decode($config['installedpackages']['msantispam']['config'][0]['bounce']),LOCK_EX); + file_put_contents($mailscanner_dir.'/rules/max.message.size.rules',ms_text_area_decode($config['installedpackages']['msantispam']['config'][0]['max_message_size']),LOCK_EX); + file_put_contents($mailscanner_dir.'/rules/spam.whitelist.rules',ms_text_area_decode($config['installedpackages']['msantispam']['config'][0]['spam_whitelist']),LOCK_EX); + + foreach ($report_files as $key_r => $file_r) + file_put_contents($report_dir.'/'.$file_r,ms_text_area_decode($config['installedpackages']['msreport']['config'][0][$key_r]),LOCK_EX); + + if ($alert['sig']){ + $sig_html=ms_text_area_decode($config['installedpackages']['msalerts']['config'][0]['sig_html']); + $sig_txt=ms_text_area_decode($config['installedpackages']['msalerts']['config'][0]['sig_txt']);} + else{ + $sig_html=""; + $sig_txt="";} + file_put_contents($report_dir.'/inline.sig.txt',$sig_txt,LOCK_EX); + file_put_contents($report_dir.'/inline.sig.html',$sig_html,LOCK_EX); + + if ($alert['warning']){ + $warning_html=ms_text_area_decode($config['installedpackages']['msalerts']['config'][0]['warning_html']); + $warning_txt=ms_text_area_decode($config['installedpackages']['msalerts']['config'][0]['warning_txt']);} + else{ + $warning_html=""; + $warning_txt="";} + file_put_contents($report_dir.'/inline.warning.txt',$warning_txt,LOCK_EX); + file_put_contents($report_dir.'/inline.warning.html',$warning_html,LOCK_EX); + + #check virus_scanner options + $libexec_dir="/usr/local/libexec/MailScanner/"; + if ($virus_scanning == "yes"){ + if ($antivirus['virus_scanner'] =="none"){ + unlink_if_exists($libexec_dir.'clamav-autoupdate'); + unlink_if_exists($libexec_dir.'clamav-wrapper'); + } + else{ + copy($libexec_dir.'clamav-autoupdate.sample',$libexec_dir.'clamav-autoupdate'); + chmod ($libexec_dir.'clamav-autoupdate',0755); + copy($libexec_dir.'clamav-wrapper.sample',$libexec_dir.'clamav-wrapper'); + chmod ($libexec_dir.'clamav-autoupdate',0755); + if (!file_exists('/var/db/clamav/main.cvd')){ + log_error('No clamav database found, running freshclam in background.'); + mwexec_bg('/usr/local/bin/freshclam'); + } + } + } + else{ + unlink_if_exists($libexec_dir.'clamav-autoupdate'); + unlink_if_exists($libexec_dir.'clamav-wrapper'); + } + + $script='/usr/local/etc/rc.d/mailscanner'; + $script_file=file_get_contents($script); + if (preg_match('/NO/',$script_file)){ + $script_file=preg_replace("/NO/","YES",$script_file); + file_put_contents($script, $script_file, LOCK_EX); + } + if($config['installedpackages']['mailscanner']['config'][0]['enable']){ + log_error("Reload mailscanner"); + chmod ($script,0755); + mwexec_bg("$script fastrestart"); + } + else{ + log_error("Stopping mailscanner if running"); + mwexec("$script stop"); + chmod ($script,0444); + } + conf_mount_ro(); + +} + +function mailscanner_validate_input($post, &$input_errors) { + foreach ($post as $key => $value) { + if (empty($value)) + continue; + if (substr($key, 0, 6) == "domain" && is_numeric(substr($key, 6))) { + if (!is_domain($value)) + $input_errors[] = "{$value} is not a valid domain name."; + } else if (substr($key, 0, 12) == "mailserverip" && is_numeric(substr($key, 12))) { + if (empty($post['domain' . substr($key, 12)])) + $input_errors[] = "Domain for {$value} cannot be blank."; + if (!is_ipaddr($value) && !is_hostname($value)) + $input_errors[] = "{$value} is not a valid IP address or host name."; + } + } +} + +function mailscanner_php_install_command() { + sync_package_mailscanner(); +} + +function mailscanner_php_deinstall_command() { + mwexec("/usr/local/etc/rc.d/mailscanner.sh stop"); + sleep(1); + conf_mount_rw(); + unlink_if_exists("/usr/local/etc/rc.d/mailscanner.sh"); + conf_mount_ro(); +} + +?> \ No newline at end of file diff --git a/config/mailscanner/mailscanner.xml b/config/mailscanner/mailscanner.xml new file mode 100644 index 00000000..d038b29c --- /dev/null +++ b/config/mailscanner/mailscanner.xml @@ -0,0 +1,340 @@ + + + + + + + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + mailscanner + 1.1 + Services: MailScanner + /usr/local/pkg/mailscanner.inc + + Mailscanner + Configure MailScanner service +
Services
+ pkg_edit.php?xml=mailscanner.xml&id=0 +
+ + mailscanner + mailscanner + MailScanner + MailScanner + + + http://www.pfsense.org/packages/config/mailscanner/mailscanner.inc + /usr/local/pkg/ + 0755 + + + http://www.pfsense.org/packages/config/mailscanner/mailscanner.xml + /usr/local/pkg/ + 0755 + + + http://www.pfsense.org/packages/config/mailscanner/mailscanner_report.xml + /usr/local/pkg/ + 0755 + + + http://www.pfsense.org/packages/config/mailscanner/mailscanner_antispam.xml + /usr/local/pkg/ + 0755 + + + http://www.pfsense.org/packages/config/mailscanner/mailscanner_alerts.xml + /usr/local/pkg/ + 0755 + + + http://www.pfsense.org/packages/config/mailscanner/mailscanner_antivirus.xml + /usr/local/pkg/ + 0755 + + + http://www.pfsense.org/packages/config/mailscanner/mailscanner_attachments.xml + /usr/local/pkg/ + 0755 + + + http://www.pfsense.org/packages/config/mailscanner/mailscanner_content.xml + /usr/local/pkg/ + 0755 + + + http://www.pfsense.org/packages/config/mailscanner/mailscanner_sync.xml + /usr/local/pkg/ + 0755 + + + + General + /pkg_edit.php?xml=mailscanner.xml&id=0 + + + + Attachments + /pkg_edit.php?xml=mailscanner_attachments.xml&id=0 + + + Antivirus + /pkg_edit.php?xml=mailscanner_antivirus.xml&id=0 + + + Content + /pkg_edit.php?xml=mailscanner_content.xml&id=0 + + + AntiSpam + /pkg_edit.php?xml=mailscanner_antispam.xml&id=0 + + + Alerts + /pkg_edit.php?xml=mailscanner_alerts.xml&id=0 + + + Reporting + /pkg_edit.php?xml=mailscanner_report.xml&id=0 + + + XMLRPC Sync + /pkg_edit.php?xml=mailscanner_sync.xml&id=0 + + + About + /mailscanner_about.php + + + + + + System Settings + listtopic + + + Enable Mailscanner + enable + Enable mailscanner daemon. + checkbox + + + Org name + orgname + input + Hint: Company]]> + + 30 + + + Long Org name + longorgname + input + Hint: My company inc.]]> + + 30 + + + web-site + website + input + Hint: www.company.com]]> + + 30 + + + + Max Children + max_children + input + + If you are running on a small system with limited RAM, you should note that each child takes just over 20MB.
+ As a rough guide, try 5 children per CPU. But read the notes above.]]> +
+ 05 +
+ + Processing Incoming email + pim + + + + select + + + + + 03 + + + + Logging + listtopic + + + Syslog Facility + syslog_facility + + Default is mail]]> + input + 20 + + + Logging + syslog + + + + select + + + + + + + + + + + + + 11 + + + + + Advanced Settings + listtopic + + + Advanced features + advanced + + + + select + + + + + + + + + + + + + + + 13 + + + + Deliver Method + deliver_method + + + + select + + + + + + + Minimum Code Status + minimum_code + + + + select + + + + + + + + + + + Spam Score Number Format + spam_score_format + input + + If you don't know how to use sprintf() or printf() in C, please *do not modify* this value.
+ A few examples for you:
+ %d ==> 12
+ %5.2f ==> 12.34
+ %05.1f ==> 012.3
+ Default %d]]> +
+ 5 +
+ + SpamAssassin Cache Timings + cache_timings + input + + They affect the length of time that different types of message are stored in the SpamAssassin cache which can be configured earlier in this file (look for "Cache").
+ The numbers are all set in seconds. They are:
+ 1. Non-Spam cache lifetime = 30 minutes
+ 2. Spam (low scoring) cache lifetime = 5 minutes
+ 3. High-Scoring spam cache lifetime = 3 hours
+ 4. Viruses cache lifetime = 2 days
+ 5. How often to check the cache for expired messages = 10 minutes
+ Default: = 1800,300,10800,172800,600 ]]> +
+ 30 +
+ +
+ + mailscanner_php_install_command(); + + + mailscanner_php_deinstall_command(); + + + mailscanner_validate_input($_POST, &$input_errors); + + + sync_package_mailscanner(); + +
diff --git a/config/mailscanner/mailscanner_about.php b/config/mailscanner/mailscanner_about.php new file mode 100755 index 00000000..db499a4d --- /dev/null +++ b/config/mailscanner/mailscanner_about.php @@ -0,0 +1,98 @@ + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ + +require("guiconfig.inc"); + +$pfSversion = str_replace("\n", "", file_get_contents("/etc/version")); +if(strstr($pfSversion, "1.2")) + $one_two = true; + +$pgtitle = "About: Mailscanner Package"; +include("head.inc"); + +?> + + + + +

+ + + + + +
+ + + + + + + + +
+ +
+
+ + + + + + + + + + + + + +
Marcello Coutinho

");?>
donate to pfSense project.

+ If you want that your donation goes to this package developer, make a note on donation forwarding it to me.

");?>
+ +
+
+
+
+
+ + + diff --git a/config/mailscanner/mailscanner_alerts.xml b/config/mailscanner/mailscanner_alerts.xml new file mode 100644 index 00000000..5704f3ff --- /dev/null +++ b/config/mailscanner/mailscanner_alerts.xml @@ -0,0 +1,158 @@ + + + + + + + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + msalerts + 1.1 + Services: MailScanner + /usr/local/pkg/mailscanner.inc + + + General + /pkg_edit.php?xml=mailscanner.xml&id=0 + + + Attachments + /pkg_edit.php?xml=mailscanner_attachments.xml&id=0 + + + Antivirus + /pkg_edit.php?xml=mailscanner_antivirus.xml&id=0 + + + Content + /pkg_edit.php?xml=mailscanner_content.xml&id=0 + + + AntiSpam + /pkg_edit.php?xml=mailscanner_antispam.xml&id=0 + + + Alerts + /pkg_edit.php?xml=mailscanner_alerts.xml&id=0 + + + + Reporting + /pkg_edit.php?xml=mailscanner_report.xml&id=0 + + + XMLRPC Sync + /pkg_edit.php?xml=mailscanner_sync.xml&id=0 + + + About + /mailscanner_about.php + + + + + + Inline message signature + listtopic + + + Enable signature + sig + Enable inline message signature. + checkbox + + + Html signature + sig_html + Leave this field blank to load sample file when signature is enabled.]]> + textarea + 75 + 4 + base64 + + + TXT signature + sig_txt + Leave this field blank to load sample file when warning is enabled.]]> + textarea + 75 + 4 + base64 + + + Inline message warning + listtopic + + + Enable warning + warning + Enable inline message warning. + checkbox + + + Html warning + warning_html + Leave this field blank to load sample file.]]> + textarea + 75 + 4 + base64 + + + TXT warning + warning_txt + Leave this field blank to load sample file.]]> + textarea + 75 + 4 + base64 + + + + mailscanner_php_install_command(); + + + mailscanner_php_deinstall_command(); + + + mailscanner_validate_input($_POST, &$input_errors); + + + sync_package_mailscanner(); + + diff --git a/config/mailscanner/mailscanner_antispam.xml b/config/mailscanner/mailscanner_antispam.xml new file mode 100644 index 00000000..5ce3f015 --- /dev/null +++ b/config/mailscanner/mailscanner_antispam.xml @@ -0,0 +1,401 @@ + + + + + + + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + msantispam + 1.1 + Services: MailScanner + /usr/local/pkg/mailscanner.inc + + + General + /pkg_edit.php?xml=mailscanner.xml&id=0 + + + Attachments + /pkg_edit.php?xml=mailscanner_attachments.xml&id=0 + + + Antivirus + /pkg_edit.php?xml=mailscanner_antivirus.xml&id=0 + + + Content + /pkg_edit.php?xml=mailscanner_content.xml&id=0 + + + AntiSpam + /pkg_edit.php?xml=mailscanner_antispam.xml&id=0 + + + + Alerts + /pkg_edit.php?xml=mailscanner_alerts.xml&id=0 + + + Reporting + /pkg_edit.php?xml=mailscanner_report.xml&id=0 + + + XMLRPC Sync + /pkg_edit.php?xml=mailscanner_sync.xml&id=0 + + + About + /mailscanner_about.php + + + + + + + + RBL Checks + listtopic + + + Features + rblfeatures + + + Note: RBL checks are recommended in postfix postscreen daemon.
+ It's not recommended to run it twice.
]]> +
+ select + + + + + + 04 + +
+ + Spam Lists do be spam + spam_lists + input + 1
]]> + + 5 + + + Hi Spam Lists do be spam + hi_spam_lists + input + 3]]> + + 5 + + + Spam Lists Timeout + rbl_timeout + input + 10]]> + + 5 + + + + Spam Assassin + listtopic + + + Features + safeatures + + + + select + + + + + + + + + + 08 + + + + Max SpamAssassin Size + sa_max + input + 40k]]> + + 5 + + + Required SpamAssassin Score + sa_score + input + 6]]> + + 5 + + + Spam Actions + spam_actions + + Deliver]]> + + select + + + + + + + + + + 08 + + + + Required SpamAssassin HI Score + hi_score + input + + You may want to use this to deliver moderate scores, while deleting very high scoring messsages. Default is 20]]> + + 5 + + + HI Spam Actions + hispam_actions + + Delete]]> + + select + + + + + + + + + + 08 + + + + Rebuild bayes every + rebuild_bayes + input + + This is measures in seconds.Default is 86400]]> + + 5 + + + custom SpamAssassin Options + sa_custom + + textarea + 50 + 4 + base64 + + + MCP (Message Content Protection) + listtopic + + + MCP Features + mcp_features + select + + + + + + + + + + + + + 10 + + + + + MCP Required SpamAssassin Score + mcp_score + input + 1]]> + + 5 + + + MCP Actions + mcp_actions + + Deliver]]> + + select + + + + + + + + + + 08 + + + + MCP Hi SpamAssassin Score + mcp_hi_score + input + 10]]> + + 5 + + + MCP Hi Actions + mcp_hi_actions + + Delete]]> + + select + + + + + + + + + + 08 + + + + MCP Max SpamAssassin Size + mcp_max + input + 200k]]> + + 5 + + + Antispam Files + listtopic + + + spam.assassin.prefs.conf + sa_pref_file + + textarea + 80 + 15 + base64 + + + spam.lists.conf + rbl_file + + Use this list only when not using postscreen RBL checks(postfix-forwareder package).]]> + textarea + 80 + 15 + base64 + + + bounce.rules + bounce + + textarea + 80 + 15 + base64 + + + max.message.size.rules + max_message_size + + textarea + 80 + 15 + base64 + + + spam.whitelist.rules + spam_whitelist + + textarea + 80 + 15 + base64 + + + + mcp.spam.assassin.prefs.conf + mcp_pref_file + + textarea + 80 + 15 + base64 + + + + + mailscanner_php_install_command(); + + + mailscanner_php_deinstall_command(); + + + mailscanner_validate_input($_POST, &$input_errors); + + + sync_package_mailscanner(); + + diff --git a/config/mailscanner/mailscanner_antivirus.xml b/config/mailscanner/mailscanner_antivirus.xml new file mode 100644 index 00000000..7d3d1d7c --- /dev/null +++ b/config/mailscanner/mailscanner_antivirus.xml @@ -0,0 +1,182 @@ + + + + + + + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + msantivirus + 1.1 + Services: MailScanner + /usr/local/pkg/mailscanner.inc + + + General + /pkg_edit.php?xml=mailscanner.xml&id=0 + + + Attachments + /pkg_edit.php?xml=mailscanner_attachments.xml&id=0 + + + Antivirus + /pkg_edit.php?xml=mailscanner_antivirus.xml&id=0 + + + + Content + /pkg_edit.php?xml=mailscanner_content.xml&id=0 + + + AntiSpam + /pkg_edit.php?xml=mailscanner_antispam.xml&id=0 + + + Alerts + /pkg_edit.php?xml=mailscanner_alerts.xml&id=0 + + + Reporting + /pkg_edit.php?xml=mailscanner_report.xml&id=0 + + + XMLRPC Sync + /pkg_edit.php?xml=mailscanner_sync.xml&id=0 + + + About + /mailscanner_about.php + + + + + Antivirus + listtopic + + + Virus scanner features + features + + + + select + + + + + + + + + + 08 + + + + Virus scanner + virus_scanner + select + + + + + + + + + + + Virus Scanner Timeout + timeout + + Default is 300.]]> + input + 5 + + + Silent Virus + silent_virus + + It is used to list which viruses should be handled differently from other viruses.
+ Mailscanner default options are in ( ).]]> +
+ select + + + + + + + + + 07 + +
+ + Spam-Virus Header + virus_header + + When they are found the following header will be added to your message before it is passed to SpamAssassin, listing all the "spam-viruses" that were found as a comma-separated list.
+ Default is X-%org-name%-MailScanner-SpamVirus-Report:]]>
+ input + 30 +
+ + Custom antivirus options + custom + + textarea + 60 + 15 + base64 + +
+ + mailscanner_php_install_command(); + + + mailscanner_php_deinstall_command(); + + + mailscanner_validate_input($_POST, &$input_errors); + + + sync_package_mailscanner(); + +
diff --git a/config/mailscanner/mailscanner_attachments.xml b/config/mailscanner/mailscanner_attachments.xml new file mode 100644 index 00000000..31bf98f4 --- /dev/null +++ b/config/mailscanner/mailscanner_attachments.xml @@ -0,0 +1,212 @@ + + + + + + + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + msattachments + 1.1 + Services: MailScanner + /usr/local/pkg/mailscanner.inc + + + General + /pkg_edit.php?xml=mailscanner.xml&id=0 + + + Attachments + /pkg_edit.php?xml=mailscanner_attachments.xml&id=0 + + + + Antivirus + /pkg_edit.php?xml=mailscanner_antivirus.xml&id=0 + + + Content + /pkg_edit.php?xml=mailscanner_content.xml&id=0 + + + AntiSpam + /pkg_edit.php?xml=mailscanner_antispam.xml&id=0 + + + Alerts + /pkg_edit.php?xml=mailscanner_alerts.xml&id=0 + + + Reporting + /pkg_edit.php?xml=mailscanner_report.xml&id=0 + + + XMLRPC Sync + /pkg_edit.php?xml=mailscanner_sync.xml&id=0 + + + About + /mailscanner_about.php + + + + + Attachments + listtopic + + + Attachments features + features + + + + select + + + + + + + + 06 + + + + TNEF Contents + tnef_contents + select + + + + + + + If you set this to "add" or "replace" then recipients of messages sent in "Outlook Rich Text Format" (TNEF) will be able to read the attachments if they are not using Microsoft Outlook.]]> + + + + Maximum Attachment size + max_sizes + + If this is set less than zero, then no size checking is done.
+ You might want to set this quite small for large mailing lists so they don't get deluged by large attachments.
+ Default is -1.]]>
+ input + 10 +
+ + Maximum Archive depth + archive_depth + + Default is 8.]]> + input + 10 + + + + Attachment Zip filename + attachment_filename + + Default is MessageAttachments.zip]]> + input + 20 + + + Attachment extension exclude + attachment_extension_exclude + + Set this value to 0 to disable this feature.]]> + input + 40 + + + Unzip Maximum files per Archive + attachment_max_per_archive + + Setting this value to 0 will disable this feature completely.
+ Default is 0.]]>
+ input + 5 +
+ + Unzip Maximum file size + attachment_max + + Setting this value to 0 will disable this feature completely.
+ Default is 50k.]]>
+ input + 5 +
+ + Fileset rules + listtopic + + + filename.rules.conf + filename_rules + Leave this field blank to load sample file.]]> + textarea + 85 + 15 + base64 + + + filetypes.rules.conf + filetype_rules + Leave this field blank to load sample file.]]> + textarea + 85 + 15 + base64 + + +
+ + mailscanner_php_install_command(); + + + mailscanner_php_deinstall_command(); + + + mailscanner_validate_input($_POST, &$input_errors); + + + sync_package_mailscanner(); + +
diff --git a/config/mailscanner/mailscanner_content.xml b/config/mailscanner/mailscanner_content.xml new file mode 100644 index 00000000..d36bf8b3 --- /dev/null +++ b/config/mailscanner/mailscanner_content.xml @@ -0,0 +1,228 @@ + + + + + + + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + mscontent + 1.1 + Services: MailScanner + /usr/local/pkg/mailscanner.inc + + + General + /pkg_edit.php?xml=mailscanner.xml&id=0 + + + Attachments + /pkg_edit.php?xml=mailscanner_attachments.xml&id=0 + + + Antivirus + /pkg_edit.php?xml=mailscanner_antivirus.xml&id=0 + + + Content + /pkg_edit.php?xml=mailscanner_content.xml&id=0 + + + + AntiSpam + /pkg_edit.php?xml=mailscanner_antispam.xml&id=0 + + + Alerts + /pkg_edit.php?xml=mailscanner_alerts.xml&id=0 + + + Reporting + /pkg_edit.php?xml=mailscanner_report.xml&id=0 + + + XMLRPC Sync + /pkg_edit.php?xml=mailscanner_sync.xml&id=0 + + + About + /mailscanner_about.php + + + + + Removing/Logging dangerous or potentially offensive content + listtopic + + + Contents + checks + + It is used to list which viruses should be handled differently from other viruses.
+ Mailscanner default options are in ( ).]]> +
+ select + + + + + + + + + + + + + + 10 + +
+ + Allow IFrame Tags + iframe_tags + select + + + + + + + This is not a good idea as it allows various Microsoft Outlook security vulnerabilities to remain unprotected, but if you have a load of mailing lists sending them, +# then you will want to allow them to keep your users happy.]]> + + + + Allow Form Tags + form_tags + select + + + + + + + This is a bad idea as these are used as scams to pursuade people to part with credit card information and other personal data.]]> + + + + Allow Script Tags + script_tags + select + + + + + + + This is a bad idea as these are used to exploit vulnerabilities in email applications and web browsers.]]> + + + + Allow web bugs + web_bugs + select + + + + + + + This is a bad idea as these are used as 'web bugs' to find out if a message has been read.
+ It is not dangerous, it is just used to make you give away information.]]> +
+
+ + Allow Object Codebase Tags + codebase_tags + select + + + + + + 'Object Codebase=...' or 'Object Data=...' tags in email messages?
+ This is a bad idea as it leaves you unprotected against various Microsoft-specific security vulnerabilities.
+ But if your users demandit, you can do it.]]> +
+
+ + Phishing files + listtopic + + + phishing.safe.sites.conf + phishing_safe + If you leave this field blank, it will load sample file.]]> + textarea + 70 + 15 + base64 + + + phishing.bad.sites.conf + phishing_bad + If you leave this field blank, it will load sample file.]]> + textarea + 70 + 15 + base64 + + + country.domains.conf + country_domains + If you leave this field blank, it will load sample file.]]> + textarea + 70 + 15 + base64 + +
+ + mailscanner_php_install_command(); + + + mailscanner_php_deinstall_command(); + + + mailscanner_validate_input($_POST, &$input_errors); + + + sync_package_mailscanner(); + +
diff --git a/config/mailscanner/mailscanner_report.xml b/config/mailscanner/mailscanner_report.xml new file mode 100644 index 00000000..65f182fc --- /dev/null +++ b/config/mailscanner/mailscanner_report.xml @@ -0,0 +1,413 @@ + + + + + + + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + >msreport + 1.1 + Services: MailScanner + /usr/local/pkg/mailscanner.inc + + + General + /pkg_edit.php?xml=mailscanner.xml&id=0 + + + Attachments + /pkg_edit.php?xml=mailscanner_attachments.xml&id=0 + + + Antivirus + /pkg_edit.php?xml=mailscanner_antivirus.xml&id=0 + + + Content + /pkg_edit.php?xml=mailscanner_content.xml&id=0 + + + AntiSpam + /pkg_edit.php?xml=mailscanner_antispam.xml&id=0 + + + Alerts + /pkg_edit.php?xml=mailscanner_alerts.xml&id=0 + + + Reporting + /pkg_edit.php?xml=mailscanner_report.xml&id=0 + + + + XMLRPC Sync + /pkg_edit.php?xml=mailscanner_sync.xml&id=0 + + + About + /mailscanner_about.php + + + + + Reports and Responses + listtopic + + + Reports + features + + + + select + + + + + + + + + + + + 09 + + + + Notifications to Sender + listtopic + + + + Notificatios + notification + + + + select + + + + + + + + 06 + + + + Notices to System Administrators + listtopic + + + System Notificatios + system + + + + select + + + + + + 04 + + + + Notice Signature + notice_signature + + To insert a line-break in there, use the sequence "\n".ssed to SpamAssassin, listing all the "spam-viruses" that were found as a comma-separated list.
+ Default is -- \nMailScanner\nEmail Virus Scanner\nwww.mailscanner.info]]>
+ input + 30 +
+ + Notice from + notice_from + part of the email address is set to the "Local Postmaster" setting.
+ Default is MailScanner]]>
+ input + 20 +
+ + Notice to + notice_to + + Default is Postmaster]]> + input + 20 + + + Message Reports + listtopic + + + Language + language + + + + select + + + + + + + + + + + + + + + + + + + + Deleted Bad Content + deletedbadcontent + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Deleted Bad Filename + deletedbadfilename + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Deleted Virus + deletedvirus + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Deleted Size + deletedsize + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Stored Bad Content + storedbadcontent + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Stored Bad Filename + storedbadfilename + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Stored Virus + storedvirus + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Disinfected Report + disinfected + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Stored Size + storedsize + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Sender content + sendercontent + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Sender Error + sendererror + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Sender Bad Filename + senderbadfilename + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Sender Virus Report + sendervirus + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Sender Size Report + sendersize + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Sender Spam report + senderspam + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Sender SPam RBL report + senderrbl + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Sender Spam SA report + sendersa + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Sender Spam MCP report + sendermcp + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + + Recipients Spam report + recipientspam + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Recipients MCP report + recipientmcp + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + Rejection Report + rejection + Leave this field blank to load sample file.]]> + textarea + 90 + 15 + base64 + + + +
+ + mailscanner_php_install_command(); + + + mailscanner_php_deinstall_command(); + + + mailscanner_validate_input($_POST, &$input_errors); + + + sync_package_mailscanner(); + +
diff --git a/config/mailscanner/mailscanner_sync.xml b/config/mailscanner/mailscanner_sync.xml new file mode 100644 index 00000000..8dc51e42 --- /dev/null +++ b/config/mailscanner/mailscanner_sync.xml @@ -0,0 +1,132 @@ + + + + + + + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + mailscanner_sync + 1.0 + Services: MailScanner + /usr/local/pkg/mailscanner.inc + + + General + /pkg_edit.php?xml=mailscanner.xml&id=0 + + + Attachments + /pkg_edit.php?xml=mailscanner_attachments.xml&id=0 + + + Antivirus + /pkg_edit.php?xml=mailscanner_antivirus.xml&id=0 + + + Content + /pkg_edit.php?xml=mailscanner_content.xml&id=0 + + + AntiSpam + /pkg_edit.php?xml=mailscanner_antispam.xml&id=0 + + + Alerts + /pkg_edit.php?xml=mailscanner_alerts.xml&id=0 + + + Reporting + /pkg_edit.php?xml=mailscanner_report.xml&id=0 + + + XMLRPC Sync + /pkg_edit.php?xml=mailscanner_sync.xml&id=0 + + + + About + /mailscanner_about.php + + + + + mailscanner XMLRPC Sync + listtopic + + + Automatically sync mailscanner configuration changes + synconchanges + pfSense will automatically sync changes to the hosts defined below. + checkbox + + + Remote Server + none + rowhelper + + + IP Address + ipaddress + IP Address of remote server + input + 20 + + + Password + password + Password for remote server. + password + 20 + + + + + + mailscanner_php_install_command(); + + + mailscanner_php_deinstall_command(); + + + mailscanner_validate_input($_POST, &$input_errors); + + + sync_package_mailscanner(); + + -- cgit v1.2.3