forward to an external command

2009-03-06 Thread George
Hi, I have postfix with postfixadmin and everything stored in a mysql database. How do I forward emails sent to a mail account to an external command? Please help THanks

Re: forward to an external command

2009-03-06 Thread J.P. Trosclair
George wrote: I have postfix with postfixadmin and everything stored in a mysql database. How do I forward emails sent to a mail account to an external command? Since you are using virtual aliases (postfixadmin w/mysql assumes so) you'll need to setup a pipe transport in master.cf and proper

Re: forward to an external command

2009-03-06 Thread Brian Evans - Postfix List
George wrote: Hi, Please, Do not top post. Reply to the text directly. Thanks for your reply I am sorry but I am not very technical. I am the type of guy that can follow howtos You don't seem to follow J.P.'s example very well. Especially the part about See the man pages of pipe and

Re: forward to an external command

2009-03-06 Thread J.P. Trosclair
What is my_custom_transport.example.com ? A subdomain? Yes. In addition, this list uses example.com as a basis quite frequently. You didn't provide your own domain, so J.P. used this as an example. As a side note, it doesn't have to be a real sub-domain. When the mail is handed off to

Re: forward to an external command

2009-03-06 Thread George
Hi, Thanks all for your help. If anyone needs this in future, here's how I did it: 1. Added the following line to /etc/postfix/main.cf: transport_maps = hash:/etc/postfix/transport 2. create a subdomain like(postfixadmin does not allow to add an alias to a not existing domain):