aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-31 11:55:11 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-31 11:55:11 -0300
commit403c86afec3b7745a80e94437ba0187847a792dd (patch)
treed0768a929a48ced03d83a1c83edb9734c2af4118 /config
parent3ce4412e3a7e9ffc1e247d728c803d704d9d7afc (diff)
downloadpfsense-packages-403c86afec3b7745a80e94437ba0187847a792dd.tar.gz
pfsense-packages-403c86afec3b7745a80e94437ba0187847a792dd.tar.bz2
pfsense-packages-403c86afec3b7745a80e94437ba0187847a792dd.zip
mailscanner - include incoming/Locks folder permission check
Diffstat (limited to 'config')
-rw-r--r--config/mailscanner/mailscanner.inc13
1 files changed, 6 insertions, 7 deletions
diff --git a/config/mailscanner/mailscanner.inc b/config/mailscanner/mailscanner.inc
index 6a286e5c..3ff4cd40 100644
--- a/config/mailscanner/mailscanner.inc
+++ b/config/mailscanner/mailscanner.inc
@@ -376,13 +376,12 @@ Country Sub-Domains List = %etc-dir%/country.domains.conf
include("mailscanner.conf.template");
#write files
conf_mount_rw();
- 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');
+ $msc_dirs=array("incoming", "incoming/Locks", "quarantine");
+ foreach ($msc_dirs as $msc_dir){
+ if (!is_dir("/var/spool/MailScanner/{$msc_dir}")){
+ mkdir("/var/spool/MailScanner/{$msc_dir}", 0755,true);
+ chown ("/var/spool/MailScanner/{$msc_dir}",'postfix');
+ }
}
chown ('/var/spool/postfix','postfix');