I attempted to set this by changing
// SMTP port (default is 25; 465 for SSL) $rcmail_config['smtp_port'] = 587;
// SMTP username (if required) if you use %u as the username Roundcube // will use the current username for login $rcmail_config['smtp_user'] = '%u';
// 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'] = '%p';
but I got 250 errors in roundcube (and nothing but a connect followed by a quick disconnect in the MTA log)... so I'm guessing it doesn't? That or I missed something...
On 12/28/2011 2:45 PM, Charles Marcus wrote:
I attempted to set this by changing
// SMTP port (default is 25; 465 for SSL) $rcmail_config['smtp_port'] = 587;
// SMTP username (if required) if you use %u as the username Roundcube // will use the current username for login $rcmail_config['smtp_user'] = '%u';
// 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'] = '%p';
but I got 250 errors in roundcube (and nothing but a connect followed by a quick disconnect in the MTA log)... so I'm guessing it doesn't? That or I missed something...
Hi Charles.
Have you read this yet? 3-4 years old. http://trac.roundcube.net/ticket/1484883
Alec's final patch doesn't state whether one needs to use $rcmail_config['smtp_server'] = 'tls://smtp.host.com';
Some of that thread makes it seem it's negotiated automatically if the server supports it. Maybe give the manual setting a shot, and keep your auth type empty: $rcmail_config['smtp_auth_type'] = '';
On 2011-12-28 4:37 PM, Stan Hoeppner stan@hardwarefreak.com wrote:
Have you read this yet? 3-4 years old. http://trac.roundcube.net/ticket/1484883
Thanks Stan...
Alec's final patch doesn't state whether one needs to use $rcmail_config['smtp_server'] = 'tls://smtp.host.com';
Actually it does:
"I just added a patch (#1484883.200812170953.patch) to enable the 'tls://' prefix in Net/SMTP. Please test."
Just tested and it is now working...
Alec - maybe the main.inc.php config file should document this like it does the use of the deprecated port 465 for smtps?
Thanks again Stan,
On 12/29/2011 6:28 AM, Charles Marcus wrote:
On 2011-12-28 4:37 PM, Stan Hoeppner stan@hardwarefreak.com wrote:
Have you read this yet? 3-4 years old. http://trac.roundcube.net/ticket/1484883
Thanks Stan...
Alec's final patch doesn't state whether one needs to use $rcmail_config['smtp_server'] = 'tls://smtp.host.com';
Actually it does:
"I just added a patch (#1484883.200812170953.patch) to enable the 'tls://' prefix in Net/SMTP. Please test."
This comment was made by Robin regarding his earlier patch, not Alec's final patch. I was unable to discern if Alec's patch required 'tls://' or not, and Alec didn't mention it one way or the other.
Just tested and it is now working...
Cool.
Alec - maybe the main.inc.php config file should document this like it does the use of the deprecated port 465 for smtps?
Yes, accurate documentation is always nice, some would say a requirement. I agree with the latter group. :)
Thanks again Stan,
Glad I was to help.
On 2011-12-29 9:55 AM, Stan Hoeppner stan@hardwarefreak.com wrote:
On 12/29/2011 6:28 AM, Charles Marcus wrote:
On 2011-12-28 4:37 PM, Stan Hoeppnerstan@hardwarefreak.com wrote:
Alec's final patch doesn't state whether one needs to use $rcmail_config['smtp_server'] = 'tls://smtp.host.com';
Actually it does:
"I just added a patch (#1484883.200812170953.patch) to enable the 'tls://' prefix in Net/SMTP. Please test."
This comment was made by Robin regarding his earlier patch, not Alec's final patch. I was unable to discern if Alec's patch required 'tls://' or not, and Alec didn't mention it one way or the other.
Oh, right, sorry...
Charles Marcus wrote:
On 2011-12-28 4:37 PM, Stan Hoeppner stan@hardwarefreak.com wrote:
Have you read this yet? 3-4 years old. http://trac.roundcube.net/ticket/1484883
Thanks Stan...
Alec's final patch doesn't state whether one needs to use $rcmail_config['smtp_server'] = 'tls://smtp.host.com';
Actually it does:
"I just added a patch (#1484883.200812170953.patch) to enable the 'tls://' prefix in Net/SMTP. Please test."
Just tested and it is now working...
Alec - maybe the main.inc.php config file should document this like it does the use of the deprecated port 465 for smtps?
From config/main.inc.php.dist
// SMTP server host (for sending mails). // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// // If left blank, the PHP mail() function is used // Use %h variable as replacement for user's IMAP hostname $rcmail_config['smtp_server'] = '';
List info: http://lists.roundcube.net/users/ BT/9b404e9e
On 1/7/2012 7:26 AM, Thomas Bruederli wrote:
From config/main.inc.php.dist
// SMTP server host (for sending mails). // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// // If left blank, the PHP mail() function is used // Use %h variable as replacement for user's IMAP hostname $rcmail_config['smtp_server'] = '';
Cool. When was this change made? I'm using the Debian Squeeze package, RC 0.3.1, which is admittedly rather old, and it only mentions SSL, not TLS:
// use this host for sending mails. // to use SSL connection, set ssl://smtp.host.com // if left blank, the PHP mail() function is used // Use %h variable as replacement for user's IMAP hostname $rcmail_config['smtp_server'] = '';
I'm guessing the rev Charles is using obviously doesn't mention TLS either.
On 2012-01-07 8:26 AM, Thomas Bruederli roundcube@gmail.com wrote:
Charles Marcus wrote:
Alec - maybe the main.inc.php config file should document this like it does the use of the deprecated port 465 for smtps?
From config/main.inc.php.dist
// SMTP server host (for sending mails). // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// // If left blank, the PHP mail() function is used // Use %h variable as replacement for user's IMAP hostname $rcmail_config['smtp_server'] = '';
Hi Thomas,
Sorry, I guess I was unclear.
What I meant was, since SMTPS (SSL over port 465) is deprecated, and the preferred method for SMTP submission is the use of the submission port 587 using STARTTLS, maybe the main.inc.php should include a reference to using port 587, similar to how it does for port 465. So, something like this:
...
// SMTP port (default is 25; use 587 for STARTTLS, or 465 for the // deprecated SSL over SMTP (aka SMTPS)) $rcmail_config['smtp_port'] = 25;
On 2012-01-07 9:46 AM, Stan Hoeppner stan@hardwarefreak.com wrote:
I'm guessing the rev Charles is using obviously doesn't mention TLS either.
No, it does, but as I just said, I was talking simply about mentioning the use of port 587 as the preferred method, and note that SMTPS on 465 is deprecated.
Charles Marcus wrote:
On 2012-01-07 8:26 AM, Thomas Bruederli roundcube@gmail.com wrote:
Charles Marcus wrote:
Alec - maybe the main.inc.php config file should document this like it does the use of the deprecated port 465 for smtps? From config/main.inc.php.dist
// SMTP server host (for sending mails). // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// // If left blank, the PHP mail() function is used // Use %h variable as replacement for user's IMAP hostname $rcmail_config['smtp_server'] = '';
Hi Thomas,
Sorry, I guess I was unclear.
What I meant was, since SMTPS (SSL over port 465) is deprecated, and the preferred method for SMTP submission is the use of the submission port 587 using STARTTLS, maybe the main.inc.php should include a reference to using port 587, similar to how it does for port 465. So, something like this:
// SMTP port (default is 25; use 587 for STARTTLS, or 465 for the // deprecated SSL over SMTP (aka SMTPS)) $rcmail_config['smtp_port'] = 25;
Done in revision 5786.
Greetings, Thomas