diff options
-rw-r--r-- | packages/spamd.xml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/packages/spamd.xml b/packages/spamd.xml index 2b831c82..f4a3a355 100644 --- a/packages/spamd.xml +++ b/packages/spamd.xml @@ -103,24 +103,23 @@ /* all header */ fwrite($fd, "# this file was automatically generated by the pfSense\n"); fwrite($fd, "# package management system\n\n"); - fwrite($fd, "all:whitelist:\\\n\t"); + fwrite($fd, "all:\\\n\t:whitelist"); foreach($config['installedpackages']['spamd']['config'] as $spamd) { - fwrite($fd, ":" . rtrim($spamd['provider_name'])); + fwrite($fd, ":" . rtrim($spamd['providername'])); } - fwrite($fd, "\n\n# begin of whitelist\n"); + fwrite($fd, ":\n\n# begin of whitelist\n"); fwrite($fd, ":whitelist:\\ \n"); fwrite($fd, ":white:\\ \n"); - fwrite($fd, ":file=/var/mail/whitelist.txt\n\n"); + fwrite($fd, ":file=/var/mail/whitelist.txt\n"); /* loop through each item and write out its configuration */ fwrite($fd, "\n# begin of user created entries\n"); foreach($config['installedpackages']['spamd']['config'] as $spamd) { - fwrite($fd, rtrim($spamd['provider_name']) . ":\\ \n"); - fwrite($fd, ":" . rtrim($spamd['provider_method']) . ":\\ \n"); - fwrite($fd, ":msg=\"" . rtrim($spamd['reject_message']) . "\":\\ \n"); - fwrite($fd, ":" . rtrim($spamd['provider_method']) . ":\\ \n"); - fwrite($fd, ":file=" . rtrim($spamd['provider_url']) . ":\n\n"); + fwrite($fd, rtrim($spamd['providername']) . ":\\ \n"); + fwrite($fd, ":" . rtrim($spamd['providermethod']) . ":\\ \n"); + fwrite($fd, ":msg=\"" . rtrim($spamd['rejectmessage']) . "\":\\ \n"); + fwrite($fd, ":" . rtrim($spamd['providermethod']) . ":\\ \n"); + fwrite($fd, ":file=" . rtrim($spamd['providerurl']) . ":\n\n"); } - fwrite($fd, ":\n"); fclose($fd); $fd = fopen("/var/mail/whitelist.txt","w"); if($config['installedpackages']['spamd-whitelist']['config'] != "") |