I wouldn't pipe it at all, I would use a trigger in the database. when any email hits the catchall box, fire a trigger to run the code you want, it would be best to write what you want in pl/pgsql natively because then you can compile it.
> Date: Fri, 16 Sep 2011 10:22:09 +0200 > From: [email protected] > To: [email protected] > Subject: Re: [Dbmail] need to pipe catchall mails to php script > > On 15-09-11 22:43, RDP wrote: > > dbmail-users -x @domain.com <http://domain.com/> -t "|/usr/bin/php -f > > /var/www/emailin.php" > > > > (a) works by (b) doesnt .. every time a catch all email hits postfix I > > get this error Persistent Transient Failure Address Status Bad > > destination mailbox address (in reply to end of DATA command)). > > Looks like you are using mysql maps in postfix to do the forwarding - > which doesn't work. > > You need to make sure your alias_maps setup doesn't return values where > the destination begins with '|' or '!' so it get's fed to dbmail. Then, > it will work. > > So: what does your alias_maps setup look like? > > > -- > ________________________________________________________________ > Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin > > * Premium Hosting Services and Web Application Consultancy * > > www.nfg.nl/[email protected]/+31.85.877.99.97 > ________________________________________________________________ > _______________________________________________ > DBmail mailing list > [email protected] > http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
_______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
