I was able to locate the parameter in my main.inc.db for RC to force
RC to use TLS when using IMAP:

// the mail host chosen to perform the log-in
// leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
$rcmail_config['default_host'] = 'tls://mail.mydomain.tld';

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 143;

My question is I am unable to force RC to use TLS whens ending mail
via SMTP on port 25. I don't know why or what I am missing but I did
the following:

// 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'] = 'tls://mail.mydomain.tld';

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

// 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';

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

The above doesn't work for SMTP with TLS. Anyone know how I can
correctly get TLS working with SMTP? It works great with IMAP but I
have to remove the 'tls://' from SMTP and then I am able to send email
successfully...but w/o TLS.

Please help!
_______________________________________________
List info: http://lists.roundcube.net/users/

Reply via email to