Author Topic: SMPT TLS Port 25  (Read 6158 times)

Offline CWollinger

  • Jr. Member
  • **
  • Posts: 10
SMPT TLS Port 25
« 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 ?

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: SMPT TLS Port 25
« Reply #1 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';
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline CWollinger

  • Jr. Member
  • **
  • Posts: 10
Re: SMPT TLS Port 25
« Reply #2 on: May 12, 2014, 12:03:24 PM »
Yes see -> tls://localhost

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: SMPT TLS Port 25
« Reply #3 on: May 12, 2014, 03:46:48 PM »
Yes see -> tls://localhost
Do you have in in quotes as shown in my sample?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline CWollinger

  • Jr. Member
  • **
  • Posts: 10
Re: SMPT TLS Port 25
« Reply #4 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';

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: SMPT TLS Port 25
« Reply #5 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?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline CWollinger

  • Jr. Member
  • **
  • Posts: 10
Re: SMPT TLS Port 25
« Reply #6 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?

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: SMPT TLS Port 25
« Reply #7 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';
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline CWollinger

  • Jr. Member
  • **
  • Posts: 10
Re: SMPT TLS Port 25
« Reply #8 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)

Offline CWollinger

  • Jr. Member
  • **
  • Posts: 10
Re: SMPT TLS Port 25
« Reply #9 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

Offline CWollinger

  • Jr. Member
  • **
  • Posts: 10
Re: SMPT TLS Port 25
« Reply #10 on: May 13, 2014, 02:34:38 PM »

Offline CWollinger

  • Jr. Member
  • **
  • Posts: 10
Re: SMPT TLS Port 25
« Reply #11 on: May 14, 2014, 12:50:14 PM »
Fixed issue with SASL Identification.

-> Issue fixed

Offline CWollinger

  • Jr. Member
  • **
  • Posts: 10
Re: SMPT TLS Port 25
« Reply #12 on: May 14, 2014, 12:50:45 PM »


-> Issue fixed