Welcome!

Linux Authors: Pat Romanski, Elizabeth White, Yeshim Deniz, Carmen Gonzalez, Liz McMillan

Related Topics: Linux

Linux: Article

Spam and the Linux Desktop

Dealing with unsolicited commercial e-mail as a Linux desktop user

It's a fact of life for most of us: we all receive e-mail solicitations to "Make Money Fast" or for a "Mail Order Drugstore" or offensive or adult content that makes us blush, especially when a colleague is looking over our shoulder. Spam, a slang term for Unsolicited Commercial E-mail (UCE), has reached epidemic proportions. It clogs our inboxes and saps our productivity. I have a long history with spam - in a former career I was a "net abuse cop" for a large ISP.

In those days spammers (the accepted slang term for bulk mailers sending UCE) spent their time harvesting message headers from Usenet newsgroups and sending solicitations to those who had posted on topics ranging from computers to religion. Soon enough the spammers improved or, more accurately, became more insidious in their tactics to get their unwelcome messages into your inbox. That's why this month's installment of Dr. Migration is dedicated to spam and the Linux desktop.

SPAM Prevention Strategies

Dealing with spam is not only a Linux problem, it affects users of Macs, Windows, and Unix workstations as well as cell phone users who utilize e-mail to SMS (short messaging service) text messaging. Everyday spammers are scheming to fill our e-mail boxes with various solicitations for a cadre of products. That's why you should take as many precautions as you can to prevent junk e-mail. Many of these precautions are platform independent and are ways to improve your life on the Internet.

Protect Your E-mail Address

It may sound like an obvious precaution but many people don't guard their e-mail address with the same vigilance they protect their phone number or their address. Once you share your e-mail address, you trust that the person or organization will only utilize it for the prescribed use. Be sure to read the fine print in their offers or you may unknowingly agree to be on a mailing list.

My point is, when giving out your e-mail, you should verify that it won't be shared or find out what exactly the prescribed use is. My strategy is that when I do share my address with a source that I know little about, I use my secondary e-mail address. This is a second e-mail address that has little value to me if it becomes overwhelmed since I simply change it. I then check this e-mail address only when I feel I might be receiving information that I requested regarding a product or service. Then my daily work and personal e-mail boxes aren't subject to the abuse that this address often receives. I think many of us do this already, but those who don't and suffer from an inordinate amount of junk mail may want to start the practice.

HTML E-Mail: Don't Download Images from the Server

When you receive an HTML e-mail, besides the obvious message, bulk e-mailers often use a register bit that is usually a small transparent image that, when you view the message, loads and then alerts them that you have read that e-mail. This helps them understand which of their messages successfully reaches an end user and qualifies that e-mail address as a target for further advertisements. One way to prevent this is to not download images from the server. Three popular e-mail clients for the Linux desktop - Kmail, Thunderbird, and Evolution - enable you to turn off the accessing of Internet resources from the body of the e-mail, defeating this information-gathering campaign.

E-Mail Attachments: Be Aware of Worms and Viruses

One of the things that we are all very cognizant of (or should be) from the perspective of a Windows desktop is the risk of viruses. It's not uncommon to see news stories describing the damage caused by the latest Windows virus, and these viruses cause millions of dollars of damage. However, just because you are running a Linux desktop doesn't mean you should be lax in your approach to e-mail attachments and their hidden payloads. The fact is that a Linux virus doesn't get near the bang for the buck as a Windows virus because the Linux desktop user is in the minority. Authors of these malicious programs receive less notoriety by propagating their viruses on the Linux desktop simply because their target is substantially smaller. Also, if you are running a Linux desktop, you may just be an unwitting carrier of viruses. Since you'd be impervious to a virus that exploits VB script or ActiveX you may simply be passing it on to a colleague who reads mail on a Windows PC. So do take precautions when forwarding on the latest joke, or any document for that matter.

Alternative Office Advantage: Word Versus OpenOffice

In earlier versions of Microsoft Word, viruses prevailed by exploiting the macro language (WordBasic) and then causing global changes to the desktop. Later versions of Word ask if you would like to enable macros or not. However, being quick on the draw and clicking through these warnings as many people still do may cause problems.

If you are still using a Windows desktop, consider using OpenOffice on Windows as your primary word processor. The reason is that when you receive an attachment that you think might be suspect, you could open it in a program that is less likely to be exploited. OpenOffice has a macro language but it differs from the one that Word uses. This difference would insulate you from that type of attack. The problem is that over time the increased popularity of these alternative office suites will probably result in targeted attacks from unscrupulous programmers. In the near term, reading the Microsoft Office documents that you receive from unfamiliar sources or even those that you know in OpenOffice may be a good preventative measure.

Server-Side Spam Filtering

E-mail servers are often thought of as electronic post offices that simply route mail to individual users, no questions asked. However, e-mail servers can also incorporate other protective measures like virus scanning and spam filtering to protect you, the end user, from malicious or time-sapping e-mail that you never care to see. Applying a preventative measure at the server saves users from having to deal with spam and viruses on an individual basis. You may want to work with your mail administrator to incorporate some simple rules to remove some of your junk e-mail. One tactic is to verify that the mail server sending you e-mail has a valid DNS entry. Much of today's UCE comes from illegitimate sources, not from a credible mail server that ISPs or businesses use. Most system administrators will have some additional ideas on what the common tactics are for avoiding this mail.

My best advice for dealing with spam is that if the e-mail never gets to your inbox, it can't sap your time dealing with it. Also, qualifying the mail as potentially suspect upon arrival to your e-mail box can be helpful as well. One of the most effective measures I have taken is to flag potential spam and then filter that out of my inbox for further review. I accomplish the server-side filtering through SpamAssassin, a popular open source project.

SpamAssassin

(http://spamassassin.apache.org/)

Probably the most popular open source application for server-side spam filtering is SpamAssassin. It allows you to filter e-mail and make decisions on the server or as a mail agent running locally that qualifies e-mail before it reaches your inbox. SpamAssassin uses a number of tactics to identify spam. These tactics include:

  • Header analysis: Tries to identify the mail headers of a message for information that might indicate the e-mail message is suspect.
  • Text analysis: Works much the same way as header analysis. SpamAssassin identifies patterns that may indicate a message is spam.
  • Blacklists: Many community organizations provide lists of known spammers and e-mail domains that have been known to send spam. These blacklists can be used by SpamAssassin to filter UCE offenders qualified by a volunteer network.
  • "Learning" rules: SpamAssassin also has the ability to "learn" what might be spam and to use the probability of what might be spam to classify it as such.
I use SpamAssassin for my corporate e-mail server. Based on some training it sends e-mail to me with the designa-tion of "[Spam]" in the subject line preceding the original subject so I can filter those messages to a local folder and scan to make sure they are all junk mail and not important. The reason I do this rather than just deleting [Spam]-labeled subjects is to avoid what is known as a "false positive," which means based on my criteria it seems that the e-mail is spam but in fact it's a legitimate e-mail. I very seldom find an error in the logic but, as in most automated systems, there is some fallibility, especially if you try to be overly aggressive in your filtering.

Challenge Base Response

As anyone who has ever sent an e-mail to my LinuxWorld address knows, you'll receive a polite but pointed message that asks you to explain why you want to contact me. This service is provided by my ISP (Earthlink's Spamblocker); all e-mail sent to me is first filtered by Brightmail (www.brightmail.com), a spam-filtering service that forwards all suspected spam to my server-side spam folder. Then anything that it's unsure of goes into my suspect queue and waits for my intervention before it's downloaded. Those who send e-mails that arrive in my "suspect queue" receive a request for more information. While initially this prospect horrified me as being incredibly unfriendly, I have rarely if ever received a complaint. It's an unfortunate necessity of using e-mail these days. It also is another way you can keep junk mail from reaching your desktop.

Linux E-Mail Clients

One of the must-have features in e-mail clients these days is the ability at some level to have a spam filter or at least the ability to add filters to handle spam in a more efficient fashion. The most common e-mail clients for the Linux desktop are all able to filter and in some cases include anti-spam facilities. The following round up is a short primer on how to deal with spam with three common Linux e-mail clients.

Thunderbird

(www.mozilla.org/products/thunderbird/)

Thunderbird is an extension of the Mozilla project (www.mozilla.org) offering a robust e-mail client packed with features and capabilities that rival any commercial application. Also, Thunderbird is available for Windows, Mac OS X, and Linux, so if you are still considering the move to Linux you can try out Thunderbird today on your non-Linux desktop, and then still be able to use the same client when you move to Linux.

Thunderbird is probably the most advanced of any Linux e-mail client in its spam-filtering abilities. Thunderbird has junk mail controls that are very effective in detecting and acting on unsolicited e-mail. Spam can then be detected and deleted or stored in a folder for later review in the event of a false positive. Also, Thunderbird has a way to "whitelist" e-mail so you can be assured that e-mails from a certain address never get "wrongly imprisoned" by your spam filters. One innovative feature in Thunderbird is the option to use adaptive filters that can analyze incoming messages and flag those likely to be junk e-mail (see Figure 1).

Evolution

(www.novell.com/products/evolution/)

Novell's Evolution e-mail client is one of the most popular e-mail and PIMs (Personal Information Managers) for Linux. While there are no specific filters in Evolution there are many ways to prevent spam from clogging your Evolution inbox. Most definitely you should choose not to allow the loading of images from the network as referenced earlier. In Evolution, under the Evolution Settings -> Mail Preferences -> HTML Mail you should check "never load images off the Net" or "load images if sender is in address book" (see Figure 2).

Just because Evolution doesn't include a spam filtering system doesn't mean you're out of luck. Actually Evolution has a powerful filtering system that can access spam filters outside the program. Many Linux users have been successful in allowing Ximian to access bogofilter (www.bogofilter.sourceforge.net) via a wrapper script and then using bogofilter for a statistical process known as the Bayesian technique to make decisions on what is and is not spam. Also, the same SpamAssassin that I highlighted for server use could be used on your Linux desktop in conjunction with Evolution and the mail filters in Evolution.

KMail

(http://kmail.kde.org)

KMail, which is part of the KDE desktop, is also a popular Linux e-mail client and while there is no anti-spam features included in the current release, the next version of KMail will add an "Antispam Wizard," which if you have the capability now I'm sure your e-mail will never be without it again (see Figure 3).

Web-Based E-Mail Clients

Since you may be migrating to Linux gradually, you may still be working between two operating systems. So downloading and storing mail in one system versus another may not be in your best interest while you're in transition, or maybe you've decided to store your e-mail on a server that has scheduled backups. This approach is very advantageous because you can access your e-mail from almost any Web browser on numerous platforms. Also, it's a step in the direction of centrally managed applications and data that, I believe, improves the potential success of desktop PC users on most any platform. Also, by keeping data on the server rather than on disparate desktop PCs, you can have it managed consistently across an organization, applying spam filtering and virus checking on the server rather than at each individual user's desk. This approach is usually more efficient than each user doing it on an individual basis.

That's why solutions that offer server-side management and storage like IMAP (Internet Message Access Protocol) are valuable, because they allow you to access messages as if they were local but require a network connection to do so. There are a number of solutions for doing this. If you have a POP or IMAP server you can use a number of popular "free" Web interfaces including Squirrel Mail (www.squirrelmail.org/), Neomail (http://sourceforge.net/projects/neomail/), or the full-featured Horde Project (www.horde.org). The bottom line is that reducing the complexity of the PC desktop makes it easier to choose which platform you want to use, avoids vendor lock-in, and improves your ability to choose how you will accomplish your desktop computing goals.

Summary

No matter what your platform or your e-mail client preference, spam is a fact of life. Hopefully you're already using some of my prescribed methods to reduce your spam burden. If not, you might have something to think about when you finish this article. My best advice for dealing with spam: prevent it from entering your inbox in the first place. Deal with it at the server level, where you can provide an enterprise-wide blanket of protection from spam and viruses, then be vigilant on your desktop to keep malicious programs out of your workspace.

Additional Resources

  • http://spam.abuse.net
  • http://spamcop.net
  • www.cauce.org

    SIDEBAR

    SCALIX: Server-Based E-Mail and Calendaring

    Scalix, an enterprise messaging company, headquartered in San Mateo, CA, believes that Linux is the ideal platform to build messaging solutions based on the openness and security of the platform. However, they also recognize that users migrating from Windows to Linux are going to encounter differences between the two platforms; their solution is to provide a robust Web-based interface. They also provide a Web client, Scalix Web Access, that is more robust than many Web-based e-mail clients and allows you to work in the three-pane type of environment your current mail solution uses rather than in a single Web page.

    This next-generation Web interface including calendaring is a viable alternative to traditional e-mail clients. In addition, Scalix includes hooks for easy integration of third-party spam filtering additions.

  • More Stories By Mark R. Hinkle

    Mark Hinkle is the Senior Director, Open Soure Solutions at Citrix. He also is along-time open source expert and advocate. He is a co-founder of both the Open Source Management Consortium and the Desktop Linux Consortium. He has served as Editor-in-Chief for both LinuxWorld Magazine and Enterprise Open Source Magazine. Hinkle is also the author of the book, "Windows to Linux Business Desktop Migration" (Thomson, 2006). His blog on open source, technology, and new media can be found at http://www.socializedsoftware.com.

    Comments (1) View Comments

    Share your thoughts on this story.

    Add your comment
    You must be signed in to add a comment. Sign-in | Register

    In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


    Most Recent Comments
    Dan Jacobson 10/19/04 03:36:18 PM EDT

    Well, who's going to send you email if they have to pass a quiz or you keep changing your address.
    http://jidanni.org/comp/spam/index_en.html

    @ThingsExpo Stories
    The Internet of Things (IoT) is making everything it touches smarter – smart devices, smart cars and smart cities. And lucky us, we’re just beginning to reap the benefits as we work toward a networked society. However, this technology-driven innovation is impacting more than just individuals. The IoT has an environmental impact as well, which brings us to the theme of this month’s #IoTuesday Twitter chat. The ability to remove inefficiencies through connected objects is driving change throughout every sector, including waste management. BigBelly Solar, located just outside of Boston, is trans...

    SUNNYVALE, Calif., Oct. 20, 2014 /PRNewswire/ -- Spansion Inc. (NYSE: CODE), a global leader in embedded systems, today added 96 new products to the Spansion® FM4 Family of flexible microcontrollers (MCUs). Based on the ARM® Cortex®-M4F core, the new MCUs boast a 200 MHz operating frequency and support a diverse set of on-chip peripherals for enhanced human machine interfaces (HMIs) and machine-to-machine (M2M) communications. The rich set of periphera...

    SYS-CON Events announced today that Matrix.org has been named “Silver Sponsor” of Internet of @ThingsExpo, which will take place on November 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA. Matrix is an ambitious new open standard for open, distributed, real-time communication over IP. It defines a new approach for interoperable Instant Messaging and VoIP based on pragmatic HTTP APIs and WebRTC, and provides open source reference implementations to showcase and bootstrap the new standard. Our focus is on simplicity, security, and supporting the fullest feature set.
    Predicted by Gartner to add $1.9 trillion to the global economy by 2020, the Internet of Everything (IoE) is based on the idea that devices, systems and services will connect in simple, transparent ways, enabling seamless interactions among devices across brands and sectors. As this vision unfolds, it is clear that no single company can accomplish the level of interoperability required to support the horizontal aspects of the IoE. The AllSeen Alliance, announced in December 2013, was formed with the goal to advance IoE adoption and innovation in the connected home, healthcare, education, aut...
    SYS-CON Events announced today that Red Hat, the world's leading provider of open source solutions, will exhibit at Internet of @ThingsExpo, which will take place on November 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA. Red Hat is the world's leading provider of open source software solutions, using a community-powered approach to reliable and high-performing cloud, Linux, middleware, storage and virtualization technologies. Red Hat also offers award-winning support, training, and consulting services. As the connective hub in a global network of enterprises, partners, a...
    The only place to be June 9-11 is Cloud Expo & @ThingsExpo 2015 East at the Javits Center in New York City. Join us there as delegates from all over the world come to listen to and engage with speakers & sponsors from the leading Cloud Computing, IoT & Big Data companies. Cloud Expo & @ThingsExpo are the leading events covering the booming market of Cloud Computing, IoT & Big Data for the enterprise. Speakers from all over the world will be hand-picked for their ability to explore the economic strategies that utility/cloud computing provides. Whether public, private, or in a hybrid form, clo...
    Software AG helps organizations transform into Digital Enterprises, so they can differentiate from competitors and better engage customers, partners and employees. Using the Software AG Suite, companies can close the gap between business and IT to create digital systems of differentiation that drive front-line agility. We offer four on-ramps to the Digital Enterprise: alignment through collaborative process analysis; transformation through portfolio management; agility through process automation and integration; and visibility through intelligent business operations and big data.
    The Transparent Cloud-computing Consortium (abbreviation: T-Cloud Consortium) will conduct research activities into changes in the computing model as a result of collaboration between "device" and "cloud" and the creation of new value and markets through organic data processing High speed and high quality networks, and dramatic improvements in computer processing capabilities, have greatly changed the nature of applications and made the storing and processing of data on the network commonplace.
    Be Among the First 100 to Attend & Receive a Smart Beacon. The Physical Web is an open web project within the Chrome team at Google. Scott Jenson leads a team that is working to leverage the scalability and openness of the web to talk to smart devices. The Physical Web uses bluetooth low energy beacons to broadcast an URL wirelessly using an open protocol. Nearby devices can find all URLs in the room, rank them and let the user pick one from a list. Each device is, in effect, a gateway to a web page. This unlocks entirely new use cases so devices can offer tiny bits of information or simple i...
    Things are being built upon cloud foundations to transform organizations. This CEO Power Panel at 15th Cloud Expo, moderated by Roger Strukhoff, Cloud Expo and @ThingsExpo conference chair, will address the big issues involving these technologies and, more important, the results they will achieve. How important are public, private, and hybrid cloud to the enterprise? How does one define Big Data? And how is the IoT tying all this together?
    The Internet of Things (IoT) is going to require a new way of thinking and of developing software for speed, security and innovation. This requires IT leaders to balance business as usual while anticipating for the next market and technology trends. Cloud provides the right IT asset portfolio to help today’s IT leaders manage the old and prepare for the new. Today the cloud conversation is evolving from private and public to hybrid. This session will provide use cases and insights to reinforce the value of the network in helping organizations to maximize their company’s cloud experience.
    TechCrunch reported that "Berlin-based relayr, maker of the WunderBar, an Internet of Things (IoT) hardware dev kit which resembles a chunky chocolate bar, has closed a $2.3 million seed round, from unnamed U.S. and Switzerland-based investors. The startup had previously raised a €250,000 friend and family round, and had been on track to close a €500,000 seed earlier this year — but received a higher funding offer from a different set of investors, which is the $2.3M round it’s reporting."
    The Industrial Internet revolution is now underway, enabled by connected machines and billions of devices that communicate and collaborate. The massive amounts of Big Data requiring real-time analysis is flooding legacy IT systems and giving way to cloud environments that can handle the unpredictable workloads. Yet many barriers remain until we can fully realize the opportunities and benefits from the convergence of machines and devices with Big Data and the cloud, including interoperability, data security and privacy.
    All major researchers estimate there will be tens of billions devices - computers, smartphones, tablets, and sensors - connected to the Internet by 2020. This number will continue to grow at a rapid pace for the next several decades. Over the summer Gartner released its much anticipated annual Hype Cycle report and the big news is that Internet of Things has now replaced Big Data as the most hyped technology. Indeed, we're hearing more and more about this fascinating new technological paradigm. Every other IT news item seems to be about IoT and its implications on the future of digital busines...
    Cultural, regulatory, environmental, political and economic (CREPE) conditions over the past decade are creating cross-industry solution spaces that require processes and technologies from both the Internet of Things (IoT), and Data Management and Analytics (DMA). These solution spaces are evolving into Sensor Analytics Ecosystems (SAE) that represent significant new opportunities for organizations of all types. Public Utilities throughout the world, providing electricity, natural gas and water, are pursuing SmartGrid initiatives that represent one of the more mature examples of SAE. We have s...
    The Internet of Things needs an entirely new security model, or does it? Can we save some old and tested controls for the latest emerging and different technology environments? In his session at Internet of @ThingsExpo, Davi Ottenheimer, EMC Senior Director of Trust, will review hands-on lessons with IoT devices and reveal privacy options and a new risk balance you might not expect.
    IoT is still a vague buzzword for many people. In his session at Internet of @ThingsExpo, Mike Kavis, Vice President & Principal Cloud Architect at Cloud Technology Partners, will discuss the business value of IoT that goes far beyond the general public's perception that IoT is all about wearables and home consumer services. The presentation will also discuss how IoT is perceived by investors and how venture capitalist access this space. Other topics to discuss are barriers to success, what is new, what is old, and what the future may hold.
    Swiss innovators dizmo Inc. launches its ground-breaking software, which turns any digital surface into an immersive platform. The dizmo platform seamlessly connects digital and physical objects in the home and at the workplace. Dizmo breaks down traditional boundaries between device, operating systems, apps and software, transforming the way users work, play and live. It supports orchestration and collaboration in an unparalleled way enabling any data to instantaneously be accessed on any surface, anywhere and made interactive. Dizmo brings fantasies as seen in Sci-fi movies such as Iro...
    There’s Big Data, then there’s really Big Data from the Internet of Things. IoT is evolving to include many data possibilities like new types of event, log and network data. The volumes are enormous, generating tens of billions of logs per day, which raise data challenges. Early IoT deployments are relying heavily on both the cloud and managed service providers to navigate these challenges. In her session at 6th Big Data Expo®, Hannah Smalltree, Director at Treasure Data, to discuss how IoT, Big Data and deployments are processing massive data volumes from wearables, utilities and other mach...
    This Internet of Nouns trend is still in the early stages and many of our already connected gadgets do provide human benefits over the typical infotainment. Internet of Things or IoT. You know, where everyday objects have software, chips, and sensors to capture data and report back. Household items like refrigerators, toilets and thermostats along with clothing, cars and soon, the entire home will be connected. Many of these devices provide actionable data - or just fun entertainment - so people can make decisions about whatever is being monitored. It can also help save lives.