Roundcube Community Forum

 

Can get incomming mail but cannot send outgoing mail

Started by Ryan, February 24, 2007, 08:53:07 PM

Previous topic - Next topic

Ryan

When I first installed round cube i tested it and it worked fine, since then I have not changed my configuration, however i cannot send outgoing mail anymore, I did just before this occured moved to a php5 server, perhaps the server move caused issues?

EDIT: I have since just reinstalled roundcube since a newer version was released anyway but the problem still persists. I switched to use of php's sendmail, which does work.

EDIT2: Ok so i decided to find out more about this if possible, so i check cpanels error loggin and it shows nothing, the roundcube error log has this entry though:

Quote[24-Feb-2007 21:13:24 -0500] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection refused
 in /home/rcbit/public_html/mail/program/steps/mail/sendmail.inc on line 253

so does anyone know what the connection would fail? i have configured roundcube to authenticate using the current username and password for sending mail,

from my main.inc.php:
Quote// 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';
http://en.codevwiki.org/

The collaborative software development environment.

inf4mi


inf4mi

Quote from: inf4mi I also can`t send e-mails!


I read the all Forum - and this problem is widespread!

Can U tell the exactly answer - how to solve this problem???

FatJonny

Do you really need to log on to send mail via your smtp server? I know I was having problems sending mail until I just replaced the smtp server mail.domain.com with localhost and deleted the username and password entries. Like so:

main.inc.php

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

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

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '';

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

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

lizzie

Quote from: FatJonny Do you really need to log on to send mail via your smtp server? I know I was having problems sending mail until I just replaced the smtp server mail.domain.com with localhost and deleted the username and password entries. Like so:

Legend... easiest solution to this apparently common issue.

Thanks

craigmoore

I imagine you've already checked here, but if you haven't. Then read the bottom of my post http://roundcubeforum.net/forum/index.php?topic=1736.0.

Basically ensure you have the right type of SMTP verification and also make sure you are not running PHP in safe mode. I've not used cPanel so I'm not sure how you turn off PHP safe mode; however, there may be a way to do it in cPanel (much like ISPConfig).

Craig.

actuel

my PHP safe mode is off and i'm still having problems with sending mail. i can receive mail fine