trigger script on receipt of email

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

skygriffin
Posts: 21
Joined: Tue Sep 12, 2006 5:49 am

trigger script on receipt of email

Postby skygriffin » Tue Sep 12, 2006 6:02 am

Hi,

we are just starting to look at Scalix for our enterprise email system. One consideration is support for triggering scripts on receipt of email. We have several email accounts that use the .forward file to frigger a message to an automated paging service. The .forward looks like this:

"|/usr/local/bin/pager.pl"

This automated functionality is very important to us. There is a similar requirement (though not as critical) to implement an autoforward on a specific address.

I suspect that both these functions are possible - just finding it difficult to understand how to implement them.

any assistance appreciated
Scalix 10 / Fedora 4

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Sep 12, 2006 6:11 am

The easiest way would be to put the script in your sendmail /etc/aliases file, eg.

Code: Select all

pager<TAB>|/usr/local/pager.pl


Then mail sent to pager@domain.com will be sent to the script. However, this can very easily lead to security issues, so sendmail has very strict requirements on where the script is, and who is allowed to execute scripts. I suggest you look on www.sendmail.org for more info.

As to the autoforward, you simply create a "Redirect" rule with either sxaa or the web rules wizard, or the Outlook Rules Wizard and you're all set for that account.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 4 guests