Author Topic: [0.2 stable] Problems when sending mail over SSL (GMX)  (Read 4142 times)

Offline schneelandschaften

  • Newbie
  • *
  • Posts: 3
[0.2 stable] Problems when sending mail over SSL (GMX)
« on: January 23, 2009, 07:54:55 PM »
Good evening,

after upgrading to version 0.2 stable (from 0.2 beta), I am facing problems when trying to send mail over SSL (the account is with GMX):

When I send over port 25/unencrypted, everything works well.
Also, when I use port 465 and SSL in Thunderbird, I do not face any problems.
If I do however try to active sending over SSL in Roundcube, I get the error message

Code: [Select]

[17-Jan-2009 22:40:53] Invalid response code received from server (554):
[17-Jan-2009 22:40:53 +0000] SMTP Error: SMTP error: Authentication failure: Invalid response code received from server (Code: 554) in ... /program/steps/mail/func.inc on line 1248 (POST /?_task=mail&_action=send)


Is there anybody who has the same problem or maybe even a solution?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
[0.2 stable] Problems when sending mail over SSL (GMX)
« Reply #1 on: January 24, 2009, 12:05:53 AM »
For Gmail it works with the following configuration:

Code: [Select]

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'ssl://smtp.gmail.com';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 465;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = 'me@gmail.com';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = 'topsecret';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';


So sending over SSL works. May be your PHP is not compiled with OpenSSL support?
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline schneelandschaften

  • Newbie
  • *
  • Posts: 3
[0.2 stable] Problems when sending mail over SSL (GMX)
« Reply #2 on: January 24, 2009, 08:00:50 AM »
Hello and thanks for the quick response.

However php seems to be compiled with SSL support (imap over ssl works for gmx servers and even smtp over ssl works for my local smtp server). Oddly it seems authentication just fails for the gmx server using ssl.

As a workaround I set up a static user in my own smtp server - I guess I will debug into it when I have some spare time left.

Best,
S.