Jonathan Feally wrote: > > You are using dbmail-deliver with sendmail? > > Try setting your syslog to level 511 and running again. I don't like the > syslog logging as it cuts off messages, but it should give us more than > stdout/stderr that is lost with sendmail piping to dbmail-deliver. > > -Jon >
as noted, loglevel increased to maximum, but don't see anything particular in it, only error I had from sendmail was ---- Jul 30 07:37:44 b02 sm-mta[17348]: n6TC8UcC017946: [email protected], delay=17:29:09, xdelay=00:00:03, mailer=local, pri=10797264, dsn=4.0.0, stat=Deferred: local mailer (/usr/sbin/sensible-mda) exited with EX_TEMPFAIL ---- Same message from stdin to dbmail-deliver and the same user was delivered, anyway queue processing retry did not success until I manually threw out iso-encoded garbage in subject from queue qf.... file. PS. To test dbmail-deliver with sendmail I modified slightly debian helper sensible-mda, adding a few paragraphs just like these existing, and a small check to determine which MDA shall be used for particular user, something like use_dbmail_delivery(char *final_user) { // pg connection declarations here PGresult *res; char *query[MAXLEN]; sprintf(query, "SELECT count(*) as howmany FROM dbmail_users WHERE username LIKE %s LIMIT 1;", final_user, final_user ); res = PQexec(pgc, query ); if ( PQresultStatus(res) != PGRES_TUPLES_OK ) { PQfinish(pgc); pgc = (PGconn *) NULL; return 0; } int ret = atoi( PQgetvalue(res, 0, 0) ); return } [...] if ( use_dbmail_delivery(recipient)) { ... exec DBMAIL_DELIVER, "-u", "%s", recipient ) } else ... [ follow the rest of original sensible-mda program ] http://packages.debian.org/sid/sensible-mda Regards, P. -- View this message in context: http://www.nabble.com/2.3.6-delivery-failed-with-malformed-subject-tp24735655p24742694.html Sent from the dbmail users mailing list archive at Nabble.com. _______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
