Changes

From SME Server
Jump to navigationJump to search
1,162 bytes added ,  13:28, 22 September 2008
no edit summary
Line 95: Line 95:  
  /usr/local/unjunkmgr/spamreminder.pl
 
  /usr/local/unjunkmgr/spamreminder.pl
 
All the summary emails will now be sent to “admin”.
 
All the summary emails will now be sent to “admin”.
 +
 +
===How do I change when the reminder email is sent out?===
 +
This does right now require a manual change. Open in you preferred editor:
 +
 +
/etc/e-smith/templates-custom/etc/crontab/unjunk
 +
 +
Add extra lines to have reminder sent out more often or change the hour/day in the last line with the $OUT - Change the "5" to "1" for Monday rather than Friday.
 +
 +
{
 +
    use esmith::ConfigDB;
 +
 +
        my $dbh = esmith::ConfigDB->open() || die "Unable to open configuration dbase.";
 +
        my %sa_conf = $dbh->get('unjunkmgr')->props;
 +
 +
        while (my ($parameter,$value) = each(%sa_conf)) {
 +
          if ($parameter eq 'enabled') {
 +
          $enabled = $value;
 +
          }
 +
        }
 +
 +
        $OUT = "";
 +
        if (uc($enabled) eq 'YES') {
 +
        $OUT .= "# Schedule the UnJunk every 5 minutes\n";
 +
        $OUT .= "0-59/5 * * * * root /usr/local/unjunkmgr/spamchanger.pl -file=/tmp/unjunk.file\n";
 +
        $OUT .= "\n";
 +
        $OUT .= "# Schedule the weekly Blocked Junk Summary to arrive at 1PM Friday\n";
 +
        $OUT .= "0 13 * * 5 root /usr/local/unjunkmgr/spamreminder.pl\n"; # Friday
 +
        }
 +
}
 +
 +
Then expand templates
 +
 +
expand-template /etc/crontab
 +
    
===How do I report a problem or a suggestion?===
 
===How do I report a problem or a suggestion?===
177

edits

Navigation menu