Roundcube Community Forum

Release Support => Pending Issues => Topic started by: CWollinger on May 12, 2014, 02:09:13 AM

Title: SMPT TLS Port 25
Post by: CWollinger on May 12, 2014, 02:09:13 AM
Hello,

i installed a mailserver (Postfix und Dovecot).

I activated  SMTP with TLS on Port 25 without Authentication. (Server is not an open relay)

I can send and read mails without any problems on Android, Thunderbird oder Windows Live Mail.

Now i want to try this with roundcube:

tls://localhost
Port: 25

I got this error on sending message: (IMAP is working, can read messages)

(5.7.0 Must issue a STARTTLS command first).


Can someone help me? Why works Thunderbird or Windows Live Mails and not Roundcube ?
Title: Re: SMPT TLS Port 25
Post by: ABerglund on May 12, 2014, 11:03:41 AM
How do you have it specified in your config? I use:
Code: [Select]
$config['smtp_server'] = 'tls://hostname';
Title: Re: SMPT TLS Port 25
Post by: CWollinger on May 12, 2014, 12:03:24 PM
Yes see -> tls://localhost
Title: Re: SMPT TLS Port 25
Post by: ABerglund on May 12, 2014, 03:46:48 PM
Yes see -> tls://localhost
Do you have in in quotes as shown in my sample?
Title: Re: SMPT TLS Port 25
Post by: CWollinger on May 12, 2014, 03:49:15 PM
Code: [Select]
// ----------------------------------
// SMTP
// ----------------------------------
// 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
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['smtp_server'] = 'tls://localhost';
Title: Re: SMPT TLS Port 25
Post by: ABerglund on May 12, 2014, 05:20:45 PM
OK, and Roundcube and postfix are both installed on the same server? What are you using for the SMTP server name in Thunderbird?
Title: Re: SMPT TLS Port 25
Post by: CWollinger on May 13, 2014, 02:10:58 AM
Hello,

i use my domain name for Android or Thunderbird:

smtp.fireballs-gp.de
Port: 25

IMAP is works on roundcube. Is there maybe a bug in roundcube?
Title: Re: SMPT TLS Port 25
Post by: ABerglund on May 13, 2014, 10:54:43 AM
Have you tried using your domain name in Roundcube?

Code: [Select]
$config['smtp_server'] = 'tls://smtp.fireballs-gp.de';
Title: Re: SMPT TLS Port 25
Post by: CWollinger on May 13, 2014, 12:31:45 PM
Still same Problem:

[13-May-2014 18:31:18 +0200]: SMTP Error: SMTP error: Failed to set sender 'cwollinger@fireballs-gp.de' in /var/www/mail/program/lib/Roundcube/rcube.php on line 1497 (POST /mail/?_task=mail&_unlock=loading1399998677536&_lang=de_DE?_task=mail&_action=send)
Title: Re: SMPT TLS Port 25
Post by: CWollinger on May 13, 2014, 12:36:54 PM
root@h2154314:~# tail -f /var/www/mail/logs/smtp
[13-May-2014 18:35:12 +0200]: Recv: 250-STARTTLS
[13-May-2014 18:35:12 +0200]: Recv: 250-ENHANCEDSTATUSCODES
[13-May-2014 18:35:12 +0200]: Recv: 250-8BITMIME
[13-May-2014 18:35:12 +0200]: Recv: 250 DSN
[13-May-2014 18:35:12 +0200]: Send: MAIL FROM:<cwollinger@fireballs-gp.de>
[13-May-2014 18:35:12 +0200]: Recv: 530 5.7.0 Must issue a STARTTLS command first
[13-May-2014 18:35:12 +0200]: Send: RSET
[13-May-2014 18:35:12 +0200]: Recv: 530 5.7.0 Must issue a STARTTLS command first
[13-May-2014 18:35:12 +0200]: Send: QUIT
[13-May-2014 18:35:12 +0200]: Recv: 221 2.0.0 Bye
Title: Re: SMPT TLS Port 25
Post by: CWollinger on May 13, 2014, 02:34:38 PM
SEE: http://trac.roundcube.net/ticket/1489888
Title: Re: SMPT TLS Port 25
Post by: CWollinger on May 14, 2014, 12:50:14 PM
Fixed issue with SASL Identification.

-> Issue fixed
Title: Re: SMPT TLS Port 25
Post by: CWollinger on May 14, 2014, 12:50:45 PM


-> Issue fixed