Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[SOLVED] redirecting e-mail by sender

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
potuz
Guru
Guru
Posts: 378
Joined: Sat Jan 30, 2010 2:00 am

[SOLVED] redirecting e-mail by sender

  • Quote

Post by potuz » Fri Nov 02, 2018 11:41 am

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.
Top
grooveman
Veteran
Veteran
User avatar
Posts: 1217
Joined: Mon Feb 24, 2003 5:24 pm

  • Quote

Post by grooveman » Fri Nov 02, 2018 1:17 pm

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.
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Fri Nov 02, 2018 2:13 pm

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

/home/me/.mailfilter

Code: Select all

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
Top
potuz
Guru
Guru
Posts: 378
Joined: Sat Jan 30, 2010 2:00 am

  • Quote

Post by potuz » Fri Nov 02, 2018 3:53 pm

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.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic