Author Topic: Can get incomming mail but cannot send outgoing mail  (Read 4904 times)

Offline Ryan

  • Newbie
  • *
  • Posts: 2
Can get incomming mail but cannot send outgoing mail
« on: February 24, 2007, 08:53:07 PM »
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.

Offline inf4mi

  • Jr. Member
  • **
  • Posts: 12
Re: Can get incomming mail but cannot send outgoing mail
« Reply #1 on: March 01, 2007, 04:32:43 PM »
I also can`t send e-mails!

Offline inf4mi

  • Jr. Member
  • **
  • Posts: 12
Re: Can get incomming mail but cannot send outgoing mail
« Reply #2 on: March 01, 2007, 04:56:52 PM »
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???

Offline FatJonny

  • Jr. Member
  • **
  • Posts: 48
Re: Can get incomming mail but cannot send outgoing mail
« Reply #3 on: March 01, 2007, 05:55:08 PM »
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

Code: [Select]
// 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'] = '';

Offline lizzie

  • Newbie
  • *
  • Posts: 8
Re: Can get incomming mail but cannot send outgoing mail
« Reply #4 on: June 09, 2007, 05:58:18 AM »
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

Offline craigmoore

  • Newbie
  • *
  • Posts: 6
Re: Can get incomming mail but cannot send outgoing mail
« Reply #5 on: June 11, 2007, 09:18:39 AM »
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.

Offline actuel

  • Newbie
  • *
  • Posts: 7
Re: Can get incomming mail but cannot send outgoing mail
« Reply #6 on: June 27, 2007, 02:45:18 PM »
my PHP safe mode is off and i'm still having problems with sending mail. i can receive mail fine