Heyas.

Ok, after successfully updating to dbmail version 1.2 I have attempted to get 
the auto_reply feature to work.

I am using dbmail 1.2 and postfix. Everything is working great. (except for 
auto_reply)

I have searched through forums and docs and found much discussion on the topic 
of auto_reply.. but have found no solid answers to the problems people are 
having. (which seem to be the same problem im having.)

i get this in the maillog:

Oct 23 16:07:27 web2 dbmail/smtp[10050]: GetConfigValue(): searching value for 
config item [AUTO_REPLY]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: GetConfigValue(): found value [yes]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: insert_messages(): starting auto-reply 
procedure
Oct 23 16:07:27 web2 dbmail/smtp[10050]: db_query(): executing [SELECT 
reply_body FROM auto_replies WHERE user_idnr = 7]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: db_get_reply_body(): found body [This 
is an auto-reply message for testing.]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: GetConfigValue(): searching value for 
config item [SENDMAIL]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: GetConfigValue(): found value 
[/usr/sbin/sendmail]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: send_reply(): found sendmail command 
to be [/usr/sbin/sendmail]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: send_reply(): found SUBJECT [testing 
123]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: send_reply(): found FROM ["the dude" 
<[EMAIL PROTECTED]>]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: send_reply(): found REPLY-TO ["the 
dude" <[EMAIL PROTECTED]>]
Oct 23 16:07:27 web2 dbmail/smtp[10050]: send_reply(): header fields scanned; 
opening pipe to sendmail
Oct 23 16:07:27 web2 dbmail/smtp[10050]: send_reply(): sending data
Oct 23 16:07:27 web2 dbmail/smtp[10050]: send_reply(): pipe closed
Oct 23 16:07:27 web2 dbmail/smtp[10050]: send_reply(): reply could not be sent: 
sendmail error
Oct 23 16:07:27 web2 dbmail/smtp[10050]: insert_messages(): Freeing memory 
blocks

... and the auto_reply of course is not sent.

I would be happy to get this working, but i would also be happy if someone 
could tell me how i can pipe it to an external program.

I plan to write a php script which manages auto_replies, but for this to work i 
would somehow need to pipe the relevent data from dbmail during the auto_reply 
procedure.

I read somewhere that you can do this by using something similar to 
'|/path/to/program' in the reply_body field, but i cannot get piping to work.


Any light anyone could shed on this would be most appreciated.

Thanks in advance,
Dan.

Reply via email to