• How to reject spam from certain countries (if you must really, really do it)?

    Every now and then, a question like this pops up on some email server management forum: I'd like to be able to reject connections from remote IP addresses if they're from certain countries. The usual reason is either thatthe sender only receives spam from those countries and is convinced that this will always be the case, or that, since the sender doesn’t need or want to exchange email with anybody in those countries, why bother at all with filtering messages from there?
  • How to extract email headers and store them in a cache file

    note: I am trying to publish, a piece at a time a lots of tricks that I use in my email management system, in such a format that each of them is usable separately. This is why it may be a bit difficult to understand certain parts of this and other pages, until I have published all of them. In the meantime, please let me know about anything you find not clear in these pages, so I can improve them, and read this article of mine on how to Build your own email server with Postfix, because it is a good synthesis of the whole picture
  • How to ignore uninteresting threads in mailing lists

    Even in this age of social networking and instant messaging, mailing lists are very useful tools to get technical support or carry on public discussions online. The problem with mailing list is that, especially when they are very popular, you will soon find out that most of the traffic is irrelevant, because it’s either some flame war or some topic that has no interest for you. This kind of email traffic is a big problem for two reasons: