Author Topic: Cannot use other ports for SMTP  (Read 3420 times)

Offline Charles So

  • Newbie
  • *
  • Posts: 5
Cannot use other ports for SMTP
« on: March 25, 2009, 10:23:33 AM »
Hi folks,

I need to use other than 25 and 465 for connecting to SMTP server. I've tried to set it to something else in main.inc.php, but the Send Test Mail function will never complete when the installation is at Step 3.

BTW, the IMAP function is working fine tho.

Is there anything that I need to do?

Charles

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,857
Cannot use other ports for SMTP
« Reply #1 on: March 25, 2009, 10:32:48 AM »
you should be able to set it to any port you like. may be there is a bug in the installer - i cant check right now. could you paste the relevent bit of your config?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline Charles So

  • Newbie
  • *
  • Posts: 5
Cannot use other ports for SMTP
« Reply #2 on: March 25, 2009, 10:54:03 AM »
Quote from: JohnDoh;18027
you should be able to set it to any port you like. may be there is a bug in the installer - i cant check right now. could you paste the relevent bit of your config?

Here it is:

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = '';

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

After a lengthy period of time, it prints out this error msg:
Trying to send email...
SMTP send:  NOT OK(Authentication failure: STARTTLS failed (Code: ))


The server doesn't need TLS connection. How can I turn it off?
« Last Edit: March 25, 2009, 11:29:21 AM by Charles So »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Cannot use other ports for SMTP
« Reply #3 on: March 25, 2009, 11:31:40 AM »
Is port 2525 open on '' ? My be port is blocked by a firewall.

You could check by telenet on command line:

telnet server_name 2525
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline Charles So

  • Newbie
  • *
  • Posts: 5
Cannot use other ports for SMTP
« Reply #4 on: March 25, 2009, 11:35:27 AM »
Quote from: rosali;18035
Is port 2525 open on '' ? My be port is blocked by a firewall.

You could check by telenet on command line:

telnet server_name 2525


yes, it is open. Currently my Squirrelmail installation and native mail client are connecting to it without problem.

The server doesn't need TLS... but it seems that roundcube is using it to connect to .

Offline Charles So

  • Newbie
  • *
  • Posts: 5
Cannot use other ports for SMTP
« Reply #5 on: March 25, 2009, 11:37:07 PM »
Quote from: Charles So;18036
yes, it is open. Currently my Squirrelmail installation and native mail client are connecting to it without problem.

The server doesn't need TLS... but it seems that roundcube is using it to connect to .
Can anyone help? What other info should I provide to assist the troubleshooting?