diff options
-rw-r--r-- | packages/spamd.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/spamd.xml b/packages/spamd.xml index 1438d7bd..a6b03b14 100644 --- a/packages/spamd.xml +++ b/packages/spamd.xml @@ -90,10 +90,12 @@ foreach($config['installedpackages']['spamd']['config'] as $spamd) { fwrite($fd, ":" . $spamd['provider_name']); } - fwrite($fd, "whitelist:\\ \n"); + fwrite($fd, "# begin of whitelist\n"); + fwrite($fd, ":whitelist:\\ \n"); fwrite($fd, ":white:\\ \n"); fwrite($fd, ":file=/var/mail/whitelist.txt\n\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, $spamd['provider_name'] . ":\\ \n"); fwrite($fd, ":" . $spamd['provider_method'] . ":\\ \n"); @@ -101,7 +103,7 @@ fwrite($fd, ":" . $spamd['provider_method'] . ":\\ \n"); fwrite($fd, ":file=" . $spamd['provider_url'] . ":\n\n"); } - fwrite($fd, ":\n\n"); + fwrite($fd, ":\n"); fclose($fd); $fd = fopen("/var/mail/whitelist.txt","w"); foreach($config['installedpackages']['spamd-whitelist']['config'] as $spamd) { |