0

I'd like to run a shell script when receiving emails from certain email account.

I am putting together a sms alert system whereby sending emails to alerts@domain.com, it runs a script that converts those emails to sms messages.

The script part is quite simple since I've got quite experience on it, but I have no idea about how trigger a script just when sending emails to a certain account.

diegoiglesias
  • 323
  • 1
  • 2
  • 13

1 Answers1

0

If your exim configuration allows pipe transports from a .forward file, you can also put the following command in a ~/.forward -file for the account in question:

|/path/to/script
krisku
  • 3,916
  • 1
  • 18
  • 10