Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #171604 > unrolled thread

postfix mail filtering

Started byTony van der Hoff <tony@vanderhoff.org>
First post2016-08-31 14:30 +0200
Last post2016-09-01 19:00 +0200
Articles 6 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  postfix mail filtering Tony van der Hoff <tony@vanderhoff.org> - 2016-08-31 14:30 +0200
    Re: postfix mail filtering "Perry E. Metzger" <perry@piermont.com> - 2016-08-31 14:40 +0200
      Re: postfix mail filtering Tony van der Hoff <tony@vanderhoff.org> - 2016-09-01 19:00 +0200
        Re: postfix mail filtering Joe <joe@jretrading.com> - 2016-09-01 19:50 +0200
    Re: postfix mail filtering Dan Ritter <dsr@randomstring.org> - 2016-08-31 16:10 +0200
      Re: postfix mail filtering Tony van der Hoff <tony@vanderhoff.org> - 2016-09-01 19:00 +0200

#171604 — postfix mail filtering

FromTony van der Hoff <tony@vanderhoff.org>
Date2016-08-31 14:30 +0200
Subjectpostfix mail filtering
Message-ID<sccOu-2m4-21@gated-at.bofh.it>
Hi list,

I'm running postfix under Wheezy on my VPS, using a more or less 
out-of-the-box configuration. My users access their mail via IMAP.

I subscribe to a number of mail lists, such as this one. I currently use 
Thunderbird's filtering capability to sort mail into a number of 
subdirectories within my inbox, which works fine, but requires me to set 
up all my workstayions (laptop, home, work) with the same filters. I 
have now acquired an Android smartphone, which has no filtering 
capability. In any case, keeping a number of workstations in sync is a pain.

So, I'd like to perform the filtering on the server (for my user 
initially, then perhaps for others). My extensive googling reveals that 
there are many tutorials for filtering spam, but that's not really my 
problem.

I can't find any tutorials on how to set up filters based on, say 
subject:, from:, or to: fields, but feel certain such must exist.
Can any kind person direct me to a suitable tutorial, please?

Thanks, Tony
-- 
Tony van der Hoff        | mailto:tony@vanderhoff.org
Buckinghamshire, England |

[toc] | [next] | [standalone]


#171605

From"Perry E. Metzger" <perry@piermont.com>
Date2016-08-31 14:40 +0200
Message-ID<sccYa-2pg-9@gated-at.bofh.it>
In reply to#171604
On Wed, 31 Aug 2016 13:21:13 +0100 Tony van der Hoff
<tony@vanderhoff.org> wrote:
> So, I'd like to perform the filtering on the server (for my user 
> initially, then perhaps for others). My extensive googling reveals
> that there are many tutorials for filtering spam, but that's not
> really my problem.

What you're looking for is an implementation of the Sieve
language/system for mail filtering. You don't say what IMAP
server you are using, but Dovecot has an implementation of this called
"Pigeonhole" that is very likely what you want.

Perry
-- 
Perry E. Metzger		perry@piermont.com

[toc] | [prev] | [next] | [standalone]


#171676

FromTony van der Hoff <tony@vanderhoff.org>
Date2016-09-01 19:00 +0200
Message-ID<scDvj-4op-3@gated-at.bofh.it>
In reply to#171605
On 31/08/16 13:33, Perry E. Metzger wrote:
> On Wed, 31 Aug 2016 13:21:13 +0100 Tony van der Hoff
> <tony@vanderhoff.org> wrote:
>> So, I'd like to perform the filtering on the server (for my user
>> initially, then perhaps for others). My extensive googling reveals
>> that there are many tutorials for filtering spam, but that's not
>> really my problem.
>
> What you're looking for is an implementation of the Sieve
> language/system for mail filtering. You don't say what IMAP
> server you are using, but Dovecot has an implementation of this called
> "Pigeonhole" that is very likely what you want.
>
> Perry
>
Thanks, Perry, I'm actually using Courier, and Google tells me there is 
no Sieve plugin for it. I shudder at reconfiguring the system for Dovecot!

Thanks for giving me another keyword (sieve) to search!


-- 
Tony van der Hoff        | mailto:tony@vanderhoff.org
Buckinghamshire, England |

[toc] | [prev] | [next] | [standalone]


#171678

FromJoe <joe@jretrading.com>
Date2016-09-01 19:50 +0200
Message-ID<scEhH-4SW-5@gated-at.bofh.it>
In reply to#171676
On Thu, 1 Sep 2016 17:51:10 +0100
Tony van der Hoff <tony@vanderhoff.org> wrote:

> On 31/08/16 13:33, Perry E. Metzger wrote:
> > On Wed, 31 Aug 2016 13:21:13 +0100 Tony van der Hoff
> > <tony@vanderhoff.org> wrote:  
> >> So, I'd like to perform the filtering on the server (for my user
> >> initially, then perhaps for others). My extensive googling reveals
> >> that there are many tutorials for filtering spam, but that's not
> >> really my problem.  
> >
> > What you're looking for is an implementation of the Sieve
> > language/system for mail filtering. You don't say what IMAP
> > server you are using, but Dovecot has an implementation of this
> > called "Pigeonhole" that is very likely what you want.
> >
> > Perry
> >  
> Thanks, Perry, I'm actually using Courier, and Google tells me there
> is no Sieve plugin for it. I shudder at reconfiguring the system for
> Dovecot!
> 
> Thanks for giving me another keyword (sieve) to search!
> 
> 

I don't know anything about Postfix, but I'd have thought that the job
of dropping sorted mail into different Maildir directories was one of
its tasks.

Certainly exim4 sorts the mail for me into mail directories used by
Courier, on the basis of a .forward file, and exim4 also implements
Sieve if I ever need real complication.

-- 
Joe

[toc] | [prev] | [next] | [standalone]


#171614

FromDan Ritter <dsr@randomstring.org>
Date2016-08-31 16:10 +0200
Message-ID<sceng-3nc-25@gated-at.bofh.it>
In reply to#171604
On Wed, Aug 31, 2016 at 01:21:13PM +0100, Tony van der Hoff wrote:
> Hi list,
> 
> I'm running postfix under Wheezy on my VPS, using a more or less
> out-of-the-box configuration. My users access their mail via IMAP.
> 
> I subscribe to a number of mail lists, such as this one. I currently use
> Thunderbird's filtering capability to sort mail into a number of
> subdirectories within my inbox, which works fine, but requires me to set up
> all my workstayions (laptop, home, work) with the same filters. I have now
> acquired an Android smartphone, which has no filtering capability. In any
> case, keeping a number of workstations in sync is a pain.
> 
> So, I'd like to perform the filtering on the server (for my user initially,
> then perhaps for others). My extensive googling reveals that there are many
> tutorials for filtering spam, but that's not really my problem.
> 
> I can't find any tutorials on how to set up filters based on, say subject:,
> from:, or to: fields, but feel certain such must exist.
> Can any kind person direct me to a suitable tutorial, please?

You can use:

- sieve, a language for controlling filtering on IMAP servers.
  Supported by Thunderbird but not very much else.

- procmail, a language for filtering on delivery (postfix will
  call it) -- widely known, but arcane syntax and requires shell 
  access to edit or place the ~/.procmailrc

- maildrop, aka mailfilter, a language for filtering on delivery
  (postfix will call it, too) -- less widely known, but has
  syntax that is much more readable than procmail. Requires
  shell access to place a ~/.mailfilter file.

All of these have Debian packages.

-dsr-

[toc] | [prev] | [next] | [standalone]


#171677

FromTony van der Hoff <tony@vanderhoff.org>
Date2016-09-01 19:00 +0200
Message-ID<scDvj-4op-11@gated-at.bofh.it>
In reply to#171614
On 31/08/16 15:02, Dan Ritter wrote:
> On Wed, Aug 31, 2016 at 01:21:13PM +0100, Tony van der Hoff wrote:
>> Hi list,
>>
>> I'm running postfix under Wheezy on my VPS, using a more or less
>> out-of-the-box configuration. My users access their mail via IMAP.
>>
>> I subscribe to a number of mail lists, such as this one. I currently use
>> Thunderbird's filtering capability to sort mail into a number of
>> subdirectories within my inbox, which works fine, but requires me to set up
>> all my workstayions (laptop, home, work) with the same filters. I have now
>> acquired an Android smartphone, which has no filtering capability. In any
>> case, keeping a number of workstations in sync is a pain.
>>
>> So, I'd like to perform the filtering on the server (for my user initially,
>> then perhaps for others). My extensive googling reveals that there are many
>> tutorials for filtering spam, but that's not really my problem.
>>
>> I can't find any tutorials on how to set up filters based on, say subject:,
>> from:, or to: fields, but feel certain such must exist.
>> Can any kind person direct me to a suitable tutorial, please?
>
> You can use:
>
> - sieve, a language for controlling filtering on IMAP servers.
>   Supported by Thunderbird but not very much else.
>
> - procmail, a language for filtering on delivery (postfix will
>   call it) -- widely known, but arcane syntax and requires shell
>   access to edit or place the ~/.procmailrc
>
> - maildrop, aka mailfilter, a language for filtering on delivery
>   (postfix will call it, too) -- less widely known, but has
>   syntax that is much more readable than procmail. Requires
>   shell access to place a ~/.mailfilter file.
>
> All of these have Debian packages.
>

Thanks for the heads-up, Dan. I'll take a look at maildrop.



-- 
Tony van der Hoff        | mailto:tony@vanderhoff.org
Buckinghamshire, England |

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web