I'm running Dovecot mail server and postfix on CentOS which serves many virtual hosts and now I have searching around hour's and reading lot of some more useful some complete junk material about how to force all incoming mails to one mail user under each domain for example:
http-post@* //(any existing allowed host)
to be delivered as HTTP POST to fixed URL and not into to mail box. but I can't find really any info what would be The Right way to do it. I already tried approach from postfix side of same mail domains but without success. Right now I'm reading about Dovecot and Sieve but it seems like lot of upcoming reading and I'm not sure am I going to right direction. For development of other-end and testing purposes I created and used a small sh script to sniff mail and send HTTP POSTs but now when everything seems ready for production I'm stuck.
How can I achieve that the right Way?