<?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>Find which site is sending spam email from apache@yourdomain, How to track spam sent out from your server through php/apache</title>
   <description>When you have a lot of clients (Domains) on your server, it&#039;s almost impossible to track all emails sent from your server through php scripts.&lt;br /&gt;&lt;br /&gt;So i found a solution and i going to share with everyone.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Requeriments&lt;/b&gt;&lt;br /&gt;Linux&lt;br /&gt;Ensim&lt;br /&gt;root access&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;1. Go to virtualhost&#039;s apache conf in my server is /etc/httpd/conf/virtual&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;cd /etc/httpd/conf/virtual&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;2. Now you can list all sites in your server&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;ls&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;3. Now you have to edit each site&#039;s config file. [use your favorite file editor]&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;nano site1 &amp;lt;-- change filename for each site name listed on that directory&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;4. Search for ifModule mod_php (Mine looks like this &amp;lt;IfModule mod_php4.c&amp;gt;)&lt;br /&gt;&lt;br /&gt;5. Inside that tag put the next code&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;php_admin_value sendmail_path  &amp;quot;/usr/sbin/sendmail -t -i -f emailcop@sitename&amp;quot; &amp;lt;-- replace sitename with the domain name of that client.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;6. now search in the same file for ifmodule sapi_apache (Mine looks like this &amp;lt;IfModule sapi_apache2.c&amp;gt;)&lt;br /&gt;&lt;br /&gt;7. Inside that tag put the same code as php tag code&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;php_admin_value sendmail_path  &amp;quot;/usr/sbin/sendmail -t -i -f emailcop@sitename&amp;quot; &amp;lt;-- replace sitename with the domain name of that client.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;8. Save file&lt;br /&gt;&lt;br /&gt;9. Repeat same procedure for each site listed on the directory&lt;br /&gt;&lt;br /&gt;10. Finally restart apache/httpd&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;type: service httpd restart&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now you can look at your /var/log/maillog folder and see which site is sending email through php scritps the line will look something like this: &lt;br /&gt;[ &lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot; style=&quot;auto; WHITE-SPACE: pre; HEIGHT: 200px&quot;&gt;&lt;br /&gt;Jul 4 11:31:00 secure sendmail[7890]: m64FV0HG007890: Authentication-Warning: yourservername: apache set sender to emailcop@domainname using -f&lt;br /&gt;Jul 4 11:31:07 secure sendmail[7890]: m64FV0HG007890: from=emailcop@domainname, size=308, class=0, nrcpts=1, msgid=&amp;lt;200807041531.m64FV0HG007890@yourservername&amp;gt;, relay=apache@localhost&lt;br /&gt;Jul 4 11:31:07 secure sm-acceptingconnections[13146]: m64FV7cp013146: from=&amp;lt;emailcop@domainname&amp;gt;, size=665, class=0, nrcpts=1, msgid=&amp;lt;200807041531.m64FV0HG007890@yourservername&amp;gt;, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]&lt;br /&gt;Jul 4 11:31:07 secure sendmail[7890]: m64FV0HG007890: to=dest@domain-dest, ctladdr=emailcop@domainname (48/48), delay=00:00:07, xdelay=00:00:00, mailer=relay, pri=30308, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m64FV7cp013146 Message accepted for delivery)&lt;/div&gt;&lt;p&gt;]&lt;br /&gt;&lt;br /&gt;Voila!! email identified!! going out through domainanme, if you think is spam you should go to that domain root folder and scan for scripts sending email.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for reading&lt;/p&gt;&lt;p&gt;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=90590&quot;&gt;http://forums.theplanet.com/index.php?showtopic=90590&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/54_find_which_site_is_sending_spam_email_from_apacheyourdomain_how_to_track_spam_sent_out_from_your_server_through_phpapache.html</link>
      <pubDate>Thu, 04 Sep 2008 15:00:35 +0000</pubDate>   
  </item>
    <item>
   <title>4 Primary Areas For Tuning Your Server</title>
   <description>I just thought I would add my two cents in for everyone. I posted an old howto with some sysctl.conf, but I think that was when I was running on my previous server using and older version of redhat. So here&#039;s a fresh howto that is a little more complete. &lt;br /&gt;&lt;br /&gt;These configs are based on my server specs, which is a Dual 2.0GHz Xeon with 2GB of RAM running RedHat Enterprise. Depending on your server&#039;s RAM you might have to reduce some of the settings, which I&#039;ll try make notes with each section.&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;strong&gt;First&lt;/strong&gt;, is the /etc/sysctl.conf file. Most people overlook tweaking these settings, always thinking it is a mysql or apache problem. You can get a tremendous boost in throughput by adjusting these settings. These are the settings I use on my server, and have come about by constantly adjusting and monitoring performance, and this is what works best &lt;i&gt;for me&lt;/i&gt;, your mileage may vary based on server specs and traffic. I suggest finding some guides and reading up about what each seting does before you make changes. (Note: most out there are pretty dated unfortunatly). Also, some people out there like to have tcp_window_scaling, sack, fack, etc, turned off, but I leave them on. I guess it is just a personal preference thing. So don&#039;t complain, but feel free to leave your comments, testing, and results. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;/etc/sysctl.conf&lt;/b&gt; &lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;# Kernel sysctl configuration file for Red Hat Enterprise Linux&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Controls IP packet forwarding&lt;br /&gt;&lt;br /&gt;net.ipv4.ip_forward = 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Controls source route verification&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.default.rp_filter = 1&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.all.rp_filter = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Disables IP source routing&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.default.accept_source_route = 0&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.all.accept_source_route = 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Controls the System Request debugging functionality of the kernel&lt;br /&gt;&lt;br /&gt;kernel.sysrq = 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Controls whether core dumps will append the PID to the core filename.&lt;br /&gt;&lt;br /&gt;# Useful for debugging multi-threaded applications.&lt;br /&gt;&lt;br /&gt;kernel.core_uses_pid = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Increase maximum amount of memory allocated to shm&lt;br /&gt;&lt;br /&gt;# Only uncomment if needed!&lt;br /&gt;&lt;br /&gt;# kernel.shmmax = 67108864&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Disable ICMP Redirect Acceptance&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.default.accept_redirects = 0&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.all.accept_redirects = 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Enable Log Spoofed Packets, Source Routed Packets, Redirect Packets&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.default.log_martians = 1&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.all.log_martians = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Decrease the time default value for tcp_fin_timeout connection&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_fin_timeout = 25&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Decrease the time default value for tcp_keepalive_time connection&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_keepalive_time = 1200&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Turn on the tcp_window_scaling&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_window_scaling = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Turn on the tcp_sack&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_sack = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# tcp_fack should be on because of sack&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_fack = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Turn on the tcp_timestamps&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_timestamps = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Enable TCP SYN Cookie Protection&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_syncookies = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Enable ignoring broadcasts request&lt;br /&gt;&lt;br /&gt;net.ipv4.icmp_echo_ignore_broadcasts = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Enable bad error message Protection&lt;br /&gt;&lt;br /&gt;net.ipv4.icmp_ignore_bogus_error_responses = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Make more local ports available&lt;br /&gt;&lt;br /&gt;# net.ipv4.ip_local_port_range = 1024 65000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Set TCP Re-Ordering value in kernel to &#039;5&#039;&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_reordering = 5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Lower syn retry rates&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_synack_retries = 2&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_syn_retries = 3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Set Max SYN Backlog to &#039;2048&#039;&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_max_syn_backlog = 2048&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Various Settings&lt;br /&gt;&lt;br /&gt;net.core.netdev_max_backlog = 1024&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Increase the maximum number of skb-heads to be cached&lt;br /&gt;&lt;br /&gt;net.core.hot_list_length = 256&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Increase the tcp-time-wait buckets pool size&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_max_tw_buckets = 360000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# This will increase the amount of memory available for socket input/output queues&lt;br /&gt;&lt;br /&gt;net.core.rmem_default = 65535&lt;br /&gt;&lt;br /&gt;net.core.rmem_max = 8388608&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_rmem = 4096 87380 8388608&lt;br /&gt;&lt;br /&gt;net.core.wmem_default = 65535&lt;br /&gt;&lt;br /&gt;net.core.wmem_max = 8388608&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_wmem = 4096 65535 8388608&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_mem = 8388608 8388608 8388608&lt;br /&gt;&lt;br /&gt;net.core.optmem_max = 40960&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After you make the changes to the file, you can make them effective immediately by typing in &lt;b&gt;/sbin/sysctl -p&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Also, you will need to issue &lt;b&gt;/sbin/sysctl -w net.ipv4.route.flush=1&lt;/b&gt; to flush the routing table to make some of these changes happen instantly. &lt;br /&gt;&lt;br /&gt;Here&#039;s some URLs with useful info, benchmarks, etc... (I believe one was posted from someone below) &lt;br /&gt;&lt;a href=&quot;http://www.aarnet.edu.au/engineering/networkdesign/mtu/local.html&quot; target=&quot;_blank&quot;&gt;http://www.aarnet.edu.au/engineering/netwo.../mtu/local.html&lt;/a&gt; &lt;br /&gt;&lt;a href=&quot;http://sverre.home.cern.ch/sverre/TenGBE_whitepaper_04232003.pdf&quot; target=&quot;_blank&quot;&gt;http://sverre.home.cern.ch/sverre/TenGBE_w...er_04232003.pdf&lt;/a&gt; &lt;br /&gt;&lt;a href=&quot;http://www.hep.ucl.ac.uk/~ytl/tcpip/linux/txqueuelen/datatag-tcp/&quot; target=&quot;_blank&quot;&gt;http://www.hep.ucl.ac.uk/~ytl/tcpip/linux/...en/datatag-tcp/&lt;/a&gt; &lt;br /&gt;&lt;a href=&quot;http://www-didc.lbl.gov/TCP-tuning/TCP-tuning.html&quot; target=&quot;_blank&quot;&gt;http://www-didc.lbl.gov/TCP-tuning/TCP-tuning.html&lt;/a&gt; &lt;br /&gt;&lt;a href=&quot;http://ipsysctl-tutorial.frozentux.net/chunkyhtml/index.html&quot; target=&quot;_blank&quot;&gt;http://ipsysctl-tutorial.frozentux.net/chu...html/index.html&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;------------------------------------------- &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Second&lt;/b&gt; is the MySQL /etc/my.cnf settings file. A lot of people just leave this file with its default settings until they notice problems with their server performance. Please note that I&#039;m not including the &lt;i&gt;datadir&lt;/i&gt; or &lt;i&gt;socket&lt;/i&gt; settings since those can vary based on your server setup. Also I&#039;m only including the base &lt;i&gt;[mysqld]&lt;/i&gt; section and not any of the &lt;i&gt;[safe_mysqld], [mysqldump], or [myisamchk]&lt;/i&gt; sections. &lt;br /&gt;&lt;br /&gt;Also, update your MySQL to the latest version, if you are still running 3.x you should be dragged out into the street and beaten with a stick, seriously. Just download the MySQL RPMs from the MySQL website, it takes 30 seconds to upgrade. They usually release a new version every month. Be aware of the difference between 4.0.x and 4.1.x (or higher). &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;[mysqld]&lt;br /&gt;&lt;br /&gt;connect_timeout=15&lt;br /&gt;&lt;br /&gt;interactive_timeout=100&lt;br /&gt;&lt;br /&gt;join_buffer_size=1M&lt;br /&gt;&lt;br /&gt;key_buffer=256M&lt;br /&gt;&lt;br /&gt;max_allowed_packet=16M&lt;br /&gt;&lt;br /&gt;max_connections=500&lt;br /&gt;&lt;br /&gt;max_connect_errors=10&lt;br /&gt;&lt;br /&gt;myisam_sort_buffer_size=64M&lt;br /&gt;&lt;br /&gt;read_buffer_size=2M&lt;br /&gt;&lt;br /&gt;read_rnd_buffer_size=2M&lt;br /&gt;&lt;br /&gt;sort_buffer_size=2M&lt;br /&gt;&lt;br /&gt;table_cache=1024&lt;br /&gt;&lt;br /&gt;thread_cache_size=100&lt;br /&gt;&lt;br /&gt;thread_concurrency=4&lt;br /&gt;&lt;br /&gt;wait_timeout=300&lt;br /&gt;&lt;br /&gt;query_cache_size=128M&lt;br /&gt;&lt;br /&gt;query_cache_limit=1M&lt;br /&gt;&lt;br /&gt;query_cache_type=1&lt;br /&gt;&lt;br /&gt;skip-innodb&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;For people with a single CPU be sure to set &lt;i&gt;thread_concurrency&lt;/i&gt; to 2 (4 is for Dual CPUs). People with 1GB of RAM, you might want to consider lowering the &lt;i&gt;key_buffer&lt;/i&gt; to 64M and the &lt;i&gt;myisam_sort_buffer_size&lt;/i&gt; to 32M. This really just depends on how much free memory your system has during peak traffic hours. If you increase these too much and your system runs out of physical RAM and starts swapping to disk, your system is going to eat it hard. &lt;br /&gt;&lt;br /&gt;For more information about Mysqld variables, please read the following articles as they explain all the settings in-depth and how to fine-tune them: &lt;a href=&quot;http://www.databasejournal.com/features/mysql/article.php/1402311&quot; target=&quot;_blank&quot;&gt;Article 1&lt;/a&gt; and &lt;a href=&quot;http://www.databasejournal.com/features/mysql/article.php/3367871&quot; target=&quot;_blank&quot;&gt;Article 2&lt;/a&gt; and &lt;a href=&quot;http://www.databasejournal.com/features/mysql/article.php/3110171&quot; target=&quot;_blank&quot;&gt;Article 3&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------- &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Third&lt;/b&gt; is Apache. Some people run 1.x, and some run 2.x, me personally I run 2.x because of the better performance. But some people are tied to the older version because of other software packages. &lt;br /&gt;&lt;br /&gt;The first thing to do if you are running 1.x is to get mod_gzip and use it. If you are running 2.x then use mod_deflate (it is included). This compresses all your HTML/TXT/XML data before it is sent, saving you bandwidth, and faster load times for your users. &lt;br /&gt;&lt;br /&gt;If you are serving up pages + images then you *probably* want to set your keepalive to on, and have your settings something like this: &lt;br /&gt;&lt;br /&gt;Timeout 60 &lt;br /&gt;KeepAlive On &lt;br /&gt;MaxKeepAliveRequests 1000 &lt;br /&gt;KeepAliveTimeout 10 &lt;br /&gt;&lt;br /&gt;By setting the KeepAliveTimeout low you won&#039;t have all those lingering connections. You can probably set it even lower if you like. &lt;br /&gt;&lt;br /&gt;If you are only serving up html (or php or whatever) pages, and using another web server for your images (like tux). Then you probably want to set your KeepAlive to Off since the user will only be requesting 1 file at a time. &lt;br /&gt;&lt;br /&gt;Most people have the bad habit of instantly increasing their &lt;i&gt;MaxClients&lt;/i&gt; to 256. This can be &lt;b&gt;BAD&lt;/b&gt; if you don&#039;t take into account memory availability. You need to determine how much memory you have free, how much each apache process consumes, then do the math to figure out what you can safely set the &lt;i&gt;MaxClients&lt;/i&gt; to. If you exceed your physical memory then once again the server will swap to the HD and the server will take a dive in performance. &lt;br /&gt;&lt;br /&gt;Comment out / remove and Dynamic Shared Object (DSO) modules that you do not use! There are a ton loaded by default, most which you will never use. I commented out 20+ personally! Read the apache documentation on what each one does, the apache docs are very detailed. &lt;br /&gt;&lt;br /&gt;If possible, set the &lt;i&gt;AllowOverride&lt;/i&gt; option to &lt;i&gt;None&lt;/i&gt;. This prevents apache from checking for the .htaccess file in every directory whenever a request is made. However if you use .htaccess files then you have to leave the setting there, but if you can limit it down to certain directories, then do it. &lt;br /&gt;&lt;br /&gt;Mask your Apache version by using the following settings: &lt;br /&gt;&lt;i&gt;ServerSignature Off &lt;br /&gt;ServerTokens ProductOnly&lt;/i&gt; &lt;br /&gt;&lt;br /&gt;That&#039;s just good practice, you can also hide your PHP info by setting &lt;i&gt;expose_php = Off&lt;/i&gt; in your /etc/php.ini file.&lt;/p&gt;&lt;div class=&quot;postcolor&quot;&gt;&lt;b&gt;Fourth&lt;/b&gt; is PHP. One thing to do is use a program like eAccelerator which caches pre-compiled versions of your php files to help reduce overhead and increase performance. It is a free download from sourceforge, but it will require a little know-ho on your part to install. There are plenty of other guides on how to install this. It is very simple and quick. &lt;br /&gt;&lt;br /&gt;A lot of people use the redhat PHP RPMs, which can be quite bloated. My libphp4.so module is only 2.07MB in size. (I don&#039;t remember what the default redhat one is, but I&#039;m willing to bet it is larger). Also Redhat never seems to keep up to date with the latest PHP (or MySQL) version, I always recommend updating as soon as a new release is published. &lt;br /&gt;&lt;br /&gt;Here&#039;s my configure line. There&#039;s a lot of settings you may not use, and they could be ones that you use that I don&#039;t. You can view your current configure line via the phpinfo() function. These include all the big things such as GD, XML, SHM, etc.. Some people maybe want to enable a certain memory-limit to prevent PHP from eating too much memory per process. &lt;br /&gt;&lt;br /&gt;Also, I don&#039;t use mm simply because I found it would crash apache on an almost daily basis. I had problems with session storage, and also it would not restart after rotating logs... &lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;./configure &lt;br /&gt;&lt;br /&gt;--prefix=/usr &lt;br /&gt;&lt;br /&gt;--exec-prefix=/usr &lt;br /&gt;&lt;br /&gt;--bindir=/usr/bin &lt;br /&gt;&lt;br /&gt;--sbindir=/usr/sbin &lt;br /&gt;&lt;br /&gt;--sysconfdir=/etc &lt;br /&gt;&lt;br /&gt;--datadir=/usr/share &lt;br /&gt;&lt;br /&gt;--includedir=/usr/include &lt;br /&gt;&lt;br /&gt;--libdir=/usr/lib &lt;br /&gt;&lt;br /&gt;--libexecdir=/usr/libexec &lt;br /&gt;&lt;br /&gt;--localstatedir=/var &lt;br /&gt;&lt;br /&gt;--sharedstatedir=/usr/com &lt;br /&gt;&lt;br /&gt;--mandir=/usr/share/man &lt;br /&gt;&lt;br /&gt;--infodir=/usr/share/info &lt;br /&gt;&lt;br /&gt;--disable-cgi &lt;br /&gt;&lt;br /&gt;--disable-debug &lt;br /&gt;&lt;br /&gt;--disable-rpath &lt;br /&gt;&lt;br /&gt;--disable-memory-limit &lt;br /&gt;&lt;br /&gt;--disable-ipv6 &lt;br /&gt;&lt;br /&gt;--disable-safe-mode &lt;br /&gt;&lt;br /&gt;--enable-pic &lt;br /&gt;&lt;br /&gt;--enable-discard-path &lt;br /&gt;&lt;br /&gt;--enable-inline-optimization &lt;br /&gt;&lt;br /&gt;--enable-gd-native-ttf &lt;br /&gt;&lt;br /&gt;--enable-gd-imgstrttf &lt;br /&gt;&lt;br /&gt;--enable-magic-quotes &lt;br /&gt;&lt;br /&gt;--enable-sysvsem &lt;br /&gt;&lt;br /&gt;--enable-sysvshm &lt;br /&gt;&lt;br /&gt;--enable-sysvmsg &lt;br /&gt;&lt;br /&gt;--enable-shmop &lt;br /&gt;&lt;br /&gt;--enable-track-vars &lt;br /&gt;&lt;br /&gt;--enable-exif &lt;br /&gt;&lt;br /&gt;--enable-wddx &lt;br /&gt;&lt;br /&gt;--enable-bcmath &lt;br /&gt;&lt;br /&gt;--enable-calendar &lt;br /&gt;&lt;br /&gt;--enable-ftp &lt;br /&gt;&lt;br /&gt;--enable-inline-optimization &lt;br /&gt;&lt;br /&gt;--with-apxs2=/usr/sbin/apxs &lt;br /&gt;&lt;br /&gt;--with-mysql=/usr &lt;br /&gt;&lt;br /&gt;--with-pear &lt;br /&gt;&lt;br /&gt;--with-config-file-path=/etc &lt;br /&gt;&lt;br /&gt;--with-exec-dir=/usr/bin &lt;br /&gt;&lt;br /&gt;--with-gd &lt;br /&gt;&lt;br /&gt;--with-png-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-jpeg-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-freetype-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-gettext &lt;br /&gt;&lt;br /&gt;--with-openssl &lt;br /&gt;&lt;br /&gt;--with-regex &lt;br /&gt;&lt;br /&gt;--with-ttf=/usr &lt;br /&gt;&lt;br /&gt;--with-expat-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-dom=/usr &lt;br /&gt;&lt;br /&gt;--with-dom-xslt=/usr &lt;br /&gt;&lt;br /&gt;--with-dom-exslt=/usr &lt;br /&gt;&lt;br /&gt;--with-iconv &lt;br /&gt;&lt;br /&gt;--with-db4=/usr &lt;br /&gt;&lt;br /&gt;--with-gdbm=/usr &lt;br /&gt;&lt;br /&gt;--with-zlib=/usr &lt;br /&gt;&lt;br /&gt;--with-zlib-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-xmlrpc &lt;br /&gt;&lt;br /&gt;--with-xml &lt;br /&gt;&lt;br /&gt;--with-bz2=/usr &lt;br /&gt;&lt;br /&gt;--with-cdb &lt;br /&gt;&lt;br /&gt;--enable-mbstring&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;postcolor&quot;&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------- &lt;br /&gt;&lt;br /&gt;When compiling programs (like PHP, eaccelerator, etc..), you can fine-tune some of your compile-options to enhance performance for your CPU&#039;s capabilities (and remove excess stuff like debug info) &lt;br /&gt;&lt;br /&gt;As mentioned before, I run dual xeon&#039;s (P4&#039;s for all practical purposes). If you are using a different CPU then you might have to go look up the proper flags at the GCC website. &lt;br /&gt;&lt;br /&gt;Before compiling a program, you can set the following flags: &lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;&lt;br /&gt;&lt;br /&gt;export CFLAGS=&amp;quot;-O3 -pipe -mcpu=pentium4 -march=pentium4 -fomit-frame-pointer&amp;quot;&lt;br /&gt;&lt;br /&gt;export CXXFLAGS=&amp;quot;${CFLAGS}&amp;quot;&lt;br /&gt;&lt;br /&gt;export CHOST=&amp;quot;i686-pc-linux-gnu&amp;quot;&lt;br /&gt;&lt;br /&gt;export MAKEOPTS=&amp;quot;-j2&amp;quot;&lt;br /&gt;&lt;br /&gt;export LDFLAGS=&amp;quot;-Wl,-O1&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;postcolor&quot;&gt;&lt;br /&gt;&lt;br /&gt;These flags are considered &amp;quot;stable&amp;quot; and should enhance performance a little for software that you compile with these options. There are tons of other flags, however some reduce precision for certain math (which can cause problems in certain software) and others may reduce stabililty. &lt;br /&gt;&lt;br /&gt;------------------------------------------- &lt;br /&gt;&lt;br /&gt;I guess that&#039;s about it... Use the information at your own risk. Hopefully it will help some people out, or at least point them in the right direction. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Please don&#039;t post questions that are like: &amp;quot;here&#039;s my config, can you optimize it for X server?&amp;quot;. I don&#039;t check these forums that often, so I probably won&#039;t reply to your question.&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Server tuning is more of an art than just entering X setting to Y number. Before making changes, keep your old configs. Also get a monitoring program so you can graph out your server load and other vitals. That way you can see before &amp;amp; after results. Also, if you run a forum, let your users know that you are going to make changes, and get their feedback on response time and such from them. &lt;br /&gt;&lt;br /&gt;Enjoy. &lt;/div&gt;&lt;div class=&quot;postcolor&quot;&gt;&lt;/div&gt;&lt;div class=&quot;postcolor&quot;&gt;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=48880&quot;&gt;http://forums.theplanet.com/index.php?showtopic=48880&lt;/a&gt;&lt;/div&gt;</description>
   <link>http://www.booservers.com/archivo/52_4_primary_areas_for_tuning_your_server.html</link>
      <pubDate>Thu, 04 Sep 2008 14:57:07 +0000</pubDate>   
  </item>
    <item>
   <title>How to setup email Smart Host to send emails via Gmail or DynDNS&#039;s smtp.</title>
   <description>Lately my TP server was having problems sending emails to Yahoo addresses. Most emails were put under mail queue for hours. I decided to setup a Smart Host under Exim. If the recipients&#039; emails are Yahoo addresses, the Smart Host will be engaged.&lt;br /&gt;&lt;br /&gt;There are two SMTPs that can be used - Gmail or DynDNS. While Gmail&#039;s smtp is free, a copy of the email will be placed under the SENT EMAIL folder once it is processed. This will take up the 2Gb space soon if you have a lot of emails to process. Also, there is no one-click solution to purge emails under SENT EMAIL folder.&lt;br /&gt;&lt;br /&gt;So I decided to use DynDNS.com&#039;s MailHop Outbound service. It is sold at the block of 150 relays per day @ $15/year. Meaning, you can process 150 mails each day. If you have more, then you have to purchase more blocks. To find out how many emails you have processed under DynDNS, log into your account and view the statistics.&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;# Select the SMTP to use:&lt;br /&gt;For Gmail:&lt;br /&gt;First, enable POP for your gmail account. You do that in the “Forwarding and POP” section of the settings.&lt;br /&gt;&lt;br /&gt;For DynDNS:&lt;br /&gt;Subscribe to the MailHop Outbound service.&lt;br /&gt;&lt;br /&gt;# Next, create a domain list. This domain list will hold the list of domains to send via gmail or DynDNS, one domain per line. Save your domain list as /etc/exim/gmail.domains or /etc/exim/dyndns.domains .&lt;br /&gt;&lt;br /&gt;# Then, add a domain list to your exim configuration. For WHM/cPanel, go to Exim Configuration Editor &amp;gt;&amp;gt; Advanced Editor and enter this line below the very top box of Exim Configuration Editor:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;quotetop&quot;&gt;QUOTE&lt;/div&gt;&lt;div class=&quot;quotemain&quot;&gt;&lt;span style=&quot;#0000ff&quot;&gt;domainlist use_gmail_domains = /etc/exim/gmail.domains&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;quotetop&quot;&gt;QUOTE&lt;/div&gt;&lt;div class=&quot;quotemain&quot;&gt;&lt;span style=&quot;#008000&quot;&gt;domainlist use_dyndns_domains = /etc/exim/dyndns.domains&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;# Seach for the string &amp;quot;begin authenticators&amp;quot;. In the box after this string, create an authenticator.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;quotetop&quot;&gt;QUOTE&lt;/div&gt;&lt;div class=&quot;quotemain&quot;&gt;&lt;span style=&quot;#0000ff&quot;&gt;gmail_login:&lt;br /&gt;driver = plaintext&lt;br /&gt;public_name = LOGIN&lt;br /&gt;client_send = : YourGmailUsername@gmail.com : YourGmailPassword&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;quotetop&quot;&gt;QUOTE&lt;/div&gt;&lt;div class=&quot;quotemain&quot;&gt;&lt;span style=&quot;#008000&quot;&gt;dyndns_login:&lt;br /&gt;driver = plaintext&lt;br /&gt;public_name = LOGIN&lt;br /&gt;client_send = : YourDyndnsUsername : YourDyndnsPassword&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Note that in a default exim configuration there are usually no authenticators, so don’t forget the &lt;b&gt;&lt;i&gt;begin authenticators&lt;/i&gt;&lt;/b&gt; statement if this is your first one.&lt;br /&gt;&lt;br /&gt;# Under the ROUTER CONFIGURATION box, add a router:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;quotetop&quot;&gt;QUOTE&lt;/div&gt;&lt;div class=&quot;quotemain&quot;&gt;&lt;span style=&quot;#0000ff&quot;&gt;send_via_gmail:&lt;br /&gt;driver = manualroute&lt;br /&gt;domains = +use_gmail_domains&lt;br /&gt;transport = gmail_smtp&lt;br /&gt;route_list = &amp;quot;* smtp.gmail.com byname&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;quotetop&quot;&gt;QUOTE&lt;/div&gt;&lt;div class=&quot;quotemain&quot;&gt;&lt;span style=&quot;#008000&quot;&gt;send_via_dyndns:&lt;br /&gt;driver = manualroute&lt;br /&gt;domains = +use_dyndns_domains&lt;br /&gt;transport = dyndns_smtp&lt;br /&gt;route_list = &amp;quot;* outbound.mailhop.org byname&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;# Under the TRANSPORTATION CONFIGURATION box, forcing it to use AUTH and TLS (TLS is not required for DynDNS):&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;quotetop&quot;&gt;QUOTE&lt;/div&gt;&lt;div class=&quot;quotemain&quot;&gt;&lt;span style=&quot;#0000ff&quot;&gt;gmail_smtp:&lt;br /&gt;driver = smtp&lt;br /&gt;hosts = smtp.gmail.com&lt;br /&gt;hosts_require_auth = smtp.gmail.com&lt;br /&gt;hosts_require_tls = smtp.gmail.com&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;quotetop&quot;&gt;QUOTE&lt;/div&gt;&lt;div class=&quot;quotemain&quot;&gt;&lt;span style=&quot;#008000&quot;&gt;dyndns_smtp:&lt;br /&gt;driver = smtp&lt;br /&gt;hosts = outbound.mailhop.org&lt;br /&gt;hosts_require_auth = outbound.mailhop.org&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;# Save Exim config and restart Exim. &lt;/p&gt;&lt;p&gt;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=90364&quot;&gt;http://forums.theplanet.com/index.php?showtopic=90364&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/46_how_to_setup_email_smart_host_to_send_emails_via_gmail_or_dyndnss_smtp.html</link>
      <pubDate>Thu, 04 Sep 2008 14:47:08 +0000</pubDate>   
  </item>
    <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>
