after switching the email for my domain to google apps (via mx records in dns settings), my drupal site no longer sends email for new registers, contact form, forward, etc. i downloaded and configured the smtp module as a means to get it working again. when i tried to send a test email i get the following barrage of errors:

fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number in /path/to/html/sites/all/modules/smtp/smtp.module on line 1878.

fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: php_stream_sock_ssl_activate_with_method: SSL handshake/connection failed in /path/to/html/sites/all/modules/smtp/smtp.module on line 1878.

fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: failed to activate SSL mode 2 in /path/to/html/sites/all/modules/smtp/smtp.module on line 1878.

fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /path/to/html/sites/all/modules/smtp/smtp.module on line 1878.

fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to :587 in /path/to/html/sites/all/modules/smtp/smtp.module on line 1878.

Error sending email: "SMTP Error: Could not connect to SMTP host." From: "your@example.com" To: "my@example.com"

i know very little about openssl and phpmailer (as required by the smtp module) so ican't confirm whether they exist or not. i can say that i am running the site on a grid-server from mediatemple. i have access to my php.ini file if i need to make adjustments for this to work.

has anyone been able to get there mediatemple hosted drupal site to send email via google apps's smtp? if so, how did you do it?

thanks in advance for your help.

Comments

masande’s picture

someone has got to have been able to implement email via google apps on a mediatemple hosted site. if you have, could you please provide some guidance on how you made this work?

thanks!

Mark Sanders
Q Collective

Mark Sanders
Q Collective

dangarc’s picture

I don't quite understand your question. Perhaps you can clarify for me? I've also migrated my email addresses from my domain to google apps.

You host your email addresses through google, but they were originally on mediatemple, correct? So therefore, mediatemple is your drupal installation.

phpmailer works by using the in-house system that is located through the domain.

Assuming you followed google apps setup to the T, you've already cleared your MX records on the mediatemple domain. This would make it impossible for any module/application to access the phpmailer, which attempts to mail from the OS, to use an external client for email.

My best suggestion with the information at hand would be to follow google apps dual deployment suggestion, where emails at mediatemple and google co-exist, and forward all your emails from mediatemple to google instead. That way, an application still uses the mailer, but the outgoing email is forwarded AFTER being processed from the primary domain first.

masande’s picture

i have since fixed this issue. it was the port that i had wrong. for use with thunderbird, google apps says i have to use port 587 with tls. with the smtp module i have to use port 465 with ssl. once i read and used the recommended values, smtp mailing worked.

Mark Sanders
Q Collective

Mark Sanders
Q Collective

lunk rat’s picture

Thanks for posting your solution. I too was looking at the Thunderbird gmail settings but after reading this I'm up and running. Thanks!