Hi, I am making a MySQL based autoresponder for postfix in combination with this howto: http://www.howtoforge.com/virtual_postfix_mysql_quota_courier Now i have made: Code: autorespond unix - n n - - pipe flags=F user=nobody argv=/usr/local/bin/autorespond ${sender} ${recipient} In the transport table i add: domain: [email protected] transport: autorespond: That works fine, the mail gets delivered to the program "autorespond" wich fetches some data from the MySQL and sends an autorespond message. But here comes the problem. Since the message gets delivered to the "autorespond transport" it does not end up in the users Maildir. I want to do both Is it possible to deliver a message to "autorespond" and "virtual", so that autorespond can sent a message and virtual can deliver the mail to the users Maildir? I know there are many ways to rome, but wich one fits in best in this situation?
I think you must change your autorespond script so that it still puts the original message into the recipient's Maildir.
I know this thread is old... but I wanted to see if my logic applies: Using the same setup as Wido... Code: autorespond unix - n n - - pipe flags=F user=nobody argv=/usr/local/bin/autorespond ${sender} ${recipient} I would create a vacation tld just to use as a fake in my domains table: Code: mysql> select * from domains; +------------------+ | domain | +------------------+ | example.com | | vaca.example.com | +------------------+ 2 rows in set (0.00 sec) In the forwardings table, I'll forward mail for my example user so that it will deliver to the user's mailbox as well as a user on the vacation tld: Code: mysql> select * from forwardings; +------------------+----------------------------------------+ | source | destination | +------------------+----------------------------------------+ | [email protected] | [email protected],[email protected] | +------------------+----------------------------------------+ 1 row in set (0.00 sec) Then in the transport table, I set up so that mail for any user on the vacation tld is forwarded to the autoresponder: Code: mysql> select * from transport; +-------------------+--------------+ | domain | transport | +-------------------+--------------+ | @vaca.example.com | autorespond: | +-------------------+--------------+ 1 row in set (0.00 sec) Theoretically then, anything sent to a @vaca.example.com email address will get piped to the autoresponder -- does that sound correct? Question 2 is -- suppose I forwarded the mail to [email protected]@vaca.example.com -- would that work properly? Does that give me any benefit here? Thanks! Caio
Not yet -- Haven't had much time to do so as we're having severe inclement weather here in California which is affecting the power grid. I will attempt to do so and report back. Caio