PDA

View Full Version : Email to scripts


kippi
12th November 2006, 01:24
Hey,

Is there away to send e-mails to a script?

For our helpdesk when people e-mail in it goes to a script that logs it in the helpdesk.

Many Thanks

Chris.

djtremors
12th November 2006, 10:01
What i do is redirect the email (ie. forward it) to one of the local account for processing via an aliase. ie

support@virtdomain.com -> maillistfilter@localhostdomain.com

/etc/postfix/aliases

maillistfilter: "| /bin/maillistfilter"

then run 'newaliases'

process what you need to do in the script and redirect it to your real local mail account with whatever changes or just finish it if it's not to forward the mail on.

works for me.

falko
12th November 2006, 17:25
Have a look here: http://www.howtoforge.com/forums/showthread.php?t=7793&highlight=procmail