News for hackers. Stuff that matters.
Re:Ask HN: What's the easiest way to set up email forwarding... by pdx on Friday December 07, 2012 @11:17AM (#4887560)
I use Postfix and Procmail.

In my .procmailrc file in my user directories, I set up forwarding rules. I've set up several servers this way. It's always a bit of head scratching, but it's fun when you get it working and it's not that bad to set up.

What's fun about .procmailrc files is that you can do anything with the email based on regex rules of the subject, to, from, etc. You can even run scripts. I can reboot my server by sending a properly formatted email to a certain email address, for example.

There are no comments on this comment yet.