I was wondering if anyone had any knowledge on how this idea can be done. It's not a requirement but more of an idea I came up with that I don't know how to word my google searches to find out if it's been done.
Basically the idea is this. I have an Ubuntu Postfix/Dovecot mail server with Amavis, Postgrey, and Spamassassin. Now I've heard of using Sieve for dovecots spam folders and such. But I'm wondering if there's a way to enable users to forward an email to a spam address, such as email@example.com, that will basically act as a robot user and file the email away in a kind of universal junk folder and automatically add that address to spamassassin or postgrey. Eventually I would like to have it also clean out the folder ever X amount of days (probably with cron).
So the work flow I'm hoping would go as such:
- USER@EXAMPLE.COM receives email from JUNK@SPAM.COM
- USER@EXAMPLE.COM forwards it to SPAM@EXAMPLE.COM
- SPAM@EXAMPLE.COM moves it to junk folder.
- SPAM@EXAMPLE.COM adds it to spamassasin/postgrey for blocking.
- CRON deletes messages that are 7 days old from junk folder.
Ideas? If I can get this working I might write up a tutorial on it for others if one doesn't allready exist.