Discussion:
Best way to filter mail list email?
Dagan McGregor
2011-08-02 00:06:21 UTC
Permalink
Hi,

I am setting up my new email server, and thinking about the best way
to filter mail lists.

Does anyone use a separate mail box or anything for mailing lists?

I can use sieve to move mail into folders, but I would like to keep
spam out of my new mailbox as long as possible. I realise a mail alias
would be a problem on lists that restrict sender lists.

Any experience anyone cares to share? :)

Dagan

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Simon Green
2011-08-02 00:11:48 UTC
Permalink
Post by Dagan McGregor
Any experience anyone cares to share? :)
I used procmail to filter out mailing list e-mail to a separate list. All
(good) mailing lists, should have a List-Id header to make filtering easy
enough to do.

-- simon
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Steve Holdoway
2011-08-02 01:11:19 UTC
Permalink
Post by Simon Green
Post by Dagan McGregor
Any experience anyone cares to share? :)
I used procmail to filter out mailing list e-mail to a separate list. All
(good) mailing lists, should have a List-Id header to make filtering easy
enough to do.
-- simon
+1
--
Steve Holdoway BSc(Hons) MNZCS <***@greengecko.co.nz>
http://www.greengecko.co.nz
MSN: ***@greengecko.co.nz
Skype: sholdowa
r***@webworxshop.com
2011-08-02 01:40:09 UTC
Permalink
Post by Dagan McGregor
Hi,
I am setting up my new email server, and thinking about the best way
to filter mail lists.
Does anyone use a separate mail box or anything for mailing lists?
I can use sieve to move mail into folders, but I would like to keep
spam out of my new mailbox as long as possible. I realise a mail alias
would be a problem on lists that restrict sender lists.
Any experience anyone cares to share? :)
Dagan
I'm using Dovecot's Sieve with Roundcube via the managesieve interface.
It works like a charm, but was a bit fiddly to set up. As suggested by
others filter by the List-Id header, e.g:

if header :contains "List-Id" "nzlug.linux.net.nz" { fileinto
"INBOX.Lists.NZLUG"; stop; }

HTH,

Rob

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Carlos Hendson
2011-08-02 07:42:54 UTC
Permalink
Post by Dagan McGregor
Hi,
I am setting up my new email server, and thinking about the best way
to filter mail lists.
Does anyone use a separate mail box or anything for mailing lists?
I can use sieve to move mail into folders, but I would like to keep
spam out of my new mailbox as long as possible. I realise a mail alias
would be a problem on lists that restrict sender lists.
Any experience anyone cares to share? :)
Dagan
In the past I've used procmail and now use maildrop to filter incoming
mail on the server side. I'd use Dovecot+Sieve for a more integrated
solution if I were to set up the server again.

Segmenting mail address purposes is a great idea. You must be vigilant
in ensuring each address is used for it's designated purpose. As an
example, have an address for personal, work, and mailinglist
communication.

Some mail clients make the task of having multiple identities easier
than others. Ones that support multiple identities per mail profile and
can detect the right identity to use when you reply to an email help
immensely.

Mail clients I know that have this functionality are Evolution,
Thunderbird and Roundcube. There's probably many others that support
this feature.

In terms of avoiding spam being delivered to the inbox, I rely on my
provider's anti-spam solution along with a couple of server side
filtering rules. This has worked well for me, "your 'kilometrage' my
vary".

Hope that helps.
Regards,
Carlos
--
Sent using GNU/Linux - Perpetuate freedom.


_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Jim Cheetham
2011-08-02 09:35:38 UTC
Permalink
 Does anyone use a separate mail box or anything for mailing lists?
Check your terminology. "mail box" normally means something like "a
separate message store" and implies that a different user will be used
to collect the contents. Sometimes this means a different
"left-hand-side" (LHS) for the email address, but not always.

How will users be identifying themselves to your mail system? The
general method these days, for environments with multiple users and
multiple domains, is for usernames to be "***@domain.tld". This
usually makes it difficult for you to have separate mailboxes for the
same username, as there is often an implied link between the username
and the file path of the mailbox (in this case
/var/mail/domain.tld/LHS/).

Given the ability for sieve and procmail to deliver to different
_folders_ within the same mailbox (especially easy if you are using
Maildir as you should be) then you should be able to filter mail
messages into different folders easily. However tools like sup and
notmuch follow the Opera M2/Gmail format, and tag messages instead of
giving them different path names -- this allows multiple tags per
message, instead of just one. So in those cases you use sieve or
procmail to add headers indicating the message tags, and just lump
them all into the same maildir location.
I can use sieve to move mail into folders, but I would like to keep spam
out of my new mailbox as long as possible.
That's easier than you think, especially if you are happy with a small
false positive rate. Reject everyone appearing on decent DNSRBLs (e.g.
b.barracudacentral.org : cbl.abuseat.org : dnsbl.njabl.org :
bl.spamcop.net) with a polite message and link back to the RBL in
question. You might need to add a whitelist to cope with clueless
companies. Spamassassin everything else, even the default ruleset will
do, and reject anything scoring too high.
I realise a mail alias would be a
problem on lists that restrict sender lists.
If you follow the received wisdom of a few years ago, you'll be using
throwaway addresses to subscribe to various lists. Sadly this makes it
difficult to unsubscribe from services that don't let you rewrite your
outgoing email, like gmail. But if you do, it can help when you want
to 'close' an address without affecting anything else. Also handy to
identify which list may have been leaked to the spammers, but possibly
too much hassle.
 Any experience anyone cares to share? :)
You haven't mentioned software yet. Exim (with single config file, not
the Debian mess) + Dovecot gives you the most readable configuration
file, in my opinion. Not necessarily the most performant, but that
shouldn't be an issue for you.

Another option would be to set up a server shared with other people
who are interested in having their own email handled properly, and
whom you can trust to not steal your email. That way there are a
number of people on hand to fix problems, rather than just you. It
helps over the long term (5 years +).

-jim

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Dagan McGregor
2011-08-03 01:17:54 UTC
Permalink
On Tue, Aug 2, 2011 at 12:06 PM, Dagan McGregor
 Does anyone use a separate mail box or anything for mailing lists?
Check your terminology. "mail box" normally means something like "a
separate message store" and implies that a different user will be used
to collect the contents. Sometimes this means a different
"left-hand-side" (LHS) for the email address, but not always.
My current thinking is to have a seperate email account "mail box"
setup for mailing lists to go into, and keep using aliases to my main
email account for things that don't require a return sender.

eg I have a ***@example.com email alias for twitter
notifications, to my main email account.

This is for my personal domain, on my own Debian VPS, and it's setup
using virtual accounts (postfix, dovecot, postgres, and vmm
http://sourceforge.net/projects/vmm/)

So as such, I can create accounts or aliases as I please, just looking
for some ideas on what other people do :)

Cheers,
Dagan

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug

Continue reading on narkive:
Loading...