<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="http://www.booservers.com/styles/rss.css" type="text/css"?>
<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns="http://my.netscape.com/rdf/simple/0.9/"
>

 <channel>
  <title>Booservers - All about dedicated servers</title>
  <link>http://www.booservers.com</link>
  <description></description>
 </channel>
    <item>
   <title>Install Mailscanner MRTG </title>
   <description>&lt;p&gt;This will install Mailscanner MRTG on your system. I have tested it on Ensim 3.1.10 and Ensim 3.5.17. Others have also done this on CPanel, but make sure you make the change noted... &lt;/p&gt;&lt;p&gt;Regular, I am not responsible for your box/you are doing this at YOUR OWN RISK... It should not screw anything up, but you are ultimately responsible if it does. I will help out as much as I can, but I am not a genius.&lt;/p&gt;&lt;p&gt;PREREQUISITES&lt;br /&gt;1) MRTG *MUST* be installed (HOW-TO)&lt;br /&gt;2) Mailscanner *MUST* be installed (I use gpans MS/SA/CM HOW-TO, but there is a MS Only HOW-TO too)&lt;/p&gt;&lt;p&gt;INSTRUCTIONS&lt;br /&gt;cd ~&lt;br /&gt;wget &lt;a href=&quot;http://umn.dl.sourceforge.net/sourc...rtg-0.05.tar.gz&quot;&gt;http://umn.dl.sourceforge.net/sourc...rtg-0.05.tar.gz&lt;/a&gt;&lt;br /&gt;tar -xzvf mailscanner-mrtg-0.05.tar.gz&lt;br /&gt;cd mailscanner-mrtg-0.05&lt;br /&gt;cp mailscanner-mrtg.conf /etc/MailScanner/&lt;br /&gt;cp mailscanner-mrtg.cfg /etc/mrtg/&lt;br /&gt;cp mailscanner-mrtg /usr/sbin/&lt;br /&gt;cp mailscanner-mrtg.include /etc/httpd/conf/&lt;br /&gt;cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bk&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;For CPanel Users&lt;br /&gt;mkdir /usr/local/apache/htdocs/mailscanner-mrtg&lt;br /&gt;cp web/* /usr/local/apache/htdocs/mailscanner-mrtg/&lt;br /&gt;pico -w /etc/MailScanner/mailscanner-mrtg.conf&lt;br /&gt;Find the two lines that start with:&lt;br /&gt;Incoming Queue Dir =&lt;br /&gt;Outgoing Queue Dir =&lt;br /&gt;and change it to look like this:&lt;br /&gt;Incoming Queue Dir = /var/spool/exim_incoming/input/&lt;br /&gt;Outgoing Queue Dir = /var/spool/exim/input/&lt;/p&gt;&lt;p&gt;&lt;br /&gt;For Ensim/Red Hat/Fedora Users&lt;br /&gt;mkdir /var/www/html/mailscanner-mrtg&lt;br /&gt;cp web/* /var/www/html/mailscanner-mrtg/&lt;/p&gt;&lt;p /&gt;&lt;p&gt;Continued... FOR ALL USERS&lt;br /&gt;pico -w /etc/httpd/conf/httpd.conf&lt;br /&gt;Add this line to the very bottom&lt;br /&gt;Include /etc/httpd/conf/mailscanner-mrtg.include&lt;br /&gt;Ctrl + X to quit, y to save&lt;/p&gt;&lt;p&gt;Run this command 3 times. Ignore the errors and wait, it takes a few seconds each time.&lt;br /&gt;mrtg /etc/mrtg/mailscanner-mrtg.cfg&lt;br /&gt;-- IGNORE THE ERRORS (They are normal) --&lt;/p&gt;&lt;p&gt;service httpd restart&lt;br /&gt;If this fails, check that you copied the file mailscanner-mrtg.include to the /etc/httpd/conf folder. Also recheck that you added the Include line above. If all else fails comment out the Include line and post your errors. DO NOT CONTINUE until httpd restarts successfully.&lt;/p&gt;&lt;p&gt;pico -w /etc/crontab&lt;br /&gt;Add this line to the bottom of the file&lt;br /&gt;0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mailscanner-mrtg.cfg &amp;gt;&amp;gt; /dev/null&lt;br /&gt;Ctrl + X to quit, y to save&lt;/p&gt;&lt;p&gt;Go to &lt;a href=&quot;http://hostname.domain.com/mailscanner-mrtg&quot;&gt;http://hostname.domain.com/mailscanner-mrtg&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/42_install_mailscanner_mrtg_.html</link>
      <pubDate>Thu, 15 Dec 2005 21:55:06 +0000</pubDate>   
  </item>
    <item>
   <title>Email with attachments from command line</title>
   <description>&lt;p&gt;Sending emails from command line&lt;br /&gt;I’ll describe possible ways to send emails from the command line. Of course there are much nicer ways to do it, but you may be in the situation (such as the one that drove me to do a deeper research and come out with this solution) and will need an easy and fast way to send mails from the prompt. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;Simple text emails:&lt;br /&gt;You can send simple emails by using the already installed sendmail program with the following command at the prompt:&lt;/p&gt;&lt;p&gt;echo &amp;quot;Simple, small body Text goes here&amp;quot; | mail -s &amp;quot;The Subject goes here&amp;quot; &lt;a href=&quot;mailto:user@domain.com&quot;&gt;user@domain.com&lt;/a&gt; &lt;/p&gt;&lt;p&gt;If you have already typed a message in a text file, then import the text into the body of the email you are sending by using command:&lt;/p&gt;&lt;p&gt;mail -s &amp;quot;The Subject goes here&amp;quot; &lt;a href=&quot;mailto:user@domain.com&quot;&gt;user@domain.com&lt;/a&gt; &amp;lt; text_file &lt;/p&gt;&lt;p&gt;Disadvantage: the email will be sent using header From: &lt;a href=&quot;mailto:root@host.domain.com&quot;&gt;root@host.domain.com&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;Advanced emails with attachments:&lt;br /&gt;If you need to send emails containing attachments, then I’ll recommend you to use an additional program not included on the standard Linux distributions, since there it were no way I could find a way to use the build in tools to do it.&lt;br /&gt;This is a mature software, very well documented and with constant development to keep up to date and using most possible features we’ll need.&lt;br /&gt;Program: Email&lt;br /&gt;Version: 2.2.2&lt;br /&gt;WebSite: &lt;a href=&quot;http://email.cleancode.org/&quot;&gt;http://email.cleancode.org/&lt;/a&gt; &lt;/p&gt;&lt;p&gt;As root:&lt;br /&gt;Create a temp folder to download the source:&lt;br /&gt;mkdir email &lt;br /&gt;cd email &lt;br /&gt;wget &lt;a href=&quot;http://email.cleancode.org/download/email-2.2.2.tar.gz&quot;&gt;http://email.cleancode.org/download/email-2.2.2.tar.gz&lt;/a&gt; &lt;br /&gt;tar –zxvf email-2.2.2.tar.gz &lt;br /&gt;cd email-2.2.2 &lt;/p&gt;&lt;p&gt;Run the following commands to have it installed:&lt;br /&gt;./configure &lt;/p&gt;&lt;p&gt;Create the installation file:&lt;br /&gt;make &lt;/p&gt;&lt;p&gt;Run the installation:&lt;br /&gt;su -c &#039;make install&#039; &lt;/p&gt;&lt;p&gt;At the end you’ll get the program installed with:&lt;br /&gt;Binary directory: /usr/local/bin&lt;br /&gt;Email Files /usr/local/etc/email&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Edit the configuration file:&lt;br /&gt;You can select to send email by SMTP or by sendmail.&lt;br /&gt;I personally use sendmail for easiness.&lt;br /&gt;pico -w /usr/local/etc/email/email.conf &lt;/p&gt;&lt;p&gt;&lt;br /&gt;For sendmail:&lt;br /&gt;Comment out lines: (add # at the beginning of the line)&lt;br /&gt;#SMTP_SERVER = &#039;127.0.0.1&#039;&lt;br /&gt;#SMTP_PORT = &#039;25&#039;&lt;/p&gt;&lt;p&gt;Uncomment line: (remove # from the beginning of the line)&lt;br /&gt;SENDMAIL_BIN = &#039;/usr/lib/sendmail -t -i&#039;&lt;/p&gt;&lt;p&gt;Set sender personal info with something like:&lt;br /&gt;MY_NAME = &#039;System Administrator&#039;&lt;br /&gt;MY_EMAIL = &lt;a href=&quot;mailto:&#039;info@domain.com&#039;&quot;&gt;&#039;info@domain.com&#039;&lt;/a&gt;&lt;br /&gt;REPLY_TO = &lt;a href=&quot;mailto:&#039;info@domain.com&#039;&quot;&gt;&#039;info@domain.com&#039;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Exit and save&lt;br /&gt;Ctrl x &lt;br /&gt;y &lt;/p&gt;&lt;p&gt;&lt;br /&gt;For SMTP:&lt;br /&gt;You got the idea, just fill out SMTP variables with proper info.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Edit the signature file:&lt;br /&gt;pico -w /usr/local/etc/email/email.sig &lt;/p&gt;&lt;p&gt;Set it as appropriate with relevant info.&lt;br /&gt;I’d recommend removing line: (to keep system privacy)&lt;br /&gt;On System: %h&lt;/p&gt;&lt;p&gt;Exit and save&lt;br /&gt;Ctrl x &lt;br /&gt;y &lt;/p&gt;&lt;p&gt;System installed and configured.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Some usage example:&lt;br /&gt;Let say you are using Mailsacanner with ClamAV, and a valid attachment was removed, then a customer contacted you with the email MailScanner sent him, including the file name and info and the path were the attachment was quarantined:&lt;br /&gt;It’ll read something like:&lt;/p&gt;&lt;p&gt;...&lt;br /&gt;The original e-mail attachment &amp;quot;file_name.zip&amp;quot;&lt;br /&gt;… …&lt;br /&gt;Note to Help Desk: Look on the E-MailSystem MailScanner in /var/spool/MailScanner/quarantine/20040730 (message i6UKnWp02396)&lt;br /&gt;…&lt;/p&gt;&lt;p&gt;With that info will do:&lt;br /&gt;cd /var/spool/MailScanner/quarantine/20040730/i6UKnWp02396 &lt;/p&gt;&lt;p&gt;Verify the mentioned file exists:&lt;br /&gt;ls &lt;br /&gt;decompressed_file_name.pdf file_name.zip&lt;/p&gt;&lt;p&gt;Execute the email command to send the attachment:&lt;br /&gt;email -s &amp;quot;Attachment&amp;quot; -a file_name.zip &lt;a href=&quot;mailto:user@domain.com&quot;&gt;user@domain.com&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Info: -s = Subject -a = Attachment&lt;/p&gt;&lt;p&gt;For the email body, the system default editor will open up, usually vi&lt;br /&gt;Type in whatever message you want to tell:&lt;br /&gt;To start typing:&lt;br /&gt;Shift a&lt;/p&gt;&lt;p&gt;Dear customer:&lt;br /&gt;Find attached the removed file.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;To finish typing press:&lt;br /&gt;[ESC] &lt;br /&gt;To quit vi type:&lt;br /&gt;:exit &lt;/p&gt;&lt;p&gt;As soon as vi exists, the email will be sent, and will give you a nice progress bar.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Read the README file for more usage options and tweaks.&lt;br /&gt;pico /path/to/download/folder/email-2.2.2/README &lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.integrese.com/&quot;&gt;http://www.integrese.com/&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/41_email_with_attachments_from_command_line.html</link>
      <pubDate>Thu, 15 Dec 2005 21:53:40 +0000</pubDate>   
  </item>
    <item>
   <title>Easy Mailscanner + Clam Antivirus + SpamAssassin *Updated 5/9/2003*</title>
   <description>&lt;p&gt;We have put together the following package which will install Mailscanner, Clam Antivirus and SpamAssassin on your Ensim 3.1, or Ensim Pro 3.5 server.&lt;/p&gt;&lt;p&gt;This package installs:&lt;br /&gt;Mailscanner 4.22&lt;br /&gt;Clam Antivirus 0.60 &lt;br /&gt;SpamAssassin 2.55&lt;/p&gt;&lt;p&gt;&lt;br /&gt;We have tested it on upgrades from 4.11 + Mailscanner versions without issues. If you have an older Mailscanner install, we would recommend uninstalling it first and deleting the /etc/MailScanner folder before running this package.&lt;/p&gt;&lt;p&gt;This package does not use f-prot as you need a commercial license for use in a business environment.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;Installation:&lt;/p&gt;&lt;p&gt;1) Make sure you are su root (or -)&lt;/p&gt;&lt;p&gt;2) Download the appropriate installer to a folder on your server, then install it&lt;/p&gt;&lt;p&gt;Ensim Pro 3.5.x&lt;/p&gt;&lt;p&gt;wget &lt;a href=&quot;http://download.cheetaweb.com/mails...it-3.5.0.tar.gz&quot;&gt;http://download.cheetaweb.com/mails...it-3.5.0.tar.gz&lt;/a&gt;&lt;br /&gt;tar -zxvf mailscanner-kit-3.5.0.tar.gz&lt;br /&gt;cd mailscanner-kit-3.5.0&lt;br /&gt;./mailscanner-clamav-spamassassin-3.5.0.sh&lt;/p&gt;&lt;p&gt;Ensim 3.1.x&lt;br /&gt;wget &lt;a href=&quot;http://download.cheetaweb.com/mails...t-0.2.72.tar.gz&quot;&gt;http://download.cheetaweb.com/mails...t-0.2.72.tar.gz&lt;/a&gt;&lt;br /&gt;tar -zxvf mailscanner-kit-0.2.72.tar.gz&lt;br /&gt;cd mailscanner-kit-0.2&lt;br /&gt;./mailscanner-ensim-0.2.sh&lt;/p&gt;&lt;p&gt;3) You will need to configure MailScanner as described&lt;/p&gt;&lt;p&gt;service sendmail stop&lt;br /&gt;chkconfig --del sendmail&lt;br /&gt;chkconfig --level 2345 MailScanner on&lt;br /&gt;service MailScanner start&lt;/p&gt;&lt;p&gt;*NOTE 1* For Ensim 3.1 installs, this package requires that you be running a perl 5.6.0 environment.&lt;/p&gt;&lt;p&gt;*NOTE 2 * If your /home partition is mounted separately from /, you will need to change the the Incoming Queue to the following after installation, or Mailscanner will not run: &lt;/p&gt;&lt;p&gt;Incoming Queue Dir = /var/spool/mqueue.in&lt;/p&gt;&lt;p&gt;You will also need to edit /etc/cron.d/mqueuecron to run more frequently, i.e. &lt;/p&gt;&lt;p&gt;*/10 * * * * root /usr/lib/opcenter/virtualhosting/MailQueueCleaner&lt;/p&gt;&lt;p&gt;*NOTE 3* SpamAssassin is configured to only tag emails by default. You will need to reconfigure the delivery preferences in MailScanner.conf if you wish it to delete, bounce or otherwise remove the messages that have been tagged as spam.&lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.cheetaweb.com/&quot;&gt;http://www.cheetaweb.com/&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/40_easy_mailscanner__clam_antivirus__spamassassin_updated_592003.html</link>
      <pubDate>Thu, 15 Dec 2005 21:52:15 +0000</pubDate>   
  </item>
  </rdf:RDF>
