Marius,

please try this patch

http://git.dbmail.eu/paul/dbmail/patch/?id=9fedaa2d4fd26ba762b07092998eab34df8252d6



On 01/16/2011 04:17 PM, Marius Karthaus wrote:
> Hi list,
> 
> I'm using DBmail 2.2.17+ postfix 2.7
> 
> I've created a script that receives email and pushes it into a CRM
> system. For this to work I'm forwarding email to a pipe (-t
> |/path/to/program)
> I've found that if this fails (crash, exitcode >0, non-executable etc)
> the message is not queued for retry and no error is send back to the
> sender.
> Is there a way to fix this?
> 
> Regards,
> Marius Karthaus
> 
> ( Note in this example I've removed the execution permissions from the
> program, i've edited the log to obscure the adresses)
> 
> ==> /var/log/dbmail.err <==
> sh: usr/local/sbin/mail2crm: Permission denied
> Jan 16 16:10:20 mail3 dbmail-lmtpd[3222]: Error:[delivery]
> pipe.c,send_mail(+186): sendmail error return value was [126]
> 
> ==> /var/log/mail.info <==
> Jan 16 16:10:20 mail3 postfix/smtpd[24157]: 5BC2132C00BD:
> client=localhost[127.0.0.1], sasl_method=PLAIN, [email protected]
> Jan 16 16:10:20 mail3 postfix/cleanup[24160]: 5BC2132C00BD:
> message-id=<[email protected]>
> Jan 16 16:10:20 mail3 postfix/qmgr[8149]: 5BC2132C00BD:
> from=<[email protected]>, size=566, nrcpt=1 (queue active)
> Jan 16 16:10:20 mail3 postfix/smtpd[24157]: disconnect from
> localhost[127.0.0.1]
> Jan 16 16:10:20 mail3 dbmail/lmtpd[3222]: Error:[delivery]
> pipe.c,send_mail(+186): sendmail error return value was [126]
> Jan 16 16:10:20 mail3 postfix/lmtp[24161]: 5BC2132C00BD:
> to=<[email protected]>, relay=localhost[127.0.0.1]:24, delay=0.17,
> delays=0.11/0/0/0.06, dsn=2.0.0, status=sent (215 Recipient <[email protected]>
> OK)
> 
> and after a minute:
> 
> ==> /var/log/mail.info <==
> Jan 16 16:11:20 mail3 dbmail/lmtpd[3222]: Error:[lmtp]
> lmtp.c,lmtp_handle_connection(+205): client timed, connection closed
> Jan 16 16:11:20 mail3 postfix/qmgr[8149]: 5BC2132C00BD: removed
> 
> 
> 
> _______________________________________________
> DBmail mailing list
> [email protected]
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
> 


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to