<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to protect against spam in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802937#M2445</link>
    <description>Hi!&lt;BR /&gt;I had this problem some weeks ago with my private pop3-account. I searched up the web an found the following solution&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sourceforge.net/projects/mailfilter" target="_blank"&gt;http://sourceforge.net/projects/mailfilter&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is a nice program to define your own filter based on a line-defined description and it removes the mails directly on the server. You need not load down the message and filter it on your own machine. And it can check more than one account on it's own!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;MM</description>
    <pubDate>Wed, 11 Sep 2002 06:41:43 GMT</pubDate>
    <dc:creator>Malycha</dc:creator>
    <dc:date>2002-09-11T06:41:43Z</dc:date>
    <item>
      <title>How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802931#M2439</link>
      <description>Dear Sir or Madam,&lt;BR /&gt;&lt;BR /&gt;I have a problem with spam that always send to my organization. It uses my organization email address and then send to my organization that means it uses open@forum.org.kh and send to open@forum.org.kh. Do you have any idea how to protect against this spam? I have attached the message source to you. Thank you so much for your assistance.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Choth</description>
      <pubDate>Tue, 10 Sep 2002 02:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802931#M2439</guid>
      <dc:creator>Chan Choth PUTH</dc:creator>
      <dc:date>2002-09-10T02:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802932#M2440</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Does your server have multiple nics? Say 1 for internal and 1 for external. &lt;BR /&gt;If so, you may set ipchains / iptables rules not to receive incoming packets with internal address by your external NIC.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 10 Sep 2002 08:04:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802932#M2440</guid>
      <dc:creator>I_M</dc:creator>
      <dc:date>2002-09-10T08:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802933#M2441</link>
      <description>Hi,&lt;BR /&gt;mansari , Spamming is done through , open mail relays easily using SMTP commands. &lt;BR /&gt;spammer connects to your SMTP server from internet gives mail from: address as the user&lt;BR /&gt;in your domain ( fake address ) and mail to:&lt;BR /&gt;address as valid user in your domain. &lt;BR /&gt;Now if your mail server is not properly configured , it will accept the mail and will&lt;BR /&gt;sent to valid user with fake from address with&lt;BR /&gt;undesirable contents.&lt;BR /&gt;So packet filtering  with ipfilter will not stop this.&lt;BR /&gt;Choth , what is the mail server you using ?&lt;BR /&gt;Configure it in such a way that it will not&lt;BR /&gt;accept mail from internet with sender domain&lt;BR /&gt;as your own domain. And also your mail server&lt;BR /&gt;should only accept mails meant for only your&lt;BR /&gt;own domain.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Sep 2002 08:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802933#M2441</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-09-10T08:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802934#M2442</link>
      <description>Thank you kumar,&lt;BR /&gt;&lt;BR /&gt;I thought this is a "mail rely type spam". But now i understand that "from" and "to" are same.&lt;BR /&gt;So as you said, sendmail program have to handle this type of spam.&lt;BR /&gt;I have no idea how...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Sep 2002 08:50:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802934#M2442</guid>
      <dc:creator>I_M</dc:creator>
      <dc:date>2002-09-10T08:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802935#M2443</link>
      <description>Hi,&lt;BR /&gt;This is a wonderful link which speaks about our topic.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.usenix.org/publications/library/proceedings/lisa97/full_papers/22.harker/22_html/main.html" target="_blank"&gt;http://www.usenix.org/publications/library/proceedings/lisa97/full_papers/22.harker/22_html/main.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also do this test on your mail server and get &lt;BR /&gt;back with results.&lt;BR /&gt;The most direct way to determine whether a sendmail daemon is an open mail relay is to try to use it as an open mail relay. We'll refer to the machine being tested as the target machine. We'll connect to the sendmail daemon on the target machine and type commands to it. To do so, telnet to port 25 of the target machine from another machine for which the target machine should not relay mail. The clearest example would be to connect from an internet service provider outside of IU. You might also connect from central machines. For example, to test muckraker.polysci.indiana.edu you might telnet from steel or from a machine in the ships cluster. &lt;BR /&gt;&lt;BR /&gt; telnet muckraker.polysci.indiana.edu 25&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The target machine will print a greeting, and the first thing that you will do is announce yourself. If you were coming from steel - &lt;BR /&gt;&lt;BR /&gt; HELO steel.ucs.indiana.edu&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The daemon will express its pleasure at meeting you and wait for input. Next we will tell it who mail is from. &lt;BR /&gt;&lt;BR /&gt; MAIL FROM: hoagyc@steel.ucs.indiana.edu&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The daemon should indicate that "Sender ok", and it will expect to be told who should receive the message. &lt;BR /&gt;&lt;BR /&gt; RCPT TO: mortimer@hotmail.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;At this point, the daemon should reply with "Relaying denied". If it does not and it says that it is waiting for data, you have an open mail relay on your hands. To gracefully quit, enter the command &lt;BR /&gt;&lt;BR /&gt; quit&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Sep 2002 09:11:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802935#M2443</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-09-10T09:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802936#M2444</link>
      <description>There is a lot you can do about spam.&lt;BR /&gt;&lt;BR /&gt;Here is a summary.&lt;BR /&gt;Turn on your firewall.  Take a look at the configuration of /etc/sysconfig/ipchains&lt;BR /&gt;&lt;BR /&gt;This has a listing of the ports and what to do with the data.&lt;BR /&gt;&lt;BR /&gt;Make sure its running and blocking ports.&lt;BR /&gt;&lt;BR /&gt;You probably need to accept some kind of incoming mail, so you need to work with the sendmail configuration.&lt;BR /&gt;&lt;BR /&gt;There is an important file called /etc/mail/access&lt;BR /&gt;&lt;BR /&gt;It contains entries like this.&lt;BR /&gt;localhost                       RELAY&lt;BR /&gt;&lt;BR /&gt;It can contain entries like this:&lt;BR /&gt;&lt;BR /&gt;spammer REJECT&lt;BR /&gt;&lt;BR /&gt;It can even reject with nasty little notes back to the spammer.  Even if they've used a relay in use, there will e a response and the sysadmin will either figure it out or see his /var filesystem fill up, brining down his machine.&lt;BR /&gt;&lt;BR /&gt;Quite effective.&lt;BR /&gt;&lt;BR /&gt;After adding entries to this file, you'll need to run the m4 macro to integrate these changes into your sendmail configuration.  Here is a complete script that does this and allows you to put some goodies into your sendmail.mc file making spam harder to get into your organization.&lt;BR /&gt;&lt;BR /&gt;I always use the posix shell, because I'm primarly an HP-Ux geek.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;# A script designed to rebuild all relavent mail databases after a configuration&lt;BR /&gt;# change.&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;newaliases&lt;BR /&gt;cd /etc/mail&lt;BR /&gt;makemap -r -v hash access.db &amp;lt; access&lt;BR /&gt;makemap -r -v hash domaintable.db &amp;lt; domaintable&lt;BR /&gt;makemap -r -v hash genericstable.db &amp;lt; genericstable&lt;BR /&gt;makemap -r -v hash mailertable.db &amp;lt; mailertable&lt;BR /&gt;makemap -r -v hash virtusertable.db &amp;lt; virtusertable&lt;BR /&gt;cp /etc/sendmail.cf /root&lt;BR /&gt;m4 /etc/mail/sendmail.mc &amp;gt; /etc/sendmail.cf&lt;BR /&gt;&lt;BR /&gt;echo "You need to edit the sendmail.cf file for localhost et al"&lt;BR /&gt;sleep 3&lt;BR /&gt;vi /etc/sendmail.cf&lt;BR /&gt;/etc/init.d/sendmail restart&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The edit step reminds me to do a customization on the /etc/sendmail.conf file prior to running the daemon. I require customization to make my mail have the right hostname after this process.  The sendmail.mc macro domain breaks my sendmail.conf file(lol).&lt;BR /&gt;&lt;BR /&gt;The restart stuff is self evident.&lt;BR /&gt;&lt;BR /&gt;Are we done?  Hardly.&lt;BR /&gt;&lt;BR /&gt;You need to consider what you are doiing about popmail.  If your users are getting their mail into Microsoft mail clients with popmail, there is no need to open up port 110 to the world.  Open it up only to your local network.&lt;BR /&gt;&lt;BR /&gt;Now try this command at the command line.&lt;BR /&gt;&lt;BR /&gt;sendmail -v -d38.2 youraddress@aol.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You will see that AOL actually validates the domain name before it lets mail in.&lt;BR /&gt;&lt;BR /&gt;You can nail a lot of spammers if you figure out how they do that.&lt;BR /&gt;&lt;BR /&gt;Good Luck and feel free to contact me directly if you need further assistance.  I learned sendmail the hard way, and still haven't turned on popmail.</description>
      <pubDate>Tue, 10 Sep 2002 16:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802936#M2444</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2002-09-10T16:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802937#M2445</link>
      <description>Hi!&lt;BR /&gt;I had this problem some weeks ago with my private pop3-account. I searched up the web an found the following solution&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sourceforge.net/projects/mailfilter" target="_blank"&gt;http://sourceforge.net/projects/mailfilter&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is a nice program to define your own filter based on a line-defined description and it removes the mails directly on the server. You need not load down the message and filter it on your own machine. And it can check more than one account on it's own!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;MM</description>
      <pubDate>Wed, 11 Sep 2002 06:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802937#M2445</guid>
      <dc:creator>Malycha</dc:creator>
      <dc:date>2002-09-11T06:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802938#M2446</link>
      <description>I use spamassassin:&lt;BR /&gt;&lt;BR /&gt;  &lt;A href="http://spamassassin.taint.org/" target="_blank"&gt;http://spamassassin.taint.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;With this procmail rule:&lt;BR /&gt;&lt;BR /&gt;--- procmail cut here ---&lt;BR /&gt;MAILDIR=/home/ink/mail&lt;BR /&gt;&lt;BR /&gt;:0:&lt;BR /&gt;* ^X-Spam-Status: Yes.*&lt;BR /&gt;caughtspam&lt;BR /&gt;--- procmail end here ---&lt;BR /&gt;&lt;BR /&gt;This puts all my potential spam in a mailbox called "caughtspam", which I can occasionally check.  For my users, I run spamassassin and simply have it alter the subject line of the message so that users can filter out spam with e-mail rules, if they want to.  You have to tweak some of the default rules of spamassassin (whitelist), so it takes a week or two of fine-tuning before it does a really good job.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Sep 2002 13:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802938#M2446</guid>
      <dc:creator>Craig Kelley</dc:creator>
      <dc:date>2002-09-11T13:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802939#M2447</link>
      <description>Ooops, I accidentally truncated my procmail rule!  The MAILDIR variable should point to where you keep your mailboxes.  The first rule actually runs spamassassin on all incoming mail, and the second rule filtes all caught spam messages into the custom mailbox.  You can raise and lower spamassassin's threshold for identifying spam (see the man page for Spamassassin::Conf) Here is my .procmailrc in full:&lt;BR /&gt;&lt;BR /&gt;MAILDIR=/home/ink/mail&lt;BR /&gt;&lt;BR /&gt;:0fw&lt;BR /&gt;| spamassassin -P&lt;BR /&gt;&lt;BR /&gt;:0:&lt;BR /&gt;* ^X-Spam-Status: Yes.*&lt;BR /&gt;caughtspam&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Sep 2002 14:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802939#M2447</guid>
      <dc:creator>Craig Kelley</dc:creator>
      <dc:date>2002-09-11T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to protect against spam</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802940#M2448</link>
      <description>I've had good luck with the access database... but it always needs updating as new spam domains are created.&lt;BR /&gt;&lt;BR /&gt;With /etc/mail/access, you can specify whole domains that should be rejected, like this:&lt;BR /&gt;&lt;BR /&gt;spamdomain.com  &lt;REJECT message=""&gt;&lt;BR /&gt;&lt;BR /&gt;In the man pages, there are lots of examples.&lt;BR /&gt;&lt;BR /&gt;The biggest bang-for-the-buck came from rejecting those "web mailers" such as yahoo.com, hotmail.com, excite.com, etc.  It seems that a lot of spam uses these as return addresses, even if they aren't actually delivered (or sent) from that service.&lt;BR /&gt;&lt;BR /&gt;The next biggest effect I saw was from eliminating all 2-letter domains, such as anything ending in .tw .fr .ru and the like. In the access database you just specify:&lt;BR /&gt;&lt;BR /&gt;fr  &lt;MESSAGE&gt;&lt;BR /&gt;tw  &lt;MESSAGE&gt;&lt;BR /&gt;ru  &lt;MESSAGE&gt;&lt;BR /&gt;&lt;BR /&gt;I actually wrote a simple shell script to generate all possible two-letter combinations and put all of them in the access database.  These domains are all from outside the US, and since I don't have anyone I know of internationally that I need to email with, it works fine for me.&lt;BR /&gt;&lt;BR /&gt;Between the two, I eliminate about 99% of my spam.  Every once in a while I get a persistant spammer with return addresses other than the above, and I add them manually.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;/MESSAGE&gt;&lt;/MESSAGE&gt;&lt;/MESSAGE&gt;&lt;/REJECT&gt;</description>
      <pubDate>Wed, 11 Sep 2002 15:59:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-protect-against-spam/m-p/2802940#M2448</guid>
      <dc:creator>Vincent Fleming</dc:creator>
      <dc:date>2002-09-11T15:59:00Z</dc:date>
    </item>
  </channel>
</rss>

