[SOLVED] Gmail, Authentication, TLS etc
Posted: Sat Jun 09, 2007 3:49 pm
I think I must be missing a fundamental point somewhere in all of this, but on both debian and ubuntu servers, whether I use PHP 4 or 5, TLS or SSL, ports 465 or 587; the 3-5 line gmail code snippets in the wiki docs simply generate the following log
++ Enabling logging
>> MAIL FROM:
<< 530 5.5.1 Authentication Required b33sm8684065ika
!! Expected response code(s) [250] but got response [530 5.5.1 Authentication Required b33sm8684065ika]
>> RCPT TO:
<< 530 5.5.1 Authentication Required b33sm8684065ika
!! Expected response code(s) [250] but got response [530 5.5.1 Authentication Required b33sm8684065ika]
>> RSET
<< 250 2.1.0 Flushed b33sm8684065ika
By messing up tls, ssl and the gmail ports, it is also possible to generate a 'failed to start' error.
I have looked through all the gmail threads I could find here, and I have seen several references to the necessity of having openssl compiled in, tantalising glimpses of referrals to tls://, brief flashes of the necessity of tls stream wrappers, etc etc etc.
If I run phpinfo(), it says it has openssl 0.9.8a. Is this the touchstone we seek, and if so, what magic ini file tweaks and command line switches are needed to make it surrender these treasures for use by the community?
++ Enabling logging
>> MAIL FROM:
<< 530 5.5.1 Authentication Required b33sm8684065ika
!! Expected response code(s) [250] but got response [530 5.5.1 Authentication Required b33sm8684065ika]
>> RCPT TO:
<< 530 5.5.1 Authentication Required b33sm8684065ika
!! Expected response code(s) [250] but got response [530 5.5.1 Authentication Required b33sm8684065ika]
>> RSET
<< 250 2.1.0 Flushed b33sm8684065ika
By messing up tls, ssl and the gmail ports, it is also possible to generate a 'failed to start' error.
I have looked through all the gmail threads I could find here, and I have seen several references to the necessity of having openssl compiled in, tantalising glimpses of referrals to tls://, brief flashes of the necessity of tls stream wrappers, etc etc etc.
If I run phpinfo(), it says it has openssl 0.9.8a. Is this the touchstone we seek, and if so, what magic ini file tweaks and command line switches are needed to make it surrender these treasures for use by the community?