Skip to main content
Thanks not necessary on SO/SX http://meta.stackoverflow.com/a/3021/186664
Source Link
Anthon
  • 81.4k
  • 42
  • 174
  • 228

I have a CentOS 6.3 server. I would like to create an email address like, for example, [email protected] that will be a special kind of email that will trigger a script.

For example: suppose I mail [email protected] and the subject is an IP address. I want the server to receive that mail, extract that IP from the subject and append it to a file.

How is this done on Linux? Can you guys tell me how this can be done? Thanks.

I have a CentOS 6.3 server. I would like to create an email address like, for example, [email protected] that will be a special kind of email that will trigger a script.

For example: suppose I mail [email protected] and the subject is an IP address. I want the server to receive that mail, extract that IP from the subject and append it to a file.

How is this done on Linux? Can you guys tell me how this can be done? Thanks.

I have a CentOS 6.3 server. I would like to create an email address like, for example, [email protected] that will be a special kind of email that will trigger a script.

For example: suppose I mail [email protected] and the subject is an IP address. I want the server to receive that mail, extract that IP from the subject and append it to a file.

How is this done on Linux? Can you guys tell me how this can be done?

Source Link
Duck
  • 4.8k
  • 19
  • 56
  • 72

Creating an email that can trigger a script

I have a CentOS 6.3 server. I would like to create an email address like, for example, [email protected] that will be a special kind of email that will trigger a script.

For example: suppose I mail [email protected] and the subject is an IP address. I want the server to receive that mail, extract that IP from the subject and append it to a file.

How is this done on Linux? Can you guys tell me how this can be done? Thanks.