<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7815194265066294549</id><updated>2011-11-27T15:21:10.522-08:00</updated><category term='InstantSSL'/><category term='NAT'/><category term='mod_ssl'/><category term='dovecot'/><category term='unix'/><category term='Linux PC'/><category term='Postfix'/><category term='control panel'/><category term='webmin'/><category term='OpenSSL'/><category term='Forwarding'/><category term='Apache'/><category term='SpamAssassin'/><category term='iptables'/><category term='Linuxmail'/><category term='linux Desktop'/><category term='Mail Filter'/><title type='text'>OSS R&amp;D</title><subtitle type='html'>Linux Help Howto</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-2752735425155875069</id><published>2009-07-30T02:04:00.000-07:00</published><updated>2009-07-30T02:06:23.842-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux Desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='control panel'/><category scheme='http://www.blogger.com/atom/ns#' term='webmin'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>How to install webmin on CentOS 4</title><content type='html'>Webmin is a web based control panel for system administrators for Unix/Linux. I use Webmin for reports mainly. More about Webmin here.&lt;br /&gt;&lt;br /&gt;This is how you would install Webmin on Centos 4.&lt;br /&gt;&lt;br /&gt;1. First start by downloading the latest version of Webmin. The current version is 1.400.&lt;br /&gt;&lt;br /&gt;I prefer to use use wget to directly download the file onto the server but it’s up to you.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;wget http://prdownloads.sourceforge.net/webadmin/webmin-1.400-1.noarch.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Install the Webmin rpm package.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;rpm -ivh  webmin-1.400-1.noarch.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[root@proxy0 /]# rpm -ivh webmin-1.400-1.noarch.rpm&lt;br /&gt;warning: webmin-1.400-1.noarch.rpm: V3 DSA signature: NOKEY, key ID 11f63c51&lt;br /&gt;Preparing...                ########################################### [100%]&lt;br /&gt;Operating system is CentOS Linux&lt;br /&gt;1:webmin                 ########################################### [100%]&lt;br /&gt;Webmin install complete. You can now login to https://proxy0.klm1.netcel360.com:10000/&lt;br /&gt;as root with your root password.&lt;br /&gt;&lt;br /&gt;3. Check if the Webmin service has been started.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;service webmin status&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[root@proxy0 /]# service webmin status&lt;br /&gt;webmin (pid 4878) is running&lt;br /&gt;&lt;br /&gt;That’s it, you can now login using your root id at https://localhost:10000&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-2752735425155875069?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/2752735425155875069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=2752735425155875069' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/2752735425155875069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/2752735425155875069'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/07/how-to-install-webmin-on-centos-4.html' title='How to install webmin on CentOS 4'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-352102319430025775</id><published>2009-07-30T02:00:00.000-07:00</published><updated>2009-07-30T02:02:26.343-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mod_ssl'/><category scheme='http://www.blogger.com/atom/ns#' term='InstantSSL'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSSL'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>InstantSSL Certificate Installation: Apache &amp; mod_ssl / OpenSSL</title><content type='html'>&lt;span style="font-style:italic;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Installing your Certificate on Apache Mod_SSL / OpenSSL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step One: Copy your certificate to a file on your apache server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You will receive an email from Comodo with the certificate in the email. The certificate will be called 'yourDOMAINNAME.crt' and will be within a *.zip file you have received as an email from us. When viewed in a text editor, your certificate will look something like this:&lt;br /&gt;&lt;br /&gt;-----BEGIN CERTIFICATE-----&lt;br /&gt;MIAGCSqGSIb3DQEHAqCAMIACAQExADALBgkqhkiG9w0BBwGggDCCAmowggHXAhAF&lt;br /&gt;UbM77e50M63v1Z2A/5O5MA0GCSqGSIb3DQEOBAUAMF8xCzAJBgNVBAYTAlVTMSAw&lt;br /&gt;(.......)&lt;br /&gt;E+cFEpf0WForA+eRP6XraWw8rTN8102zGrcJgg4P6XVS4l39+l5aCEGGbauLP5W6&lt;br /&gt;K99c42ku3QrlX2+KeDi+xBG2cEIsdSiXeQS/16S36ITclu4AADEAAAAAAAAA&lt;br /&gt;-----END CERTIFICATE-----&lt;br /&gt;&lt;br /&gt;Copy your Certificate into the same directory as your Private Key. In this example we will use '/etc/ssl/crt/'. The private key used in the example will be labeled 'private.key' and the public key will be 'yourDOMAINNAME.crt'.&lt;br /&gt;&lt;br /&gt;Note: It is recommended that you make the directory that contains the private key file only readable by root.&lt;br /&gt;Step Two: Install the Root and Intermediate Certificates&lt;br /&gt;&lt;br /&gt;You will need to install the Root and Intermediate CA certificates in order for browsers and devices to trust your certificate. The Root and Intermediate CA certificates are contained within the 'ca-bundle' file that was attached to your email in the *.zip file we sent you (this should be named 'yourSERVERNAME.ca-bundle'). In the relevant 'Virtual Host' section for your site, you will need to do the following to get this file correctly referenced:&lt;br /&gt;&lt;br /&gt;a. First, copy the 'yourSERVERNAME.ca-bundle' file to the same directory as the certificate and key files. As a reminder, in this example we called the directory '/etc/ssl/crt/'.&lt;br /&gt;&lt;br /&gt;b. Next, add the following line to the SSL section of the 'httpd.conf' file. Again we assume that '/etc/ssl/crt/' is the directory to where you have copied the intermediate CA file. If the line already exists amend it to read the following:&lt;br /&gt;&lt;br /&gt;    SSLCertificateChainFile /etc/ssl/crt/yourSERVERNAME.ca-bundle&lt;br /&gt;&lt;br /&gt;c. If you are using a different location and different certificate file names, you will need to change the path and filename to reflect the path and filename that you are using. The SSL section of the updated config file should now read:&lt;br /&gt;&lt;br /&gt;   SSLCertificateFile /etc/ssl/crt/yourDOMAINNAME.crt&lt;br /&gt;   SSLCertificateKeyFile /etc/ssl/crt/private.key&lt;br /&gt;   SSLCertificateChainFile /etc/ssl/crt/yourSERVERNAME.ca-bundle ***&lt;br /&gt;&lt;br /&gt;d. Save your 'config' file and restart Apache.&lt;br /&gt;*** For Apache 1.x: Please use: SSLCACertificateFile /etc/ssl/crt/yourSERVERNAME.ca-bundle&lt;br /&gt;&lt;br /&gt;apache apache apache apache apache apache apache apache apache&lt;br /&gt;Note: The SSL configuration file will always be referenced in the apache config file if the configuration is not included in it. Look for the lines starting 'include', which is the directive for including other files etc. For example, depending on the distribution, it might be called ssl.conf, httpd-ssl.conf etc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-352102319430025775?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/352102319430025775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=352102319430025775' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/352102319430025775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/352102319430025775'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/07/instantssl-certificate-installation.html' title='InstantSSL Certificate Installation: Apache &amp; mod_ssl / OpenSSL'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-3725185541099549820</id><published>2009-07-16T00:38:00.000-07:00</published><updated>2009-07-16T00:42:03.835-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dovecot'/><title type='text'>LF not found where expected</title><content type='html'>I put here for reference&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[Dovecot] LF not found where expected&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I'm using Dovecot 0.99.13 on a fedora core 3 server. &lt;br /&gt;I keep getting these errors from time to time.&lt;br /&gt;There user ends up retrieving no mail (but no error in their client, be it web mail or pop3 client)&lt;br /&gt;What usually fixes it is this procedure:&lt;br /&gt;Cp mbox file to mbox_&lt;br /&gt;Remove original mbox&lt;br /&gt;Send a test message to recreate mbox.&lt;br /&gt;Cat mbox_ &gt;&gt; mbox&lt;br /&gt;Problem solved!&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt; pop3(mjmurray): Jun 27 11:16:38 Error: Error indexing mbox file /var/mail/mjmurray: LF not found where expected&lt;br /&gt;pop3(mjmurray): Jun 27 11:16:38 Error: Error indexing mbox file /var/mail/mjmurray: LF not found where expected&lt;br /&gt;pop3(mjmurray): Jun 27 11:16:38 Error: Couldn't open INBOX: Internal error occured. Refer to server log for more information. [2005-06-27 11:16:38]&lt;br /&gt;pop3-login: Jun 27 11:17:06 Info: Login: mjmurray [64.203.167.125]&lt;br /&gt;pop3(mjmurray): Jun 27 11:17:06 Error: Error indexing mbox file /var/mail/mjmurray: LF not found where expected&lt;br /&gt;pop3(mjmurray): Jun 27 11:17:06 Error: Error indexing mbox file /var/mail/mjmurray: LF not found where expected&lt;br /&gt;pop3(mjmurray): Jun 27 11:17:06 Error: Couldn't open INBOX: Internal error occured. Refer to server log for more information. [2005-06-27 11:17:06]&lt;br /&gt;imap-login: Jun 27 11:17:28 Info: Login: mjmurray [127.0.0.1]&lt;br /&gt;imap(mjmurray): Jun 27 11:17:28 Error: Error indexing mbox file /var/mail/mjmurray: LF not found where expected&lt;br /&gt;imap(mjmurray): Jun 27 11:17:28 Error: Error indexing mbox file /var/mail/mjmurray: LF not found where expected&lt;br /&gt;imap-login: Jun 27 11:19:12 Info: Login: mjmurray [127.0.0.1]&lt;br /&gt;imap(mjmurray): Jun 27 11:19:12 Error: Error indexing mbox file /var/mail/mjmurray: LF not found where expected&lt;br /&gt;imap(mjmurray): Jun 27 11:19:12 Error: Error indexing mbox file /var/mail/mjmurray: LF not found where expected&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;... Miles Mawyer -=- Webmaster . Centralva.net ... &lt;br /&gt;... &lt;a href="http://dovecot.org/cgi-bin/mailman/listinfo/dovecot"&gt;mmawyer at rosecomputers.com&lt;/a&gt; ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-3725185541099549820?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/3725185541099549820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=3725185541099549820' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/3725185541099549820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/3725185541099549820'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/07/lf-not-found-where-expected.html' title='LF not found where expected'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-6515117299288885182</id><published>2009-07-07T00:16:00.000-07:00</published><updated>2009-07-07T00:23:22.046-07:00</updated><title type='text'>Linux setup default gateway with route command</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Linux setup default gateway with route command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_s5Gy7_Jb22M/SlL3xQ8o4YI/AAAAAAAAAE8/cw-07D9zSzc/s1600-h/linux-logo.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 128px; height: 128px;" src="http://2.bp.blogspot.com/_s5Gy7_Jb22M/SlL3xQ8o4YI/AAAAAAAAAE8/cw-07D9zSzc/s320/linux-logo.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5355615332631896450" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Q. How do I setup default gateway with a route command?&lt;br /&gt;&lt;br /&gt;A. route command show and/or manipulate the IP routing table under Linux and UNIX oses.&lt;br /&gt;&lt;br /&gt;Route manipulates the kernel's IP routing tables. Its primary use is to set up static routes to specific hosts or networks via an interface after it has been configured with the ifconfig program. When the add or del options are used, route modifies the routing tables. Without these options, route displays the current contents of the routing tables.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Display default route&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Following three-command display the current routing table:&lt;br /&gt;# &lt;span style="font-style:italic;"&gt;route&lt;/span&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;Kernel IP routing table&lt;br /&gt;Destination     Gateway         Genmask         Flags Metric Ref    Use Iface&lt;br /&gt;192.168.1.0     *               255.255.255.0   U     0      0        0 ra0&lt;br /&gt;default         dsl-router      0.0.0.0         UG    0      0        0 ra0&lt;br /&gt;&lt;br /&gt;$ &lt;span style="font-style:italic;"&gt;/sbin/route&lt;/span&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;Kernel IP routing table&lt;br /&gt;Destination     Gateway         Genmask         Flags Metric Ref    Use Iface&lt;br /&gt;191.255.255.0   *               255.255.255.0   U     0      0        0 eth0&lt;br /&gt;169.254.0.0     *               255.255.0.0     U     0      0        0 eth0&lt;br /&gt;default         191.255.255.1   0.0.0.0         UG    0      0        0 eth0&lt;br /&gt;&lt;br /&gt;You can use -n option, to display numerical addresses instead of trying to determine symbolic host names (via dns or /etc/hosts file). This is useful if you are trying to determine why the route to your nameserver has vanished.$ /sbin/route -nOutput:&lt;br /&gt;&lt;br /&gt;Kernel IP routing table&lt;br /&gt;Destination     Gateway         Genmask         Flags Metric Ref    Use Iface&lt;br /&gt;191.255.255.0   0.0.0.0         255.255.255.0   U     0      0        0 venet0&lt;br /&gt;169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 venet0&lt;br /&gt;0.0.0.0         191.255.255.1   0.0.0.0         UG    0      0        0 venet0&lt;br /&gt;&lt;br /&gt;Please note that a destionation entry 0.0.0.0 (or default) is the default gatway. In above example 191.255.255.1 is a default gatway.&lt;br /&gt;Add / setup a new route&lt;br /&gt;&lt;br /&gt;The syntax is as follows:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;route add default gw {IP-ADDRESS} {INTERFACE-NAME}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;&lt;br /&gt;    * IP-ADDRESS: Specify router IP address&lt;br /&gt;    * INTERFACE-NAME: Specify interface name such as eth0&lt;br /&gt;&lt;br /&gt;For example if your router IP address is 192.168.1.254 type the following command as the root user:&lt;br /&gt;# route add default gw 192.168.1.254 eth0OR use hostname such as dsl-router:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# route add default gw dsl-router eth0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Setting route using GUI tools/command under Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you find above command hard to use, consider using GUI tools. If your are using Red Hat/CentOS/Fedora core Linux type following command:# redhat-config-networkOR If you are using other Linux distribution use command:&lt;br /&gt;# network-admin&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-6515117299288885182?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/6515117299288885182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=6515117299288885182' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/6515117299288885182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/6515117299288885182'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/07/linux-setup-default-gateway-with-route.html' title='Linux setup default gateway with route command'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_s5Gy7_Jb22M/SlL3xQ8o4YI/AAAAAAAAAE8/cw-07D9zSzc/s72-c/linux-logo.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-8000456158784300976</id><published>2009-06-20T12:02:00.000-07:00</published><updated>2009-06-20T12:03:01.764-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux PC'/><category scheme='http://www.blogger.com/atom/ns#' term='linux Desktop'/><title type='text'>PCLinuxOS 2009.1</title><content type='html'>&lt;span style="font-weight:bold;"&gt;PCLinuxOS 2009.1 Final Released &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_s5Gy7_Jb22M/Sj0xRRxIBHI/AAAAAAAAACo/tkLXgVPr0jc/s1600-h/splash.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 125px;" src="http://1.bp.blogspot.com/_s5Gy7_Jb22M/Sj0xRRxIBHI/AAAAAAAAACo/tkLXgVPr0jc/s200/splash.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5349486105283003506" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This release features kernel 2.6.26.8.tex3, KDE 3.5.10, Open Office 3.0, Firefox 3.0.7, Thunderbird 2.0.0.14, Ktorrent, Frostwire, Amarok, Flash, Java JRE, Compiz-Fusion 3D and much more. We decided to use kde3-5-10 as our default desktop as we could not achieve a similar functionality from kde4. We will however offer kde4 as an alternative desktop environment available from the repository once we stabilize it. PCLinuxOS is an rpm based distribution utilizing apt-get with a Synaptic Software Manager frontend. In addition to the above PCLinuxOS comes with mklivecd GUI, a nice utility to build a custom live CD from your install. Install or remove what you want then remaster your own cd. Great for backups or to give to friends. PCLinuxOS is also known as as rolling release distribution. What that means is you install once and update it when new applications become available from our repository. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.pclinuxos.com/"&gt;&lt;span style="font-weight:bold;"&gt;More details..&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-8000456158784300976?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/8000456158784300976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=8000456158784300976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/8000456158784300976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/8000456158784300976'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/06/pclinuxos-20091.html' title='PCLinuxOS 2009.1'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_s5Gy7_Jb22M/Sj0xRRxIBHI/AAAAAAAAACo/tkLXgVPr0jc/s72-c/splash.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-2782825848453465891</id><published>2009-06-15T09:46:00.000-07:00</published><updated>2009-06-15T09:49:11.193-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SpamAssassin'/><category scheme='http://www.blogger.com/atom/ns#' term='Postfix'/><category scheme='http://www.blogger.com/atom/ns#' term='Mail Filter'/><category scheme='http://www.blogger.com/atom/ns#' term='Linuxmail'/><title type='text'>Setup a Spam Filter with SpamAssasin with Postfix</title><content type='html'>If you receive a lot of spams here is a quick solution to filter spams using SpamAssasin and Postfix. Also spamd will be used (which is include within SpamAssasin). There are other implementations that we will cover in other tutorials.&lt;br /&gt;&lt;br /&gt;Step 1. Install Postfix&lt;br /&gt;-----------------------------&lt;br /&gt;We will install Postfix from Ports:&lt;br /&gt;&lt;br /&gt;cd /usr/ports/mail/postfix&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;If you want to use Postfix with MySQL, you must check MySQL before compilation, also you may want to check Dovecot, to use Dovecot SASL authentication method. We recommend you dovecot over cyrus-imap.&lt;br /&gt;&lt;br /&gt;After installation, configure postfix by editing: /usr/local/etc/postfix/master.cf and /usr/local/etc/postfix/main.cf&lt;br /&gt;&lt;br /&gt;# -------------------- main.cf -----------------------------------------&lt;br /&gt;queue_directory = /var/spool/postfix&lt;br /&gt;command_directory = /usr/local/sbin&lt;br /&gt;daemon_directory = /usr/local/libexec/postfix&lt;br /&gt;mail_owner = postfix&lt;br /&gt;unknown_local_recipient_reject_code = 550&lt;br /&gt;mynetworks_style = host&lt;br /&gt;&lt;br /&gt;debug_peer_level = 2&lt;br /&gt;&lt;br /&gt;debugger_command =&lt;br /&gt;         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin&lt;br /&gt;         xxgdb $daemon_directory/$process_name $process_id &amp; sleep 5&lt;br /&gt;&lt;br /&gt;sendmail_path = /usr/local/sbin/sendmail&lt;br /&gt;mailq_path = /usr/local/bin/mailq&lt;br /&gt;setgid_group = maildrop&lt;br /&gt;html_directory = no&lt;br /&gt;manpage_directory = /usr/local/man&lt;br /&gt;sample_directory = /usr/local/etc/postfix&lt;br /&gt;readme_directory = no&lt;br /&gt;#smtpd_recipient_restrictions = check_relay_domains, permit&lt;br /&gt;&lt;br /&gt;mydomain = example.com&lt;br /&gt;myhostname = firewall.$mydomain&lt;br /&gt;myorigin = $myhostname&lt;br /&gt;mydestination = $myhostname, localhost,$mydomain&lt;br /&gt;&lt;br /&gt;mynetworks = 10.0.0.5/32&lt;br /&gt;mynetworks_style = subnet&lt;br /&gt;# --------- end of file main.cf --------------------&lt;br /&gt;&lt;br /&gt;Also add the following line to /etc/rc.conf&lt;br /&gt;postfix_enable="YES"&lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;Note1&lt;br /&gt;--------&lt;br /&gt;Don't forget to setup in main.cf the variable: mydestination = $myhostname, localhost,$mydomain&lt;br /&gt;If you forget to do that, you will get rely denied error, and emails that comes to your domain name will be rejected.&lt;br /&gt;If you have many domains you can use transport_maps variable:&lt;br /&gt;&lt;br /&gt;mydestination = $mydomain, $myhostname, $transport_maps, localhost&lt;br /&gt;&lt;br /&gt;Transport maps can be also used from within mysql (for large mail servers with postfix compiled and configured with virtual users and MySQL support. If you are interested there is a tutorial on that topic on our website.&lt;br /&gt;&lt;br /&gt;Note2&lt;br /&gt;--------&lt;br /&gt;Make sure you either add your IP in main.cf with your mynetworks variable or setup smtp server with authentication and allow your username to use SMTP with authentication.&lt;br /&gt;&lt;br /&gt;mynetworks = 10.0.0.2/32&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 2. Install SpamAssasin&lt;br /&gt;---------------------------------------&lt;br /&gt;cd /usr/ports/mail/p5-Mail-SpamAssassin&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 3. Configure SpamAssasin&lt;br /&gt;--------------------------------------------&lt;br /&gt;After compilation and installation of SpamAssasin (which is written in Perl) from ports, as described in Step 2, create a config file for spamassasin:&lt;br /&gt;&lt;br /&gt;touch /usr/local/etc/mail/spamassasin/local.cf&lt;br /&gt;&lt;br /&gt;with the following content:&lt;br /&gt;# ---------- local.cf --------------&lt;br /&gt;rewrite_header Subject *****SPAM*****&lt;br /&gt;&lt;br /&gt;# trusted_networks 10.0.0.&lt;br /&gt;# lock_method flock&lt;br /&gt;# use_bayes 1&lt;br /&gt;# bayes_auto_learn 1&lt;br /&gt;&lt;br /&gt;required_score 5.0&lt;br /&gt;report_safe     1&lt;br /&gt;&lt;br /&gt;whitelist_from dan@example.com This email address is being protected from spam bots, you need Javascript enabled to view it&lt;br /&gt;# --------- end of local.cf&lt;br /&gt;&lt;br /&gt;If you want to catch more spams, but also you will have more false positive, lower required_score. Higher score will catch less spams.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 4. Start spamd&lt;br /&gt;----------------------------&lt;br /&gt;Edit /usr/local/etc/rc.d/sa-spamd and change spamd_enable to "YES".&lt;br /&gt;Then, start spamd:&lt;br /&gt;&lt;br /&gt;/usr/local/etc/rc.d/sa-spamd start&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 5. Edit master.cf and add support for spamassasin&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;Edit /usr/local/etc/postfix/master.cf, replace line:&lt;br /&gt;&lt;br /&gt;smtp      inet  n       -       n       -       -       smtpd&lt;br /&gt;with:&lt;br /&gt;smtp      inet  n       -       -       -       -       smtpd&lt;br /&gt;        -o content_filter=spamassassin&lt;br /&gt;&lt;br /&gt;And then add the following lines to master.cf.&lt;br /&gt;&lt;br /&gt;spamassassin unix -     n       n       -       -       pipe&lt;br /&gt;        user=spamd argv=/usr/local/bin/spamc -f -e&lt;br /&gt;        /usr/sbin/sendmail -oi -f ${sender} ${recipient}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 6. Restart postfix and test the setup&lt;br /&gt;---------------------------------------------------------&lt;br /&gt;&lt;br /&gt;/usr/local/etc/rc.d/postfix restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-2782825848453465891?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/2782825848453465891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=2782825848453465891' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/2782825848453465891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/2782825848453465891'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/06/setup-spam-filter-with-spamassasin-with.html' title='Setup a Spam Filter with SpamAssasin with Postfix'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-6406377606038741316</id><published>2009-06-15T09:35:00.000-07:00</published><updated>2009-06-15T09:52:27.918-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NAT'/><category scheme='http://www.blogger.com/atom/ns#' term='Forwarding'/><category scheme='http://www.blogger.com/atom/ns#' term='iptables'/><title type='text'>To Forwarding /NATing using iptables</title><content type='html'>iptables file configuration /etc/sysconfig/iptables,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To forwarding /NATing :&lt;br /&gt;&lt;br /&gt;Assuming external internet card is eth0, and external IP is 123.12.23.43 and the internal network card is eth1, then:&lt;br /&gt;&lt;br /&gt;iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to x.x.x.x&lt;br /&gt;&lt;br /&gt;to allow port webmin xs&lt;br /&gt;&lt;br /&gt;iptables -A INPUT --protocol tcp --dport 10000 -j ACCEPT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Last step for Fedora/RHEL users.  In order for your system to save the &lt;br /&gt;iptables rules we setup in step two you have to configure itpables &lt;br /&gt;correctly.  You will need to edit /etc/sysconfig/iptables-config &lt;br /&gt;and make sure IPTABLES_MODULES_UNLOAD,&lt;br /&gt;IPTABLES_SAVE_ON_STOP, and &lt;br /&gt;IPTABLES_SAVE_ON_RESTART are all set to 'yes'.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sources : http://tldp.org/HOWTO/html_single/Masquerading-Simple-HOWTO/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-6406377606038741316?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/6406377606038741316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=6406377606038741316' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/6406377606038741316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/6406377606038741316'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/06/to-forwarding-nating-using-iptables.html' title='To Forwarding /NATing using iptables'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-4659899812515608522</id><published>2009-05-23T01:14:00.000-07:00</published><updated>2009-05-23T01:16:04.241-07:00</updated><title type='text'>How to uninstall ISPConfig</title><content type='html'>&lt;span style="font-weight:bold;"&gt;How to uninstall ISPConfig ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Log in to your command line as root and type the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/root/42go/uninstall&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If the uninstall script fails, you can remove ISPConfig manually by deleteing these directories:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rm -rf /root/ispconfig&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;rm -rf /home/admispconfig&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What is the difference between complete and partial deinstallation of the ISPConfig system ?&lt;br /&gt;&lt;br /&gt;    * Partial deinstallation means that only the ISPConfig system itself will be uninstalled, not the objects created by it (web sites, users, DNS records, etc.).&lt;br /&gt;    * With complete deinstallation also the objects created by the systems (web sites, users, DNS records, etc.) will be uninstalled. Thus, the server is reset to its original state.&lt;br /&gt;&lt;br /&gt;The following Error messages during uninstall !&lt;br /&gt;&lt;br /&gt;shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory&lt;br /&gt;&lt;br /&gt;This is normal. The program /root/ispconfig/uninstall deletes its own parent directory ie /root/ispconfig and thus cannot find it anymore. Nevertheless the uninstall will be completed. Just ignore the error message.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-4659899812515608522?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/4659899812515608522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=4659899812515608522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/4659899812515608522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/4659899812515608522'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/05/how-to-uninstall-ispconfig.html' title='How to uninstall ISPConfig'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-1662797502770980573</id><published>2009-05-19T22:10:00.000-07:00</published><updated>2009-05-19T22:12:17.804-07:00</updated><title type='text'>Installing Sun VirtualBox in CentOS-5</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Installing Sun xVM VirtualBox in CentOS-5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hello i find this is the best way of installing the VirtualBox for your CentOS&lt;br /&gt;Just follow the steps below and i hope you will be done with it soon.&lt;br /&gt;&lt;br /&gt;Just go to the below url and download the RPM&lt;br /&gt;https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=innotek-1.6-G-F@CDS-CDS_SMI&lt;br /&gt;&lt;br /&gt;Then select your platform as Redhat 5, and tab on “I Agree” and Click on Continue&lt;br /&gt;And here you go now your download starts and once its done.&lt;br /&gt;Go to the directory where your download have been saved and just right click on the package and select the option “Open With Software Installer”&lt;br /&gt;Now your system may ask for the “root password” kindly supply the same then tab on “Apply” and then tab on “Install Anyway” your are done with this&lt;br /&gt;now your Sun xVM VirtualBox has been installed and can be found in “Application–&gt; System Tool–&gt;Sun xVM VirtualBox… go ahead and enjoy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-1662797502770980573?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/1662797502770980573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=1662797502770980573' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/1662797502770980573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/1662797502770980573'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/05/installing-sun-virtualbox-in-centos-5.html' title='Installing Sun VirtualBox in CentOS-5'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-597869122135892710</id><published>2009-05-18T22:06:00.000-07:00</published><updated>2009-05-18T22:07:08.019-07:00</updated><title type='text'>Postfix message and mailbox size limits</title><content type='html'>*I learned some more about Postfix today*&lt;br /&gt;&lt;br /&gt;This morning I got a call from my client with the new mail server. They were getting an error message when trying to send a file with a 7 MB attachment. Since they send and receive a lot of attachments (of which a 7 meg file would be on the small side) this needed to be fixed. The message they were getting indicated and inability to access a mailbox. I skimmed through /var/log/maillog and found this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dec 12 10:48:47 postoffice postfix/local[14046]: 0671D344040: to=, relay=local, delay=33, status=bounced (cannot access mailbox /var/spool/mail/foo for user foo. error writing message: File too large)&lt;br /&gt;&lt;br /&gt;I was a bit surprised, since I made sure that /etc/postfix/main.cf did not include any limits on email sizes. After some time searching on Google, it looked like the default value for a mailbox size according to Postfix is 51200000 bytes. I wanted it to be unlimited, so I used postconf to explicitly set the value to 0, for no limit, like so...&lt;br /&gt;&lt;br /&gt;% postconf –e mailbox_size_limit=0&lt;br /&gt;&lt;br /&gt;... then restarted Postfix.&lt;br /&gt;&lt;br /&gt;I then tried to send a 12 MB file from my Gmail account to my test account on the box. I got an SMTP 552 error, “Message too large” back from the box. Again, I skimmed the maillog file and this time came across:&lt;br /&gt;&lt;br /&gt;Nov 7 15:51:33 postoffice postfix/postdrop[14200]: warning: uid=48: File too large&lt;br /&gt;&lt;br /&gt;Back to Google, whereupon I learnt that the default max message size for Postfix is 10240000 bytes. To fix it I ran:&lt;br /&gt;&lt;br /&gt;% postconf –e message_size_limit=0&lt;br /&gt;&lt;br /&gt;Again, I restarted Postfix and then resent my test email. This time it went through.&lt;br /&gt;&lt;br /&gt;If you want to view the default settings for all the parameters you can configure in main.cf, use postconf –d. The output of postconf –d | grep size looks like:&lt;br /&gt;&lt;br /&gt;[root@foo]# postconf -d | grep size&lt;br /&gt;berkeley_db_create_buffer_size = 16777216&lt;br /&gt;berkeley_db_read_buffer_size = 131072&lt;br /&gt;body_checks_size_limit = 51200&lt;br /&gt;bounce_size_limit = 50000&lt;br /&gt;header_size_limit = 102400&lt;br /&gt;mailbox_size_limit = 51200000&lt;br /&gt;message_size_limit = 10240000&lt;br /&gt;&lt;br /&gt;As an aside, since Postfix on this box is started by MailScanner, I restarted the MailScanner daemon to restart Postfix, like this:&lt;br /&gt;&lt;br /&gt;% /etc/init.d/MailScanner restart&lt;br /&gt;&lt;br /&gt;which stops the inbound and outbound Postfix queus then starts them again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-597869122135892710?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/597869122135892710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=597869122135892710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/597869122135892710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/597869122135892710'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/05/postfix-message-and-mailbox-size-limits.html' title='Postfix message and mailbox size limits'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-1263060444847502760</id><published>2009-05-18T20:22:00.000-07:00</published><updated>2009-05-18T20:26:12.491-07:00</updated><title type='text'>Lawan malware dan spam dengan Postfix | Fighting malware and spam with Postfix</title><content type='html'>*i found this from others site, then i put here for reference.*&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Background&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Postfix ( &lt;a href="http://www.postfix.org"&gt;http://www.postfix.org&lt;/a&gt;/ ) is the popular Sendmail replacement that is fast, secure, and easy to administer.&lt;br /&gt;&lt;br /&gt;Postfix also makes an outstanding email security gateway or "mail firewall", shielding fragile Intranet mail systems such as WOE (Windows/Outlook/Exchange) or Lotus Notes from direct contact with the Internet.&lt;br /&gt;&lt;br /&gt;Postfix's functionality can be extended by filtering mail through external programs. By using external filters, Postfix can do content filtering including scanning for viruses and MS Outlook exploits, and identifying spam.&lt;br /&gt;&lt;br /&gt;This paper demonstrates how to use the filtering capabilities of Postfix to perform high-level content filtering including:&lt;br /&gt;&lt;br /&gt;    * Dropping potentially hostile attachments such as .EXE and .VBS files&lt;br /&gt;    * Preventing MS Outlook from auto-executing unknown attachments&lt;br /&gt;    * Preventing exploits embedded in HTML email and MIME headers&lt;br /&gt;    * Disabling "web bugs" that spammers use to track recipients&lt;br /&gt;    * Identifying spam based on message content&lt;br /&gt;&lt;br /&gt;The method shown here is multi-purpose: it is suitable for local mail (where the email is stored on the Postfix server itself) and also suitable for when Postfix is used as a "mail firewall" to relay mail to an internal mail system. Unlike endpoint solutions like Outlook plugins that must be installed and managed on each workstation. This method also has the advantage of applying one spam and content filtering policy for all users. Users can also share one auto-whitelist database, reducing the chance that legitimate mail will be labelled as spam.&lt;br /&gt;&lt;br /&gt;However, if you require unique settings for each user it may be better to filter mail via a mail delivery agent such as procmail or maildrop (http://www.courier-mta.org/maildrop/) instead of using the method shown here.&lt;br /&gt;The software&lt;br /&gt;&lt;br /&gt;We extend the capabilities of Postfix using two best-of-breed open source programs that perform content filtering and spam identification:&lt;br /&gt;Anomy Sanitizer&lt;br /&gt;&lt;br /&gt;Anomy Sanitizer ( http://mailtools.anomy.net/ ) is an open source email content filter that disables all the hostile content of email messages that anti-virus programs ignore: potential buffer overflows, MIME exploits, web bugs, dangerous HTML tags, and other problems that have made MS Outlook such a security nightmare.&lt;br /&gt;&lt;br /&gt;Anomy Sanitizer is written in Perl. It filters SMTP messages checking for most known exploits and hostile file attachments. It can remove attachments, rename unknown file types, "defang" exploitable HTML tags, fix MIME headers and generally cleans up malformed email.&lt;br /&gt;&lt;br /&gt;Cleaning up malformed email is essential: virus scanners have a history of missing attachments in malformed email. Attackers regularly alter MIME structures in email so malicious content becomes invisible to antivirus but still works when the user opens it in the email client&lt;br /&gt;SpamAssassin&lt;br /&gt;&lt;br /&gt;SpamAssassin ( http://spamassassin.apache.org/ ) is a mail filter that attempts to identify junk e-mail ("spam"). It examines the content of mail messages looking for key phrases and other identifiers commonly used by spammers.&lt;br /&gt;&lt;br /&gt;SpamAssassin uses a scoring system: messages are tagged as spam only when they have enough spam characteristics in total. When combined with other features this results in very few false positives. In our experience, a properly managed SpamAssassin installation correctly identifies 95% to 98% of spam with less than 1% false positives.&lt;br /&gt;&lt;br /&gt;SpamAssassin doesn't block spam. Instead, it tags messages as probable spam by changing the message headers and (optionally) the Subject line. This is wise: no automated system can recognize spam with complete certainty... deciding "what is spam" is a judgement call. All automated spam filters will produce some false positives (wanted e-mail mistakenly tagged as spam) and false negatives (spam not identified as such).&lt;br /&gt;&lt;br /&gt;SpamAssassin identifies messages that are probable spam, but leaves the choice of what to do with it up to you. Most organizations instruct their users how to add rules to their e-mail software to delete identified messages or, better yet, move them to a folder for later review. Others choose to use an additional filter automatically delete extremely high scoring messages or put them in a holding area for further review by an administrator.&lt;br /&gt;&lt;br /&gt;In our opinion, the best approach is to tag low scoring messages as possible spam and deliver it to the user so they can make the final call. For high scoring spam, sideline it for review by an administrator or automatically delete it.&lt;br /&gt;&lt;br /&gt;The method shown here only tags suspected spam. No automated deletion or sidelining is performed. However, we have a collection of alternative filter script that will sideline or delete suspected spam available at http://advosys.ca/examples/filter-misc/.&lt;br /&gt;Preparing the server&lt;br /&gt;Prerequisites&lt;br /&gt;&lt;br /&gt;Before you begin, here is what you will need:&lt;br /&gt;&lt;br /&gt;   1. A Unix-type server such as Linux or BSD. The method shown here has been used on Solaris, Debian Linux, Ubuntu Linux, RedHat Linux and FreeBSD.&lt;br /&gt;   2. Postfix version 2.0.1 or higher (type postconf mail_version at the Unix command line to see the version number). This method does not work with Postfix 1.1.x.&lt;br /&gt;   3. At least Perl 5.005_03 or higher. Type perl -v at the command line to see the version number. Perl 5.6 or higher is recommended, but it is best to stick with the version of Perl your system provides by default.&lt;br /&gt;&lt;br /&gt;NOTE: Your server must already have Postfix installed and working. Please do not try to follow these instructions until you first have a basic installation of Postfix working.&lt;br /&gt;Creating a filter account&lt;br /&gt;&lt;br /&gt;To use external filtering with Postfix, first add a new a Unix group on the server named "filter" (use groupadd or addgroup as appropriate to your system).&lt;br /&gt;&lt;br /&gt;Next, add a new user account named "filter" on the server and make it a member of group "filter". Set the account's home directory to /var/spool/filter. This will be the account used by the filtering scripts.&lt;br /&gt;&lt;br /&gt;No other user should belong to group "filter". For now, give the filter account a password and a valid login shell. You should be able to use the "su" command to login as user filter. This will make troubleshooting easier. Don't worry... later we will disable logins for the account to improve security.&lt;br /&gt;Installing required Perl modules&lt;br /&gt;&lt;br /&gt;Also, download and install the following Perl modules from CPAN ( http://search.cpan.org/ ):&lt;br /&gt;&lt;br /&gt;    * MIME::Base64&lt;br /&gt;    * MIME::QuotedPrint&lt;br /&gt;    * Net::DNS&lt;br /&gt;    * DB_File&lt;br /&gt;&lt;br /&gt;If you've set up the CPAN module in your Perl installation, the easiest way to add these modules is to use CPAN to download, build and install automatically:&lt;br /&gt;&lt;br /&gt;perl -MCPAN -e shell &lt;br /&gt;o conf prerequisites_policy ask&lt;br /&gt;install MIME::Base64&lt;br /&gt;install MIME::QuotedPrint&lt;br /&gt;install Net::DNS&lt;br /&gt;install DB_File&lt;br /&gt;quit &lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;Installing Anomy Sanitizer&lt;br /&gt;&lt;br /&gt;Download the latest version of Anomy Sanitizer from http://mailtools.anomy.net/&lt;br /&gt;&lt;br /&gt;Install it by unpacking the tar file into a suitable directory on your mail server. We recommend using directory /usr/local/anomy but any other directory will work. After unpacking, it's a good idea to read the instructions and notes in file sanitizer.html in the anomy directory.&lt;br /&gt;Anomy configuration&lt;br /&gt;&lt;br /&gt;In directory /usr/local/anomy, create a file named anomy.conf and add your anomy configuration rules. The specific settings you choose depends on your particular e-mail policies and the type of internal e-mail software you are protecting. The "real world configuration" shown in the Anomy documentation is a good starting point.&lt;br /&gt;&lt;br /&gt;Below is a configuration we've used on mail gateways to protect Windows-Outlook-Exchange users. It defangs HTML and MIME exploits, plus drops all executable attachments (we strongly recommend dropping executable attachments as a general policy: see our paper "E-mail policies that prevent viruses" at http://advosys.ca/papers/mail-policies.html).&lt;br /&gt;&lt;br /&gt;Download: anomy.conf&lt;br /&gt;&lt;br /&gt;Once the config file is in place, change ownership of the entire anomy directory tree to owner "root", group "filter". For example:&lt;br /&gt;&lt;br /&gt;chown -R root:filter /usr/local/anomy&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;Change permissions on the anomy directory tree so it is not world readable. For example:&lt;br /&gt;&lt;br /&gt;chmod 0750 /usr/local/anomy&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;Installing SpamAssassin&lt;br /&gt;&lt;br /&gt;Some Linux distributions provide packaged versions of SpamAssassin and Anomy Sanitizer as RPM or DEB files. Usually these packaged versions are out of date, move files from the default locations and make other subtle changes. To avoid problems, we recommend removing packaged versions of SpamAssassin and installing manually as described below.&lt;br /&gt;&lt;br /&gt;Refer to your system documentation for details on how to use its package manager (e.g.: on Redhat Linux, the command is rpm. On Solaris, use pkginfo).&lt;br /&gt;&lt;br /&gt;The SpamAssassin documentation describes how to install and configure that software. As described above, if you have the CPAN module set up on your server, it can download and install SpamAssassin automatically. For example:&lt;br /&gt;&lt;br /&gt;perl -MCPAN -e shell &lt;br /&gt;o conf prerequisites_policy ask &lt;br /&gt;install Mail::SpamAssassin &lt;br /&gt;quit &lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;SpamAssassin configuration&lt;br /&gt;&lt;br /&gt;SpamAssassin is installed "out of the box" with a good set of spam identification rules. You can specify your own settings in file /etc/mail/spamassassin/local.cf.&lt;br /&gt;&lt;br /&gt;It's a good idea to leave local.cf unchanged until you get things working and have a feel for how the default rules work. Later on you can fine tune SpamAssassin settings in local.cf as required.&lt;br /&gt;&lt;br /&gt;However, we recommend making one change to local.cf right away: Whitelist well-known senders so their mail will never be identified as spam:&lt;br /&gt;Manual whitelists&lt;br /&gt;&lt;br /&gt;You should whitelist the e-mail addresses of well-known legitimate senders to avoid the chance of them being misidentified by the SpamAssassin default rules. Add "whitelist_from" settings to file /etc/mail/spamassassin/local.cf for each important client, mailing list and other known spam free senders. For example:&lt;br /&gt;&lt;br /&gt;whitelist_from director_8345@ hotmail.com  # whitelist one sender&lt;br /&gt;whitelist_from *@advosys.ca                # whitelist entire domain&lt;br /&gt;whitelist_from *@securityfocus.com&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;Configuring filtering in Postfix&lt;br /&gt;&lt;br /&gt;You must have Postfix installed and accepting mail the way you want. To preserve your mental health, do not attempt to add filtering and get a first-time installation of Postfix working at the same time. Many have tried, all have failed. Be wise: install and configure Postfix first, and verify it is working the way you want (accepting mail for your domain(s), relaying to and from internal servers, and so on). Getting Postfix running the first time is complex enough without also trying to add filtering.&lt;br /&gt;&lt;br /&gt;The After queue content filter README (http://www.postfix.org/FILTER_README.html) in the Postfix documentation describes ways to add external content filtering to Postfix. Here we use a variation of the "Simple content filtering" method described in that file: plug a shell script into Postfix by modifying the master.cf file.&lt;br /&gt;Creating the filter script&lt;br /&gt;&lt;br /&gt;The following method pipes each message sent to it through Anomy Sanitizer, then through SpamAssassin. The command-line "sendmail" compatibility command that is part of Postfix is then used to queue the result for final delivery.&lt;br /&gt;&lt;br /&gt;Note: Modify the file locations specified in this file to match the locations on your server. File locations vary depending on your flavour of Unix/Linux/BSD and other factors.&lt;br /&gt;&lt;br /&gt;Download: filter.sh&lt;br /&gt;&lt;br /&gt;Place the filter.sh script into the same directory you installed Anomy Sanitizer (e.g.. /usr/local/anomy ). The script should have the following permissions:&lt;br /&gt;&lt;br /&gt;-rwxr-x---    owner=root  group=filter        &lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;Create a temporary directory&lt;br /&gt;&lt;br /&gt;The script needs a directory to store temporary files. Create a directory that is writable by group "filter". For example:&lt;br /&gt;&lt;br /&gt;mkdir /var/spool/filter&lt;br /&gt;chown root:filter /var/spool/filter&lt;br /&gt;chmod 0770 /var/spool/filter&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;The directory should be located on a partition large enough to store a few incoming mail messages. On most systems, the /var partition is the best choice. Whatever directory you choose, change the INSPECT_DIR setting in filter.sh to match.&lt;br /&gt;Send a test message&lt;br /&gt;&lt;br /&gt;Before activating all this in Postfix, it's wise to first try sending a few test messages from the command line.&lt;br /&gt;&lt;br /&gt;As root, use the "su" command to change to user filter. For example:&lt;br /&gt;&lt;br /&gt;su filter&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;Change to the /var/spool/filter directory if not there already. Use your favorite text editor to create a file named "test.txt" containing the following:&lt;br /&gt;&lt;br /&gt;From: &lt;tester@ yourdomain.com&gt;&lt;br /&gt;To: &lt;you@ yourdomain.com&gt;&lt;br /&gt;&lt;br /&gt;Hi there. This is a test message.&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;(The blank line between the "To:" and "Hi there" is required).&lt;br /&gt;&lt;br /&gt;Send the above test message through the filter script as follows:&lt;br /&gt;&lt;br /&gt;cat test.txt | /usr/local/anomy/filter.sh -f tester -- root&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;If things are working, no error messages should be printed and the shell prompt should return. Check the mail for account "root": you should have received the test message.&lt;br /&gt;&lt;br /&gt;SpamAssassin may emit a warning that it "cannot create user_prefs". Ignore this warning.&lt;br /&gt;&lt;br /&gt;If you see error messages, such as "cannot execute..." or "cannot find...", or the message arrives but is blank, double check what you just typed and try again. Depending on your system, the error messages should lead you to where the error is... in the anomy program, the filter.sh shell script, or file permissions. Incorrect file and directory permissions or wrong pathnames in the filter script are the most frequent cause of problems... check everything twice!&lt;br /&gt;&lt;br /&gt;The Anomy filter can be debugged by temporarily changing the value of $ANOMY_LOG in filter.sh from /dev/null to an actual file, such as /tmp/anomy.log (make sure the user filter has write access to that file), then set feat_log_inline = 1 in file anomy.conf. Remember to change the settings back to the original when you are finished troubleshooting.&lt;br /&gt;&lt;br /&gt;Resolve all the errors before proceeding... if you can't send mail manually using this method, Postfix won't be able to send any either.&lt;br /&gt;Creating a recipient map&lt;br /&gt;&lt;br /&gt;We need to create a recipient access map so Postfix will know which e-mail domains to filter. Without this map, Postfix will not filter any e-mail, inbound or outbound, through SpamAssassin and Anomy.&lt;br /&gt;&lt;br /&gt;Change to directory /etc/postfix and create a new file named filtered_domains. Add something like to following to the file:&lt;br /&gt;&lt;br /&gt;# Filter only mail addressed to local domains:&lt;br /&gt;example.com       FILTER filter:dummy&lt;br /&gt;example.net       FILTER filter:dummy&lt;br /&gt;otherdomain.ca    FILTER filter:dummy&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;Of course, replace the above domains with your own e-mail domain names. You need one line for each domain you receive mail for.&lt;br /&gt;&lt;br /&gt;If you have a domain you receive mail for but don't want filtered, simply don't list it in the file: Postfix will still accept mail for the domain and deliver it, unfiltered.&lt;br /&gt;&lt;br /&gt;Save the file and use command postmap filtered_domains to create the corresponding data file.&lt;br /&gt;Changing main.cf&lt;br /&gt;&lt;br /&gt;In file /etc/postfix/main.cf look for the setting smtpd_recipient_restrictions&lt;br /&gt;&lt;br /&gt;That setting may not be present or may be commented out, depending on your particular installation of Postfix. Add the setting or if it already exists, edit it similar to the following:&lt;br /&gt;&lt;br /&gt;smtpd_recipient_restrictions = &lt;br /&gt;  check_recipient_access $default_database_type:/etc/postfix/filtered_domains&lt;br /&gt;   ...existing settings, if any...&lt;br /&gt;   reject_unauth_destination&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;    * If there is already a check_recipient_access setting present, do not replace it... add the above as a second setting, but place it after any other check_recipient_access settings.&lt;br /&gt;&lt;br /&gt;Here is an example of what the smtpd_recipient_restrictions setting could look like it it's entirety. Your setting does not have to be the same... this is just an example:&lt;br /&gt;&lt;br /&gt;smtpd_recipient_restrictions = &lt;br /&gt;   reject_non_fqdn_sender&lt;br /&gt;   reject_non_fqdn_recipient&lt;br /&gt;   permit_mynetworks&lt;br /&gt;   reject_unknown_sender_domain&lt;br /&gt;   check_recipient_access $default_database_type:/etc/postfix/recipient_access&lt;br /&gt;   check_recipient_access $default_database_type:/etc/postfix/filtered_domains&lt;br /&gt;   check_sender_access $default_database_type:/etc/postfix/sender_access&lt;br /&gt;   reject_unknown_recipient_domain&lt;br /&gt;   reject_rbl_client zen.spamhaus.org&lt;br /&gt;   reject_unauth_destination&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;Save the changes to main.cf and proceed to the next step.&lt;br /&gt;Changing master.cf&lt;br /&gt;&lt;br /&gt;Add the following to the bottom of file /etc/postfix/master.cf:&lt;br /&gt;&lt;br /&gt;filter    unix  -   n   n   -   -   pipe&lt;br /&gt;  flags=Rq user=filter argv=/usr/local/anomy/filter.sh -f ${sender} -- ${recipient}&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;Save the changes to master.cf and use command postfix reload to tell Postfix to re-read the configuration files.&lt;br /&gt;Testing it out&lt;br /&gt;&lt;br /&gt;Postfix should now be filtering messages it receives for your local domains through both Anomy Sanitizer and Spamassassin.&lt;br /&gt;&lt;br /&gt;Test it by sending a few messages with MIME attachments through Postfix addressed to recipients in your domain. The Postfix log file should show each the message being received twice: once by the SMTP daemon with "recipient address", then again by the command-line "sendmail" compatibility program.&lt;br /&gt;&lt;br /&gt;Each message should also now have SpamAssassin headers such as X-Spam-Status:.&lt;br /&gt;Tightening security&lt;br /&gt;&lt;br /&gt;Now that things are working, disable interactive logins for user "filter". Allowing logins for accounts used only by scripts and daemons is a dangerous security hole.&lt;br /&gt;&lt;br /&gt;To disable logins, change the shell for user "filter" to /bin/false or some other invalid shell (use the chsh or usermod commands, or edit /etc/passwd). On Linux and Solaris, you can also "lock" the account using "passwd -l filter".&lt;br /&gt;Separating inbound mail from outbound&lt;br /&gt;&lt;br /&gt;The configuration described above filters messages based on the recipient domain in each e-mail message. This prevents outbound mail from being filtered through Anomy and SpamAssassin.&lt;br /&gt;&lt;br /&gt;Local e-mail (e.g.. someone in "example.com" sending to another person with an "example.com" address) will also not be filtered, provided two conditions are met:&lt;br /&gt;&lt;br /&gt;   1. Your smtpd_recipient_restrictions setting lists permit_mynetworks before it lists check_recipient_access (the restrictions list shown above illustrates this).&lt;br /&gt;   2. The sender's IP address is within the range specified by the $mynetworks setting in your main.cf file.&lt;br /&gt;&lt;br /&gt;If your organization has remote users who send mail to your domain from outside your $mynetworks range (e.g.. laptop travelers using an ISP dialup, home telecommuters, etc.), mail from them will be filtered.&lt;br /&gt;&lt;br /&gt;To prevent this, you might be tempted to just expand your $mynetworks range to include the external ISPs. However, that makes your mail server an open relay... allowing spammers on those ISPs to freely abuse your mail server.&lt;br /&gt;&lt;br /&gt;A better method is to using SASL authentication: external users require a username and password to send mail through your server. The Postfix documentation page ( http://www.postfix.org/docs.html ) lists several HOWTOs on adding SASL authentication to Postfix. Most versions Linux that include Postfix provide additional packages to enable SASL.&lt;br /&gt;&lt;br /&gt;Once SASL is enabled, list permit_sasl_authenticated right after permit_mynetworks in smtpd_recipient_restrictions and senders who use a username and password to connection to the server will be able to bypass the content filtering and mail relay controls.&lt;br /&gt;A word about performance&lt;br /&gt;&lt;br /&gt;The method shown here is an easy and reliable way to filter messages with Postfix. However, performance suffers because each e-mail message has the overhead of invoking a shell, starting the Perl interpreter, and creating a temporary file.&lt;br /&gt;&lt;br /&gt;The file creation overhead can be greatly reduced by mounting directory /var/spool/filter as a memory filesystem ("tmpfs" in Linux and Solaris). These filesystems are thousands of times faster than physical disk and are ideal for short-lived temp files.&lt;br /&gt;&lt;br /&gt;SpamAssassin performance can be improved by using spamd, the "daemonized" version of that program ( http://svn.apache.org/repos/asf/spamassassin/branches/3.2/spamd/README ). See our collection of alternative scripts, below, for a spamd version of filter.sh.&lt;br /&gt;&lt;br /&gt;Ideally the Anomy program should also have a daemon version, but no such version exists yet. Tricks like compiling sanitizer.pl using the perlcc compiler in Perl 5.6+, or using Persistent Perl ( http://daemoninc.com/PersistentPerl/ ) helps a little.&lt;br /&gt;&lt;br /&gt;However, even without tmpfs or daemon versions of the programs, the method described above has been able to filter upwards of 50,000 messages per day on one dual-processor Sun e250 server with 512MB memory. A Linux implementation on a single-cpu 750Mhz Pentium II platform with 512MB demonstrated similar performance levels.&lt;br /&gt;Other filtering scripts&lt;br /&gt;&lt;br /&gt;It's easy to change the filter.sh shell script to suit your own needs. Each email message is a standard text file so basic shell programming or Perl can be used to process it as you wish.&lt;br /&gt;&lt;br /&gt;We've written a few alternative filtering scripts and made them available here:&lt;br /&gt;http://advosys.ca/examples/filter-misc/&lt;br /&gt;&lt;br /&gt;The scripts are fully functional and demonstrate ways to extend the functionality of Postfix filtering. Feel free to experiment with the scripts and adapt them for your own use.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-1263060444847502760?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/1263060444847502760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=1263060444847502760' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/1263060444847502760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/1263060444847502760'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2009/05/lawan-malware-dan-spam-dengan-postfix.html' title='Lawan malware dan spam dengan Postfix | Fighting malware and spam with Postfix'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7815194265066294549.post-5426761945056257220</id><published>2008-09-21T23:43:00.000-07:00</published><updated>2008-09-21T23:50:14.500-07:00</updated><title type='text'>SMTP Authentication for Mail servers</title><content type='html'>&lt;table style="font-family: verdana;" summary="Navigation header" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th colspan="3" align="center"&gt;SMTP Authentication for Mail servers&lt;/th&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style="font-family: verdana;" class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h2 class="title" style="clear: both;"&gt;&lt;a name="smtp_auth_mailservers"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-family: verdana;"&gt;SMTP AUTH for mail server is a feature that is often required to relay mail through other mail servers. To enable &lt;span class="methodname"&gt;SMTP AUTH&lt;/span&gt; for Postfix, acting as mail client in this scenario, you need to do the following steps:&lt;/p&gt;&lt;div style="font-family: verdana;" class="procedure"&gt;&lt;p class="title"&gt;&lt;b&gt;Procedure 10. Configure SMTP AUTH for mail servers&lt;/b&gt;&lt;/p&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;Provide a file, which will holds necessary information about credentials&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Configure Postfix to enable &lt;span class="methodname"&gt;SMTP AUTH&lt;/span&gt; for the smtp daemon&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Configure Postfix to use the file with the SASL credentials.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="font-family: verdana;" class="sect2" lang="en"&gt;&lt;div class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h3 class="title"&gt;&lt;a name="d0e2901"&gt;&lt;/a&gt;1. Add credentials to sasl_passwd&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Postfix, acting as mail client in this scenario, will need to be able to&lt;/p&gt;&lt;div class="orderedlist"&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;know when to provide a username and password&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;pick the right credentials when there is more than one mail server who requires Postfix to SMTP AUTH&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="sect3" lang="en"&gt;&lt;div class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class="title"&gt;&lt;a name="d0e2913"&gt;&lt;/a&gt;1.1. Enter credentials&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;These informations are layed down in &lt;span class="filename"&gt;/etc/postfix/sasl_passwd&lt;/span&gt;:&lt;/p&gt;&lt;pre class="screen"&gt;[root@mail postfix]# less /etc/postfix/sasl_passwd&lt;br /&gt;# foo.com&lt;a name="sasl_passwd_domain"&gt;&lt;/a&gt;         username:password&lt;a name="sasl_passwd_password"&gt;&lt;/a&gt;&lt;br /&gt;# bar.com            username:password&lt;/pre&gt;&lt;div class="calloutlist"&gt;&lt;table summary="Callout list" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="top" width="5%" align="left"&gt;&lt;a href="http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html#sasl_passwd_domain"&gt;&lt;br /&gt;&lt;/a&gt; &lt;/td&gt;&lt;td valign="top" align="left"&gt;&lt;p&gt;Using the hostname Postfix can identify the correct username:password when there are multiple entries in sasl_passwd&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top" width="5%" align="left"&gt;&lt;a href="http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html#sasl_passwd_password"&gt;&lt;br /&gt;&lt;/a&gt; &lt;/td&gt;&lt;td valign="top" align="left"&gt;&lt;p&gt;username:password are entered in plaintext format. They are separated by a single colon “&lt;span class="quote"&gt;:&lt;/span&gt;”&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;The mail server that we want to relay through in this example is mail.my-isp.org; username is &lt;span class="systemitem"&gt;test&lt;/span&gt; and it's password is testpass. We open &lt;span class="filename"&gt;/etc/postfix/sasl_passwd&lt;/span&gt; and add our credentials. When we are done it looks like this:&lt;/p&gt;&lt;pre class="programlisting"&gt;[root@mail postfix]# cat /etc/postfix/sasl_passwd&lt;br /&gt;mail.my-isp.org      test:testpass&lt;/pre&gt;&lt;/div&gt;&lt;div class="sect3" lang="en"&gt;&lt;div class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class="title"&gt;&lt;a name="d0e2946"&gt;&lt;/a&gt;1.2. Secure sasl_passwd&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;As you have noticed, the credentials in &lt;span class="filename"&gt;sasl_passwd&lt;/span&gt; are entered plaintext. That means that anybody who can open the file will be able to read this sensitive information. Therefore we change ownership and permission to &lt;span class="systemitem"&gt;root&lt;/span&gt; and r/w only.&lt;/p&gt;&lt;pre class="screen"&gt;[root@mail postfix]# chown root:root /etc/postfix/sasl_passwd &amp;amp;&amp;amp; chmod 600 /etc/postfix/sasl_passwd&lt;/pre&gt;&lt;p&gt;After these commands ownership and permissions read like this:&lt;/p&gt;&lt;pre class="programlisting"&gt;[root@mail postfix]# ls -all /etc/postfix/sasl_passwd&lt;br /&gt;-rw-------    1 &lt;span class="systemitem"&gt;root&lt;/span&gt;     &lt;span class="systemitem"&gt;root&lt;/span&gt;           79 Dec 30 23:50 /etc/postfix/sasl_passwd&lt;/pre&gt;&lt;div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"&gt;&lt;table summary="Note" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="left"&gt;Note&lt;/th&gt;&lt;/tr&gt;&lt;tr style="font-weight: bold;"&gt;&lt;td colspan="2" valign="top" align="left"&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;You wonder why Postfix running as user postfix can read this file?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Postfix will start as user root, read all files that need &lt;span class="systemitem"&gt;root&lt;/span&gt;&lt;/span&gt; permission and switch to user postfix after that.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="sect3" lang="en"&gt;&lt;div class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class="title"&gt;&lt;a name="d0e2977"&gt;&lt;/a&gt;1.3. Create sasl_passwd DB file&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Now that we have set correct ownership and permissions there is one more thing to do. A plaintext file can't be read as fast as database. Postfix requires this file to be a database, because it doesn't want to spend a lot of time looking the credentials up when it needs to get it's job done. We create a &lt;span class="database"&gt;sasl_passwd.db&lt;/span&gt; with the help of &lt;span&gt;&lt;b class="command"&gt;&lt;span&gt;&lt;b class="command"&gt;postmap&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;:&lt;/p&gt;&lt;pre class="screen"&gt;[root@mail postfix]# postmap hash:/etc/postfix/sasl_passwd&lt;/pre&gt;&lt;p&gt;After that there will be a new file &lt;span class="database"&gt;sasl_passwd.db&lt;/span&gt; in &lt;span class="filename"&gt;/etc/postfix/&lt;/span&gt;.&lt;/p&gt;&lt;pre class="programlisting"&gt;[root@mail postfix]# ls -all /etc/postfix/sasl_passwd.db&lt;br /&gt;-rw-------    1 &lt;span class="systemitem"&gt;root&lt;/span&gt;     &lt;span class="systemitem"&gt;root&lt;/span&gt;        12288 Mar 13 23:13 /etc/postfix/sasl_passwd.db&lt;/pre&gt;&lt;p&gt;From the onwership and permissions you can see that &lt;span&gt;&lt;b class="command"&gt;postmap&lt;/b&gt;&lt;/span&gt; applied the same as in the source file. That's it for &lt;span class="filename"&gt;sasl_passwd&lt;/span&gt;; you only need to get back when the informations need an update.&lt;/p&gt;&lt;div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"&gt;&lt;table summary="Note" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="left"&gt;Note&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2" valign="top" align="left"&gt;&lt;p&gt;Don't forget to &lt;span&gt;&lt;b class="command"&gt;postmap&lt;/b&gt;&lt;/span&gt; the file, when you change credentials. Postfix will tell you anyway by claiming that &lt;span class="filename"&gt;sasl_passwd&lt;/span&gt; is newer than &lt;span class="filename"&gt;sasl_passwd.db&lt;/span&gt; in the maillog.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: verdana;" class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h3 class="title"&gt;&lt;a name="d0e3027"&gt;&lt;/a&gt;2. Enable SMTP AUTH&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-family: verdana;"&gt;There are only three options that you must set to enable &lt;span class="methodname"&gt;SMTP AUTH&lt;/span&gt; for mail servers in Postfix.&lt;/p&gt;&lt;div class="note" style="margin-left: 0.5in; margin-right: 0.5in; font-family: verdana;"&gt;&lt;table summary="Note" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="left"&gt;Note&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2" valign="top" align="left"&gt;&lt;p&gt;You can easily tell that these parameters are settings for the &lt;span class="application"&gt;smtp&lt;/span&gt; daemon. They all begin with &lt;i class="parameter"&gt;smtp_&lt;/i&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="font-family: verdana;" class="sect3" lang="en"&gt;&lt;div class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class="title"&gt;&lt;a name="d0e3044"&gt;&lt;/a&gt;2.1. Enable SMTP AUTH&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;The first thing we do is enabling &lt;span class="methodname"&gt;SMTP AUTH&lt;/span&gt; for the &lt;span class="application"&gt;smtp&lt;/span&gt; daemon. We open main.cf and enter some documentation first and then we set &lt;i class="parameter"&gt;smtp_sasl_auth_enable&lt;/i&gt; to &lt;span class="option"&gt;yes&lt;/span&gt;.&lt;/p&gt;&lt;pre class="screen"&gt;# SASL SUPPORT FOR SERVERS&lt;br /&gt;#&lt;br /&gt;# The following options set parameters needed by Postfix to enable&lt;br /&gt;# Cyrus-SASL support for authentication of mail servers.&lt;br /&gt;#&lt;br /&gt;smtp_sasl_auth_enable = yes&lt;/pre&gt;&lt;/div&gt;&lt;div style="font-family: verdana;" class="sect3" lang="en"&gt;&lt;div class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class="title"&gt;&lt;a name="d0e3063"&gt;&lt;/a&gt;2.2. Set path to sasl_passwd&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Then we tell Postfix where to find &lt;span class="filename"&gt;sasl_passwd&lt;/span&gt; by adding &lt;i class="parameter"&gt;smtp_sasl_password_maps =&lt;/i&gt; &lt;i class="replaceable"&gt;hash:/path/to/sasl_passwd&lt;/i&gt; to the configuration.&lt;/p&gt;&lt;pre class="screen"&gt;smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd&lt;/pre&gt;&lt;/div&gt;&lt;div style="font-family: verdana;" class="sect3" lang="en"&gt;&lt;div class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class="title"&gt;&lt;a name="d0e3079"&gt;&lt;/a&gt;2.3. Set security options&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Finally we set security options. In our scenario we will allow Postfix to use anonymous and plaintext authentication. That's why we set the paramter, but leave it empty:&lt;/p&gt;&lt;pre class="screen"&gt;smtp_sasl_security_options =&lt;/pre&gt;&lt;p&gt;All settings together will give this listing in &lt;span class="filename"&gt;main.cf&lt;/span&gt;.&lt;/p&gt;&lt;pre class="programlisting"&gt;# SASL SUPPORT FOR SERVERS&lt;br /&gt;#&lt;br /&gt;# The following options set parameters needed by Postfix to enable&lt;br /&gt;# Cyrus-SASL support for authentication of mail servers.&lt;br /&gt;#&lt;br /&gt;smtp_sasl_auth_enable = yes&lt;br /&gt;smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd&lt;br /&gt;smtp_sasl_security_options =&lt;/pre&gt;&lt;/div&gt;&lt;div style="font-family: verdana;" class="titlepage"&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class="title"&gt;&lt;a name="d0e3093"&gt;&lt;/a&gt;2.4. Reload Postfix&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-family: verdana;"&gt;All that you need to do now is to reload Postfix and you're ready to use your ISPs mail server to relay mail.&lt;/p&gt;&lt;pre style="font-family: verdana;" class="screen"&gt;[root@mail postfix]# postfix reload&lt;br /&gt;postfix/postfix-script: refreshing the Postfix mail system&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7815194265066294549-5426761945056257220?l=rokokdaun-ossrnd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rokokdaun-ossrnd.blogspot.com/feeds/5426761945056257220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7815194265066294549&amp;postID=5426761945056257220' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/5426761945056257220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7815194265066294549/posts/default/5426761945056257220'/><link rel='alternate' type='text/html' href='http://rokokdaun-ossrnd.blogspot.com/2008/09/smtp-authentication-for-mail-servers.html' title='SMTP Authentication for Mail servers'/><author><name>Rokokdaun</name><uri>http://www.blogger.com/profile/11119782941484609526</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_s5Gy7_Jb22M/ShI9MpSoCHI/AAAAAAAAABk/eQFPhtdVDDE/S220/soki2.jpg'/></author><thr:total>1</thr:total></entry></feed>
