Roundcube Community Forum

 

SMPT TLS Port 25

Started by CWollinger, May 12, 2014, 02:09:13 AM

Previous topic - Next topic

CWollinger

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 ?

ABerglund

How do you have it specified in your config? I use:
$config['smtp_server'] = 'tls://hostname';
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

CWollinger


ABerglund

Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

CWollinger

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

ABerglund

OK, and Roundcube and postfix are both installed on the same server? What are you using for the SMTP server name in Thunderbird?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

CWollinger

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?

ABerglund

Have you tried using your domain name in Roundcube?

$config['smtp_server'] = 'tls://smtp.fireballs-gp.de';
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

CWollinger

Still same Problem:

[13-May-2014 18:31:18 +0200]: SMTP Error: SMTP error: Failed to set sender '[email protected]' 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)

CWollinger

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:<[email protected]>
[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


CWollinger

Fixed issue with SASL Identification.

-> Issue fixed

CWollinger