Hi, So the pipe is executed like this dbmail-users -x @domain.com -t "|/usr/bin/php -q /var/www/ domain.com/framework/emailparse.php"
dbmail-users -l -- forwards -- @domain.com: |/usr/bin/php -q /var/www/domain.com/framework/emailparse.php the dbmail.err shows dbmail-lmtpd[11535]: [0x2464f50] Notice:[clientbase] client_init(+167): incoming connection on [127.0.0.1:24] dbmail-lmtpd[11535]: [0x2464f50] Notice:[clientbase] client_init(+185): incoming connection from [127.0.0.1:36402] Could not open input file: /var/www/domain.com/framework/emailparse.php dbmail-lmtpd[11535]: [0x2464f50] Notice:[message] insert_messages(+2608): forwaring failed, reporting transient error. On Fri, Sep 16, 2011 at 9:17 PM, RDP <[email protected]> wrote: > Thanks Paul, So I increased the log verbosity and checked the logs > seems dbmail is complaining that it cannot open the input file. Any reasons > on why it could do so. > > I have give 755 permissions on the php file and also have added dbmail and > postfix as the user under the group www-data. > > Could it be because dbmail or postfix runs in chroot or something else? If > so how would one deal with this > > regards > > > On Fri, Sep 16, 2011 at 6:53 PM, Paul J Stevens <[email protected]> wrote: > >> On 16-09-11 14:55, RDP wrote: >> > Thank you Alan and Paul. >> > >> > @Alan your suggestion works without a glitch, but the drawback is there >> > is inbetween user who get the mail and this changes the to/from header. >> > >> > @Paul, I couldnt really grasp your suggestion. Anyway this is my present >> > postfix config >> >> > alias_maps = hash:/etc/aliases >> > alias_database = hash:/etc/aliases >> >> So you are *not* using mysql alias_maps! In that case: show some logs. >> Perhaps dbmail-lmtpd can execute the PHP script. The logs should reveal >> why not. >> >> -- >> ________________________________________________________________ >> 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
