Bjørn Knudsen wrote:
It works because you have a pre-formated from header "[EMAIL PROTECTED]".
But since most mail clients prases this as: "Paul Something" <[EMAIL PROTECTED]"
the pipe will fail.

Which is why I have also included a small but effective patch: simply quote the argument for SENDMAIL. At least then the pipe won't fail due to shell errors, allowing users to write custom sendmail wrappers and like.


Pipe.c fetches the from header content directly from mime without handling
the data and pushes it to sendmail.

In those cases (in other words, most cases) the pipe will fail.

I posted a more spesific mail previously. I really hope someone could do a
better work with a "workaround" or a patch for this. They probably already
know, but still..


Regards,
Bjørn Knudsen
HiperCom AS
Norway
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Paul J Stevens
Sent: 23. oktober 2003 10:31
To: [email protected]
Subject: [Dbmail] auto_reply works just fine.

It work for me.

I'm using

[SMTP]
SENDMAIL=/usr/sbin/sendmail


cat >> testmail << EOF
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: test

test
EOF
echo "insert into auto_replies (user_idnr,reply_body) values
(23,'some\nsilly\mtest\n')" | mysql dbmail

cat testmail | dbmail-smtp -u testuser

Et voila. It works.

If it doesn't work its because pipe.c is slightly bogus.

The popen call to the SENDMAIL program passes the From or Reply-To values to
the program as parameters without proper shell escaping !!! This is an exploit waiting to happen (SECURITY ALERT :-).

Try the attached trivial patch.

Ilja, what is your take.









dbmail wrote:

Ok,

Thanks for that.

I will have a look through your thread... And if i find any more info i'll pass it your way..

;)
cheers,
Dan.




----- Original Message -----
From: "Butch Evans" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, October 23, 2003 4:50 PM
Subject: Re: [Dbmail] auto_replies (please be kind)




On Thu, 23 Oct 2003, dbmail wrote:



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

You just missed the thread I started with this exact same question.
It ended exactly like every other thread in the archives with this question....no answer. I don't know if this feature is simply broken, or it is incompatible with the postfix sendmail program.

Nobody answered the question I asked: Has ANYONE gotten this feature to work with Postfix? Has anyone gotten this feature to work with ANY MTA?

So, if you get an answer that works, and is done privately (does not make it to the list), please, PLEASE send it to me as well. By the way, I will be happy to forward you the thread I spoke about, if you wish, or you can look in the archives (it was just 3 days ago, so I don't think it is in the archives, yet).


--
Butch Evans
BPS Networks
Bernie, MO
573.293.2638

_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail



_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail




--
  ________________________________________________________________
  Paul Stevens                                  mailto:[EMAIL PROTECTED]
  NET FACILITIES GROUP                     PGP: finger [EMAIL PROTECTED]
  The Netherlands________________________________http://www.nfg.nl

Reply via email to