sajan Posted November 3, 2011 Share Posted November 3, 2011 I get the following error on mail sending : SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: 220 xyz.com ESMTP SMTP -> ERROR: HELO not accepted from server: 220 xyz.com ESMTP SMTP -> FROM SERVER:250-xyz.com 250-AUTH=LOGIN CRAM-MD5 250-AUTH LOGIN CRAM-MD5 250-STARTTLS 250-PIPELINING 250 8BITMIME SMTP -> FROM SERVER:250 xyz.com SMTP -> FROM SERVER:250 ok SMTP -> ERROR: DATA command not accepted from server: 250 ok SMTP Error: Data not accepted When i add this to smtp class if($code == 250) { $rply = $this->get_lines(); $code = substr($rply,0,3); } I get this SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: 220 xyz.com ESMTP SMTP -> ERROR: HELO not accepted from server: 220 xyz.com ESMTP SMTP -> FROM SERVER:250-xyz.com 250-AUTH=LOGIN CRAM-MD5 250-AUTH LOGIN CRAM-MD5 250-STARTTLS 250-PIPELINING 250 8BITMIME SMTP -> FROM SERVER:250 xyz.com SMTP -> FROM SERVER:250 ok SMTP -> ERROR: DATA command not accepted from server: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) Please help me out.. Quote Link to comment Share on other sites More sharing options...
sajan Posted November 3, 2011 Author Share Posted November 3, 2011 Ok guys ...after much researching and experimenting i got it solved. I had to include the mail server ip in /usr/local/etc/postfix/main.cf file file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.