Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] redirecting e-mail by sender
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Fri Nov 02, 2018 11:41 am    Post subject: [SOLVED] redirecting e-mail by sender Reply with quote

My MTA/MDA-LDA/ MUA of choice are Postfix/Dovecot/Mutt. If a user wants to redirect emails from a specific address to a different folder he/she can do this with their own MUA. I can do this at the server level with both postfix and dovecot, but I wander if the user can do this filtering automatically without the need of running the client. Namely is there something like a ~/.config/dovecot/* or similar that each user can edit to apply filters? or this has to be done at the client level?

Last edited by potuz on Sat Nov 03, 2018 5:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Fri Nov 02, 2018 1:17 pm    Post subject: Reply with quote

Not that familiar with postfix... but, I know that procmail can do what you are talking about. Have you looked into that? Each user has his/her own .procmailrc that can be changed by them... then there is a system-wide /etc/procmailrc that applies to everyone managed by the sysadmin.

I've heard of people using it with postfix (I've been a sendmail guy, and I know it works beautifully there), so this could very conceivably work for you... Check it out :)
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5801

PostPosted: Fri Nov 02, 2018 2:13 pm    Post subject: Reply with quote

i've been using maildrop for some years now... works pretty good as long as you maintain the sorting rules...

/home/me/.mailfilter

Code:
logfile .maildrop.log

if (/^From:.*gentoo\.org/)
{
        to $DEFAULT/.gentoo
}


edit: darn, this looks like it only works with courier-imap. :(
_________________
overlay | patches
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Fri Nov 02, 2018 3:53 pm    Post subject: Reply with quote

It seems that this is already there in Dovecot, I haven't had time to read carefully, but it looks as though this solves my issue:

https://wiki2.dovecot.org/Pigeonhole

Edit: indeed adding sieve support was as simple as changing one line in a configuration file and the users can add Sieve scripts to do their own filtering.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum