Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 22, 2012, 08:32:54 PM

Pages: [1]   Go Down
  Print  
Author Topic: Exim, Filter, forward mail to folder  (Read 1106 times)
bluebiscuit
Newbie
*
Offline Offline

Posts: 5


« on: February 12, 2007, 02:54:11 PM »

Hi,

I want to sort incoming mail (e.g. by sender) and place it in mailbox sub-folders depending on who sent it.

Is this possible on LunarPages? Possibly using an Exim filter?

If not is there some other way I can accomplish it?

Thanks,

Greg.

ObSmiley:  Bouncin for Joy
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5203



« Reply #1 on: February 12, 2007, 07:29:35 PM »

I'd like to do similar things, and was wondering if there's a fairly complete tutorial anywhere in LP about doing things with incoming mail. Are there easy (or at least, possible) and well documented ways to

  • trigger a script to run when email arrives at a particular mailbox (not wait for a cron job)
  • let that script read the headers and content of the email
  • take some action, such as sending out an email or updating a database
  • leave the email alone, delete it, edit (replace) it, or move it to another mailbox

I know that bits and pieces of this have been done many times (autoresponders, SpamAssassin, forwarding), but is there a general framework? Are there toolkits with individual tools to do these various subfunctions that I can mix and match? For example, to look at an email, autorespond in different ways based on senders and keywords, possibly delete some emails or move others to other mailboxes, send an alert email to me in certain cases? This may or may not be amenable to being done with a chain (pipeline) of filters of some kind -- it may need to be under the control of one script so that the control flow can skip around.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5203



« Reply #2 on: May 06, 2007, 08:14:11 PM »

bump.

Is there any documentation on how to do all sorts of things with incoming mail?
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
LeftBrain
Newbie
*
Offline Offline

Posts: 1


« Reply #3 on: May 24, 2007, 09:27:33 PM »

Bump.

Sure would be nice to have incoming mail routed to folders.
Logged
Lupine1647
Berserker Poster
*****
Offline Offline

Posts: 10868


« Reply #4 on: May 31, 2007, 11:40:28 AM »

I know it's certainly possible to have mail routed through a script (from there you can move it to a folder or process it). I use to do it with my gmail invite script to process invites that were sent to the special address.

* RyanJ makes a little todo to see if he can find that script again.

If I can find it again and can set it up again I'll post a small tutorial on how to do it.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: