<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; mail server</title> <atom:link href="http://www.ghacks.net/tag/mail-server/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 20:51:26 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Quick and easy pop or imap server with Dovecot</title><link>http://www.ghacks.net/2010/02/25/quick-and-easy-pop-or-imap-server-with-dovecot/</link> <comments>http://www.ghacks.net/2010/02/25/quick-and-easy-pop-or-imap-server-with-dovecot/#comments</comments> <pubDate>Thu, 25 Feb 2010 00:57:27 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Email]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[imap]]></category> <category><![CDATA[linux email server]]></category> <category><![CDATA[mail server]]></category> <category><![CDATA[pop3]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=23326</guid> <description><![CDATA[Picking up where we left off a while ago, let&#8217;s add yet another feature to our Ubuntu server. We&#8217;ve already looked at using Postfix with multiple topics (see Postfix on Ghacks). But we never discussed a means to deliver the mail from the server to the client. That will now change. Linux has multiple ways [...]]]></description> <content:encoded><![CDATA[<p>Picking up where we left off a while ago, let&#8217;s add yet another feature to our Ubuntu server. We&#8217;ve already looked at using Postfix with multiple topics (see <a
title="Postfix on Ghacks" href="http://www.ghacks.net/index.php?s=postfix" target="_blank">Postfix on Ghacks</a>). But we never discussed a means to deliver the mail from the server to the client. That will now change. Linux has multiple ways to deliver email to clients. One of the easiest (as well as most flexible) means is via <a
title="Dovecot" href="http://www.dovecot.org/" target="_blank">Dovecot</a>.</p><p>Dovecot is an open source IMAP/POP server that runs on either Linux or UNIX systems. Dovecot is suitable for both small and large installations (I just recently installed Dovecot on a 300+ user system) and will work in the background like a workhorse.</p><p>In this article I will show you how to install Dovecot and get it up and running with either IMAP or POP quickly and with as little pain as possible.</p><p><span
id="more-23326"></span><strong>Installation</strong></p><p>Since we are installing on a Ubuntu machine, installing Dovecot is as simple as running the command <em>sudo apt-get install dovecot-common dovecot-imapd dovecot-pop3d</em>. You can actually install either <em>dovecot-imapd </em>or <em>dovecot-pop3d </em>depending upon which protocol you need to support.</p><p>Once installed the executable command is <em>/etc/init.d/dovecot start</em>.</p><p><strong>Configuration</strong></p><p>There is only one configuration file you need to deal with. That file will be located in either <strong>/etc/dovecot.conf </strong>or <strong>/etc/dovecot/dovecot.conf</strong>. Believe it or not, the default configuration file is fairly well set up for you. You will only have to make a few modifications. So don&#8217;t let the 1,000+ line configuration file look you in the eye and defeat you. You can best this beast with little time.</p><p>The first configuration you will need to make is to configure the protocol. Look for the line:</p><p><code>protocols = pop3 pop3s imap imaps</code></p><p>You can just leave this as is, or, if you know you are only using certain protocols, edit to suit your set up. Just remove the protocols you do not need.</p><p>The next line you need to look for is:</p><p>mail_location =</p><p>There are two popular choices here:<br
/> <code>mail_location = maildir:~/Maildir # (for maildir)</code><br
/> or<br
/> <code>mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u # (for mbox)</code></p><p>In other words, if your users&#8217; mailboxes will reside in the home directory, use the former. If the users&#8217; mailboxes will reside in <strong>/var/spool/mail</strong>, use the latter.</p><p><strong>Restart and test</strong></p><p>Now restart Dovecot with the command <em>/etc/init.d/dovecot restart</em> and let&#8217;s give this system a test. We&#8217;ll test this with the help of telnet. Issue the command <em>telent ADDRESS PROTO </em>Where ADDRESS is the address of the server and PROTO is the protocol you want to use (either pop3 or imap). Here&#8217;s what the test will look like:<br
/> <code>telnet localhost pop3<br
/> +OK dovecot ready.<br
/> user USER<br
/> +OK<br
/> pass PASSWORD<br
/> +OK Logged in.<br
/> list<br
/> +OK 1 messages:<br
/> 1 622</code></p><p>Where USER is a legitimate user on the system and PASSWORD is the password for that user.</p><p>If you see the +OK at the end, Dovecot is ready to go. If you have any problems, the best place to look is in <strong>/var/log/maillog. </strong>And the best way to run that check is by using two terminal windows. In terminal A issue the command <em>tail -f /var/log/maillog </em>and in terminal B run the Dovecot test above. Terminal A should report any issues which will be your starting point for troubleshooting.</p><p><strong>Final thoughts</strong></p><p>Dovecot really is that easy to install. Of course Dovecot is much more flexible than that. In later articles we will discuss other configuration options for this outstanding server.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/02/25/quick-and-easy-pop-or-imap-server-with-dovecot/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Install Postfix for reliable email delivery</title><link>http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/</link> <comments>http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/#comments</comments> <pubDate>Sat, 24 Oct 2009 15:43:36 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Email]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[mail server]]></category> <category><![CDATA[Postfix]]></category> <category><![CDATA[ubuntu mail server]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=17656</guid> <description><![CDATA[With your Ubuntu LAMP Server up and running (see my previous article &#8220;Installing Ubuntu Server 9.04&#8221; and &#8220;How to: install a LAMP server&#8220;) and you are ready to set it up as a mail server. For the longest time Sendmail was the de facto standard Linux mail server. But over time serious security issues drove [...]]]></description> <content:encoded><![CDATA[<p>With your Ubuntu LAMP Server up and running (see my previous article &#8220;<a
title="Installing Ubuntu Server 9.04" href="http://www.ghacks.net/2009/09/03/installing-ubuntu-server-9-04/" target="_blank">Installing Ubuntu Server 9.04</a>&#8221; and &#8220;<a
title="How to: Install a LAMP server" href="http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/" target="_blank">How to: install a LAMP server</a>&#8220;) and you are ready to set it up as a mail server. For the longest time Sendmail was the de facto standard Linux mail server. But over time serious security issues drove users to a much more reliable, secure, and easier to configure alternative. That alternative is <a
title="Postfix" href="http://www.postfix.org" target="_blank">Postfix</a>. Postfix is much easier to configure than Sendmail and it is easier to add third-party &#8220;modules&#8221; (such as Spamassassin and ClamAV &#8211; will be discussed in later articles).</p><p>In this article you are going to learn how to install Postfix on your already running Ubuntu Server 9.04. I am going to assume you have it networked and have a domain registered that you want to use. At the end of this article you should have a working mail server, ready for use.</p><p><span
id="more-17656"></span></p><p>NOTE: For the purposes of this article, I will use the fake domain &#8220;www.ubuntumail.net&#8221;. You will want to use your domain in place of that.</p><p>The first step is to install the software necessary. Since you already have LAMP up and running all you will need to do is install Postfix and it&#8217;s dependencies. To do this open up a terminal and issue the following command:</p><p><em>sudo apt-get install postfix</em></p><p>The installation will not only install Postfix, but will start the Postfix daemon for you. You will most likely want to test this installation by running the old telnet test like so:</p><p><em>telnet localhost 25</em></p><p>You should see something like:<br
/> <code>Trying 127.0.0.1...<br
/> Connected to www.ubuntumail.net.<br
/> Escape character is '^]'.<br
/> 220 localhost.localdomain ESMTP Postfix (Ubuntu)</code></p><p>If you do, success! Now you are ready to take care of the configuration steps.</p><p><strong>Configuration</strong></p><p>There is only one file you need to deal with in Postfix. That file is <strong>/etc/postfix/main.cf</strong>. There really isn&#8217;t much to configuring this file (for a basic installation &#8211; which is all we are dealing with right now).</p><p>To set your Postfix installation up for your domain you will want to open that file for editing like so:</p><p><em>sudo nano /etc/postfix/main.cf</em></p><p>The above command opens <strong>main.cf </strong>in the Nano editor. What you need to look for is this section:</p><p><code>myhostname = ubuntumail<br
/> alias_maps = hash:/etc/aliases<br
/> alias_database = hash:/etc/aliases<br
/> myorigin = /etc/mailname<br
/> mydestination = ubuntumail.net, ubuntumail, localhost.localdomain, localhost<br
/> relayhost =<br
/> #mynetworks = 127.0.0.0/8<br
/> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128<br
/> mailbox_command = procmail -a "$EXTENSION"<br
/> mailbox_size_limit = 0<br
/> recipient_delimiter = +<br
/> inet_interfaces = all</code></p><p>As you can see, I have already configured the above section to work with our sample domain. You will need to go through the above section and insert your domain where you see ubuntumail.net. You will want to pay close attention to the <strong>mydestination</strong> line. As you can see that line contains:</p><p>ubuntumail.net, ubuntumail, localhost.localdomain</p><p>This helps to avoid mailloops in Postfix.</p><p>Some people also like to use the <strong>mydomain</strong> parameter, but since <strong>mydomain </strong>is taken from <strong>$myhostname </strong>by removing the first part (unless that would cause the domain to be a top-level domain) it can be redundant. If, however, your mail server serves your entire domain, you will need to use the <strong>mydomain</strong> parameter. For that you would insert:</p><p><code>mydomain = ubuntumail.net</code></p><p>at the top of the section shown above.</p><p>Once you have that configuration saved, restart Postfix with the command:</p><p><em>sudo /etc/init.d/postfix reload</em></p><p>To reload the mail server.</p><p><strong>Users</strong></p><p>As this is a Linux box, you will want to make sure you have a user created for every email address you need to serve up. So create your users with your favorite user creation tool. Since you are most likely installing on a Ubuntu Server (sans GUI), you will be using the <em>useradd </em>command. You can accomplish this with the command:</p><p><em>sudo useradd -m USERNAME</em></p><p>Where USERNAME is the actual username you want to use. Next you will need to give the user a password with the command:</p><p>sudo passwd USERNAME</p><p>Where USERNAME is the actual username you want to use. You will be prompted to enter the password twice.</p><p>After you have entered the users, you can then test the mail server by sending an email from an external source to see if it arrives. If there is a problem make sure the first place you look is <strong>/var/log/mail.err</strong>.</p><p><strong>Final thoughts</strong></p><p>At this point you should have a basic, working mail server. Postfix does make this task much more simple than did Sendmail. In my next article I will cover adding Spamassassin to your Postfix mail server to keep SPAM from getting in.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Mail relaying made simple with Postfix</title><link>http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/</link> <comments>http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/#comments</comments> <pubDate>Wed, 23 Sep 2009 01:17:26 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Email]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[mail relaying]]></category> <category><![CDATA[mail server]]></category> <category><![CDATA[Postfix]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=16586</guid> <description><![CDATA[Have you installed the Postfix as an easier to use, more secure alternative to Sendmail only to find yourself having trouble with the old &#8220;unable to relay&#8221; errors? This can be very frustrating and have you pulling out your hair in no time. MTAs (Mail Transfer Agents) can be a tricky lot to set up. [...]]]></description> <content:encoded><![CDATA[<p>Have you installed the Postfix as an easier to use, more secure alternative to Sendmail only to find yourself having trouble with the old &#8220;unable to relay&#8221; errors? This can be very frustrating and have you pulling out your hair in no time.</p><p>MTAs (Mail Transfer Agents) can be a tricky lot to set up. Add in to the mix something like relaying and you have all the ingredients for an installation NOT working. Fortunately <a
title="Postfix" href="http://www.postfix.org/" target="_blank">Postfix</a> isn&#8217;t nearly as complicated as Sendmail, so relaying isn&#8217;t something you need guru-level access to solve. In this tutorial I am going to show you how to set up Postfix for easy relaying. You can always add this to the Ubuntu Server series that started with the article &#8220;<a
title="Installing Ubuntu Server 9.04" href="http://www.ghacks.net/2009/09/03/installing-ubuntu-server-9-04/" target="_blank">Installing Ubuntu Server 9.04</a>&#8220;.</p><p><span
id="more-16586"></span><strong>Installing Postfix</strong></p><p>Just in case you haven&#8217;t already, you can install Postfix on your already running Ubuntu Server install with the command:</p><p><em>sudo apt-get install postfix</em></p><p>But I am going to assume you already have Postfix up and running already. And if you&#8217;re looking into relaying with Postfix, your problem is that you can receive mail, you just can&#8217;t send it. Let&#8217;s fix that problem.</p><p><strong>Configure Postfix</strong></p><p>The file you need to first take care of is <strong>/etc/postfix/main.cf</strong>. You will need sudo access so open this file with the command:</p><p><em>sudo nano /etc/postfix/main.cf</em></p><p>Now add this to the bottom of that file:</p><p><code># SMTP Authentication<br
/> smtp_sasl_auth_enable = yes<br
/> smtpd_sasl_type = dovecot<br
/> smtpd_sasl_path = private/auth<br
/> smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd</code></p><p>NOTE: The portion starting with &#8220;smtpd_recipient_restrictions&#8221; and ending with &#8220;reject_unauth_destination&#8221; is actually one line.</p><p>NOTE: The portion starting with &#8220;reject_unauth&#8221; and ending with &#8220;sasl_passwd&#8221; is also only one line.</p><p>NOTE: The above assumes you are using Dovecot as your IMAP server.</p><p>The last line of the above should give you a hint as to what is next. Yes, you have to create a file, <strong>sasl_passwd</strong>, for Postfix to use as a password file. This file will be located in <strong>/etc/postfix/sasl/</strong> and will look like the following:</p><p>address.for.relaying   username:password</p><p>Where<em>:</em></p><ul><li><em>address.for.relaying </em>is the actual mail server you will use for relaying.</li><li><em>username</em> is the username for authentication on the relaying mail server.</li><li><em>password</em> is the password for authentication on the relaying mail server.</li></ul><p>The next step is to create the the sasl_passwd DB file so that Postfix has something it can read. To do this, issue the command:</p><p><em>sudo postmap hash:/etc/postfix/sasl/sasl_passwd</em></p><p>You should now see a new file in the <strong>/etc/postfix/sasl </strong>directory called <strong>sasl_passwd.db.</strong></p><p>One file step before restarting Postfix. Because the password file is plaintext it should be secured so that it can not be read by just any user. Say, for instance, you want Postfix to only be read by the root user. For this issue the command:</p><p><em>sudo chown root:root /etc/postfix/sasl/sasl_passwd &amp;&amp; chmod 600 /etc/postfix/sasl/sasl_passwd</em></p><p>Do the same thing with the <strong>sasl_passwd.db </strong>file like so:</p><p><em>sudo chown root:root /etc/postfix/sasl/sasl_passwd.db &amp;&amp; chmod 600 /etc/postfix/sasl/sasl_passwd.db</em></p><p>NOTE: If you have need for a different user, you can chown the file to whatever user you want&#8230;just make sure it is a secure user.</p><p>You&#8217;re finished. All that is left is to restart Postfix with the command:</p><p><em>sudo /etc/init.d/postfix restart</em></p><p>Open up your mail client and text to see if relaying is now working for you.</p><p><strong>Final thoughts</strong></p><p>Gone are the days of the overly complicated (and insecure) Sendmail configurations. Setting up relaying is simple when you are using Postfix.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Make Sendmail accept mail from external sources</title><link>http://www.ghacks.net/2009/06/05/make-sendmail-accept-mail-from-external-sources/</link> <comments>http://www.ghacks.net/2009/06/05/make-sendmail-accept-mail-from-external-sources/#comments</comments> <pubDate>Fri, 05 Jun 2009 17:17:07 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Email]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[mail server]]></category> <category><![CDATA[sendmail]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2009/06/05/make-sendmail-accept-mail-from-external-sources/</guid> <description><![CDATA[When you&#8217;re setting up servers the last thing you want to have to do is put in an all nighter in order to get Sendmail accepting email from outside of your local network. If you&#8217;re new to Linux this can be a real nightmare. The good news is once this is configured, it&#8217;ll just keep [...]]]></description> <content:encoded><![CDATA[<p>When you&#8217;re setting up servers the last thing you want to have to do is put in an all nighter in order to get Sendmail accepting email from outside of your local network. If you&#8217;re new to Linux this can be a real nightmare. The good news is once this is configured, it&#8217;ll just keep on working until you take it down. But getting Sendmail to the point where it is working correctly can be a real nightmare.</p><p>In this article I will give you a step by step setup for getting Sendmail to accept email from outside of localhost and your own LAN. This will require you to manually edit some configuration files and you will need root access (or sudo access) in order to do this.</p><p><span
id="more-13330"></span>In order for this to work I am going to assume you have your own domain name. For the sake of this article we&#8217;ll illustrate with the sample domain www.sampledomain.com. I will also assume this FQDN is working properly and you have Sendmail already installed and starts properly. The operating system I am using for this example is Ubuntu Server 8.10. With that in mind, let&#8217;s get to this.</p><p><strong>/etc/mail<br
/> </strong></p><p>All of the configurations you will be doing will be within the <strong>/etc/mail</strong> directory. In this directory you will be modifying the following:</p><ul><li>sendmail.cf</li><li>sendmail.mc</li><li>access</li><li>local-host-names</li></ul><p>Once all of the modifications are made you will then restart Sendmail.</p><p><strong>sendmail.mc</strong></p><p>By default Sendmail is setup to only accept mail from localhost. This is the first change that needs to be made. This change is made in the sendmail.mc file. What you are looking for is the following line:</p><p><code>DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Addr=127.0.0.1, Port=smtp')dnl<br
/> </code><br
/> The line needs to be altered to look like:</p><p><code>DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp')dnl</code></p><p>The <em>Addr=127.0.0.1 </em>section instructs Sendmail to only accept email from localhost.</p><p>Now you need to add these changes to the <strong>sendmail.cf </strong>file by issuing the command:</p><p>sudo make -C /etc/mail</p><p>This will add your changes. The reason I use <strong>sendmail.mc</strong> for these options is that configuring the DAEMON_OPTIONS is a bit confusing and hard to find. The other options are quite easy to add directly to <strong>sendmail.cf.</strong></p><p><strong>sendmail.cf</strong></p><p>The options you will want to add in this file are for setting your domain name.  The first option is under the &#8220;my official domain name&#8221; heading. What you will see in the example is:</p><p><em>#Dj$w.Foo.Com</em></p><p>replace this with (and remember we&#8217;re using our sample domain):</p><p><em>Djsampledomain.com</em></p><p>The next option will be set for masquerading. In some recent Sendmail releases this is not in the <em>cf </em>by default. Take a look for the quoting section that looks like:</p><p><code># dequoting map<br
/> Kdequote dequote<br
/> # class E: names that should be exposed as from this host, even if we masquerade<br
/> # class L: names that should be delivered locally, even if we have a relay<br
/> # class M: domains that should be converted to $M<br
/> # class N: domains that should not be converted to $M<br
/> #CL root</code></p><p>At the bottom of this add:</p><p><code># who I masquerade as (null for no masquerading) (see also $=M)<br
/> DMsampledomain.com</code></p><p>Now you are done with the <strong>sendmail.cf</strong> file.</p><p><strong>access</strong></p><p>This file defines access control to your mail server. For our sample we will add the following to the bottom of this file:</p><p><code>sampledomain.com<br
/> www.sampledomain.com<br
/> mail.sampledomain.com</code></p><p>Save that file and you have one more configuration to take care of.</p><p><strong>local-host-names</strong></p><p>This file will define the host names associated with your Sendmail server. In this file we will add:</p><p><code>sampledomain.com<br
/> mail.sampledomain.com</code></p><p><strong>Restart Sendmail</strong></p><p>It is now time to restart Sendmail. Do this with the command:</p><p><em>/etc/init.d/sendmail reload</em></p><p>Once sendmail restarts you should be accepting email from the outside world. Run a test with an email address outside of your domain.</p><p><strong>Final thoughts</strong></p><p>Sendmail isn&#8217;t really as difficult as it is made out to be. With this simple walkthrough you should have Sendmail accepting mail from all over quickly and easily.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/06/05/make-sendmail-accept-mail-from-external-sources/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Use Spamassassin for better SPAM detection</title><link>http://www.ghacks.net/2009/05/01/use-spamassassin-for-better-spam-detection/</link> <comments>http://www.ghacks.net/2009/05/01/use-spamassassin-for-better-spam-detection/#comments</comments> <pubDate>Fri, 01 May 2009 20:42:56 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Email]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[mail server]]></category> <category><![CDATA[spam]]></category> <category><![CDATA[SPAM filtering]]></category> <category><![CDATA[spamassassin]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=12517</guid> <description><![CDATA[The Linux operating system is typically immune to viruses attached to email. But it is not immune to SPAM. Left unfiltered your inbox would quickly fill up with more SPAM than you care to delete. What is worse is owning a mail server and not protecting your users from a barrage of SPAM. By employing [...]]]></description> <content:encoded><![CDATA[<p>The Linux operating system is typically immune to viruses attached to email. But it is not immune to SPAM. Left unfiltered your inbox would quickly fill up with more SPAM than you care to delete. What is worse is owning a mail server and not protecting your users from a barrage of SPAM.</p><p>By employing Spamassassin you can set up an outstanding SPAM  filter system that will protect your users. It&#8217;s not as simple as double clicking an .exe file to install, but the end results will be worth the time and effort.</p><p><span
id="more-12517"></span><strong>Installing the tool<br
/> </strong></p><p>This portion of the task is simple. Open up your Add/Remove utility, do a search for &#8220;spamassassin&#8221; (no quotes), select the results, and apply the changes. After you have installed the package you need to take a few steps to finish up the installation.</p><p>Now you are going to need a <strong>local.rc </strong>file. You can open up the <strong>/etc/mail/spamassassin/local.rc </strong>file for hand editing, or you can use this <a
title="Spamassassin configurator" href="http://www.yrex.com/spam/spamconfig.php" target="_blank">handy web-based tool</a> to set it up for you. This tool was written by Michael Moncur and makes the setup of Spamassassin much easier. Once you have selected all your options click the Generate button and then click the Download button. You will need to place this file in <strong>/etc/mail/spamassassin</strong> in order for it to be used.</p><p>It&#8217;s time to start the daemon. Issue the command <strong>/etc/init.d/spamassassin start </strong>(or <strong>/etc/rc.d/init.d/spamassassin start</strong> &#8211; depending upon your distribution.)</p><p><strong>Test the install</strong></p><p>Spamassassin comes with a sample file you can run through the filter for testing. In modern installations this file is located in <strong>/usr/share/doc/spamassassin-*/sample-spam.txt</strong>. To test this issue the command:</p><p><em>spamc -R &lt;/usr/share/doc/spamassassin-3.2.5/sample-spam.txt</em></p><p>You should see results like this:</p><p><em>Content analysis details:   (1000.0 points, 5.0 required)</em></p><p><em>pts rule name              description<br
/> &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> -0.0 NO_RELAYS              Informational: message was not relayed via SMTP<br
/> 1000 GTUBE                  BODY: Generic Test for Unsolicited Bulk Email<br
/> -0.0 NO_RECEIVED            Informational: message has no Received headers</em></p><p>As you can see, this sample scored 1000 points. Only 5 points are required for an email to be considered SPAM. It&#8217;s safe to say this is SPAM and safe to say Spamassassin is working.</p><p><strong>Using Spamassassin with Procmail</strong></p><p>You will need to set up Procmail (or another MTA) in order to deliver mail. What we want to do is set this up globally so you don&#8217;t have to deal with each users ~/.procmailrc file. To do this you will edit the <strong>/etc/procmailrc</strong> file. All you need to do is add the following lines:</p><p><em>DROPPRIVS=yes</em></p><p><em>:0fw</em></p><p><em>| /usr/bin/spamc</em></p><p>Spamassassin should now be working.</p><p><strong>Training spamassassin</strong></p><p>At first you might not notice much of a drop in SPAM. This is because Spamassassin has to have a period of training.  There is a built-in tool for this called sa-learn. What you need to do is create two folders, one for SPAM and one for HAM. In the SPAM folder collect 100 or so emails that are definately SPAM. In the HAM folder collect 100 or so valid emails. Once you have those folders collected issue the following commands:</p><p>sa-learn &#8211;spam /PATH/TO/SPAM/FOLDER</p><p>sa-learn &#8211;ham /PATH/TO/HAM/FOLDER</p><p>Where /PATH/TO/SPAM/FOLDER and /PATH/TO/HAM/FOLDER are the explicit paths to these folders.</p><p>You can also set up a cron job to help Spamassassin train frequently if you need.</p><p><strong>Final Thoughts</strong></p><p>If SPAM is clogging up your Linux mail server you will be wise to employ a tool like Spamassassin. Your users and your IT staff will thank you for it.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/05/01/use-spamassassin-for-better-spam-detection/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Quickly check mails without downloading them</title><link>http://www.ghacks.net/2008/05/19/quickly-check-mails-without-downloading-them/</link> <comments>http://www.ghacks.net/2008/05/19/quickly-check-mails-without-downloading-them/#comments</comments> <pubDate>Mon, 19 May 2008 16:17:18 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Email]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[mail]]></category> <category><![CDATA[mail server]]></category> <category><![CDATA[pal mail]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=4187</guid> <description><![CDATA[Retrieving all mail headers from the emails that are currently stored on the mail server can be necessary for several reasons. The first is that it is possible to delete mails without having to retrieve them completely. This can come in handy if mails with huge attachments are blocking the retrieval of other emails which [...]]]></description> <content:encoded><![CDATA[<p>Retrieving all mail headers from the emails that are currently stored on the mail server can be necessary for several reasons. The first is that it is possible to delete mails without having to retrieve them completely. This can come in handy if mails with huge attachments are blocking the retrieval of other emails which can be nerve wrecking especially on slower connections. Very helpful if you use your mobile phone to go online with your notebook and pay by the amount of Kilobytes that have been downloaded.</p><p>A second application would be to fight spam before it is retrieved and downloaded to a local PC. <a
href="http://www.mirekw.com/winfreeware/palmail.html">Pal Mail</a> is a tiny secure application that can retrieve the mail headers of an unlimited number of accounts with the main option to delete mails right on the mail server. Retrieved are the mail headers and the messages but not the attachments of the mails.</p><p>Every mail can be marked for deletion which effectively deleted it from the mails server. The consequence is that your primary mail client will not retrieve the messages that have been deleted before.</p><p><span
id="more-4187"></span><a
href='http://www.ghacks.net/wp-content/uploads/2008/05/palmail.png'><img
src="http://www.ghacks.net/wp-content/uploads/2008/05/palmail-500x382.png" alt="pal mail" title="pal mail" width="500" height="382" class="alignnone size-medium wp-image-4188" /></a></p><p>Pal Mail is a standalone application that does not require any dlls or other files to run. This makes it an idea software for a portable device.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/05/19/quickly-check-mails-without-downloading-them/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
