Changes

From SME Server
Jump to navigationJump to search
m
no edit summary
Line 64: Line 64:  
First test the email portion to make sure it works. With all the spam filters etc out there it may or may not be caught by them. Put the following into a command prompt, (add your email.) This will confirm that the main part of the script works. You should receive an email from your server.
 
First test the email portion to make sure it works. With all the spam filters etc out there it may or may not be caught by them. Put the following into a command prompt, (add your email.) This will confirm that the main part of the script works. You should receive an email from your server.
   −
  echo "See /var/log/blacklists_dl.log on" `uname -n` |/bin/mail -s'Blacklist DL Error' email@someware.com
+
  echo "See /var/log/blacklists_dl.log on" `uname -n` |/bin/mail -s'Blacklist DL Error' email@somewhere.com
    
If the above email test works it confirms that your email can be send. Now here is the script. Follow the instructions above for setting up the blacklists accept use this script instead.
 
If the above email test works it confirms that your email can be send. Now here is the script. Follow the instructions above for setting up the blacklists accept use this script instead.
Line 77: Line 77:  
  #If an error occurs during download then an email will be sent via the mail program and then will exit.
 
  #If an error occurs during download then an email will be sent via the mail program and then will exit.
 
  [ $? -gt 0 ] && echo "See /var/log/blacklists_dl.log on" \
 
  [ $? -gt 0 ] && echo "See /var/log/blacklists_dl.log on" \
  `uname -n` |/bin/mail -s'Blacklist DL Error' colin@scottmission.com && exit 1
+
  `uname -n` |/bin/mail -s'Blacklist DL Error' email@somewhere.com&& exit 1
 
  tar -zxf blacklists.tar.gz
 
  tar -zxf blacklists.tar.gz
 
  chown -R root.root blacklists
 
  chown -R root.root blacklists
50

edits

Navigation menu