Author Topic: Unable to send via SMTP  (Read 5832 times)

Offline darren6502

  • Newbie
  • *
  • Posts: 2
Unable to send via SMTP
« on: January 30, 2014, 10:59:41 AM »
Hi

Can some one please help...

Im using ROUNDCUBE on a server from 1and1.co.uk.

I pass all the environment checks.

Ive set the SMTP as follows,

Code: [Select]
$rcmail_config['smtp_server'] = 'tls://auth.smtp.1and1.co.uk';

// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
$rcmail_config['smtp_port'] = 587;

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

// Optional SMTP authentication identifier to be used as authorization proxy
$rcmail_config['smtp_auth_cid'] = NULL;

// Optional SMTP authentication password to be used for smtp_auth_cid
$rcmail_config['smtp_auth_pw'] = NULL;

// SMTP HELO host
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
// Leave this blank and you will get the server variable 'server_name' or
// localhost if that isn't defined.
$rcmail_config['smtp_helo_host'] = '';

// SMTP connection timeout, in seconds. Default: 0 (no limit)
// Note: There's a known issue where using ssl connection with
// timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
$rcmail_config['smtp_timeout'] = 0;


Send TEST email fails

SMTP send:  NOT OK(Connection failed: Failed to connect socket: Connection timed out)

I've used the same settings on a WORDPRESS site on the same server and all works fine.

i.e. auth.smtp.1and1.co.uk port 25/587 with and with login details

Any one with an insight into what I'm doing wrong?
« Last Edit: January 30, 2014, 11:14:08 AM by darren6502 »

Offline poncho1975

  • Newbie
  • *
  • Posts: 2
Re: Unable to send via SMTP
« Reply #1 on: April 14, 2014, 02:51:01 AM »
Hi,
the same for me.
I have used all possible ports for SMTP @ 1and1 but none of them worked.

Regards

Oliver

Offline Thunderstick

  • Newbie
  • *
  • Posts: 5
Re: Unable to send via SMTP
« Reply #2 on: April 19, 2014, 05:41:39 AM »
I have the same problem. Either 25 or 587 works.
Always "timeout".

Offline poncho1975

  • Newbie
  • *
  • Posts: 2
Re: Unable to send via SMTP
« Reply #3 on: April 30, 2014, 02:12:17 AM »
Hi Folks,
i've just sorted out how smtp works at 1and1 (respectively 1und1 but I think 1and1 should do, too)
Just leave the smtp host field empty (which stands for 'use mail() function from php)
The port I have left untouched from my previous trails, so it stands at 587.
Now sending mails works absolutely fine.
Here my setup:

imap default_host='ssl://imap.1und1.de'
imap default_port=993
smtp smtp_server=''
smtp smtp_port=587
Use the current IMAP username and password for SMTP authentication CHECKED

Hope this helps!

Regards

Oliver