my application is not able to communicate with qmail sever !

From: Date: Fri, 26 Jul 2002 11:02:15 +0000
Subject: my application is not able to communicate with qmail sever !
Groups: php.general 
Request: Send a blank email to php-general+get-109699@lists.php.net to get a copy of this message
Hi ! I am running my PHP application running on apache webserver.I am using Qmail(installed on Linux operating system) as an SMTP server..The problem is..I am not able to send any mails from my application using Qmail.Whereas I am able to send mails from my application using SendMail..My PHP application is running on windows 2000 and the qmail is running on Linux. The following is the technical information I am using in my application..... A) The mail configuration settings (in php.ini) are. 1)SMTP = 192.168.10.24 2)sendmail_from = sreedhar@cssolutionsinc.com 3)sendmail_path = /var/qmail/bin/sendmail I tried with the following two options too..that didn't work out.. sendmail_path = /var/qmail/bin/sendmail sendmail_path = /usr/sbin/sendmail B) And I am using php's inbuilt "mail()" function in my application as follows.. mail("sreedhar@cssolutionsinc.com","test","test"); Then when I tried from application I got the following message from Qmail server.. "See http://pobox.com/~djb/docs/smtplf.html." When I have gone to the above link it is saying the following things the qmail expects : 1) Every line in an Internet mail message is required to end with CR LF. The entire message ends with CR LF dot CR LF. 822bis specifically prohibits other uses of LF. 2)The mail clients discussed above are incorrectly ending lines with LF and, in most cases, ending the entire message with LF dot LF. That's not CR LF dot CR LF, so a server such as msn.com will sit there waiting for the rest of the message. After a while it'll give up and drop the connection. Your mail doesn't get through. Some mail servers convert a bare LF into CR LF, and accept LF dot LF as the end of a mail message. I wonder whether the php mail() function handles the mail ...The format qmail is expecting. I just want to know why the mails are not going through "qmail" from my application where as my application is able to send mail using "sendmail" with the above settings.. I appreciate your help regarding this problem.. Regards ! Sreedhar.

« previous php.general (#109699) next »