spamd-whitelist 0.1.0 SpamD Whitelist
Services
spamd.xml
SpamD Settings /pkg.php?xml=spamd.xml SpamD Whitelist /pkg.php?xml=spamd_whitelist.xml ['installedpackages']['spamdwhitelist']['config'] Exempted IP ip Description description Exempted IP ip Enter the IP to exempt from blacklisting input Description description Enter the description for this item input function sync_package() { global $config; conf_mount_rw(); config_lock(); $fd = fopen("/var/mail/whitelist.txt","w"); if($config['installedpackages']['spamdwhitelist']['config'] != "") foreach($config['installedpackages']['spamdwhitelist']['config'] as $spamd) { fwrite($fd, $spamd['ip'] . "\n"); } fclose($fd); system("/usr/local/etc/rc.d/spamd 2>/dev/null"); conf_mount_ro(); config_unlock(); } sync_package(); sync_package();