View previous topic :: View next topic |
Author |
Message |
potuz Guru
Joined: 30 Jan 2010 Posts: 378
|
Posted: Fri Nov 02, 2018 11:41 am Post subject: [SOLVED] redirecting e-mail by sender |
|
|
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 |
|
|
grooveman Veteran
Joined: 24 Feb 2003 Posts: 1217
|
Posted: Fri Nov 02, 2018 1:17 pm Post subject: |
|
|
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 |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Fri Nov 02, 2018 2:13 pm Post subject: |
|
|
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. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
potuz Guru
Joined: 30 Jan 2010 Posts: 378
|
Posted: Fri Nov 02, 2018 3:53 pm Post subject: |
|
|
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 |
|
|
|