Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have postfix installed in ubuntu. I want postfix/any other way(please suggest) to call the web service and provide the email in text format to that.

FYI: the web service contains the code to read the keywords in email and reply to that mail accordingly(so the headers must also be sent to the webservice)

what can i do? please help

share|improve this question
Sounds like this would be something the providers of said webpage could provide you with. – adaptr Dec 3 '12 at 9:29
whenever i get a mail, that mail's body and a sender id must be sent as a parameters in the http request. for ex: I want postfix/something to call So the mail body and sender id must be inserted whenver the mail comes. These are my requirements – Nithin Dec 4 '12 at 5:31

You'll need to write something you can use as a postfix transport, which then calls the webservice for you. It'll need to read in the email on stdin, do the relevant http request and exit with an appropriate exitcode (0 for success, 66 for temporary failure etc.). See also the manpage for transport.

share|improve this answer
hey, can you help me what is that something i can write? The link did not help me much... can we make it like postfix calling a script and script doing the rest of the work? can i do like this? how exaclty? – Nithin Dec 4 '12 at 9:43
I can send you my hourly consulting rates if you like, but this is not a "get someone to write me something for free site" I'm afraid. – Dennis Kaarsemaker Dec 4 '12 at 14:48
Sorry I am new to this forum – Nithin Dec 5 '12 at 8:21
up vote -1 down vote accepted

BTW: I got the answer for FREE

we can use shell script as in here

or php as in here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.