Roundcube Community Forum
Recycle Bin => Recycle Bin => Topic started by: drexcia on August 14, 2006, 09:56:40 PM
-
Hi All,
I've just installed Beta 2 and I'm unable to send email. I can receive ok but when I go to send, the screen stays on sending message and then it just goes away. I don't receive a message saying "Unable to send message" like others have.
The following error appears in the log:
PHP Parse error: syntax error, unexpected $end in /home/duplicat/public_html/wmail/program/lib/Net/Socket.php on line 198
I've had a bit of a look around and I can't see anything relating to this.
Any ideas?
Thanks, Ben
-
Hello,
I have exactly the same problem (I receve my mail,but I'am unable to send mail), I think that comes from smtp configuration : my provider (1&1) request a “server requires an authentificationâ€ÂÂ. But I do not know how activates this option in Roundcube.
That's my configuration please tell me what to do (sorry for my English I realy do the best than I can) :
<?php
$rcmail_config = array();
$rcmail_config['debug_level'] = 1;
$rcmail_config['enable_caching'] = TRUE;
$rcmail_config['message_cache_lifetime'] = '10d';
$rcmail_config['auto_create_user'] = TRUE;
$rcmail_config['default_host'] = 'imap.1and1.fr';
$rcmail_config['default_port'] = 143;
$rcmail_config['username_domain'] = '';
$rcmail_config['mail_domain'] = '';
$rcmail_config['virtuser_file'] = '';
$rcmail_config['virtuser_query'] = '';
$rcmail_config['smtp_server'] = 'auth.smtp.1and1.fr';
$rcmail_config['smtp_port'] = 25;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';
$rcmail_config['smtp_auth_type'] = '';
$rcmail_config['smtp_log'] = TRUE;
$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');
$rcmail_config['skin_path'] = 'skins/default/';
$rcmail_config['temp_dir'] = 'temp/';
$rcmail_config['log_dir'] = 'logs/';
$rcmail_config['session_lifetime'] = 10;
$rcmail_config['ip_check'] = TRUE;
$rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
$rcmail_config['locale_string'] = 'fr';
$rcmail_config['date_short'] = 'D H:i';
$rcmail_config['date_long'] = 'd.m.Y H:i';
$rcmail_config['useragent'] = 'RoundCube Webmail/0.1b';
$rcmail_config['product_name'] = 'RoundCube Webmail';
$rcmail_config['imap_root'] = '';
$rcmail_config['drafts_mbox'] = 'Drafts';
$rcmail_config['junk_mbox'] = 'Junk';
$rcmail_config['sent_mbox'] = 'Sent';
$rcmail_config['trash_mbox'] = 'Trash';
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
$rcmail_config['protect_default_folders'] = TRUE;
$rcmail_config['skip_deleted'] = FALSE;
$rcmail_config['read_when_deleted'] = TRUE;
$rcmail_config['flag_for_deletion'] = TRUE;
$rcmail_config['enable_spellcheck'] = TRUE;
$rcmail_config['generic_message_footer'] = '';
$rcmail_config['mail_header_delimiter'] = NULL;
$rcmail_config['include_host_config'] = FALSE;
$rcmail_config['pagesize'] = 40;
$rcmail_config['timezone'] = 1;
$rcmail_config['dst_active'] = TRUE;
$rcmail_config['prefer_html'] = TRUE;
$rcmail_config['prettydate'] = TRUE;
$rcmail_config['message_sort_col'] = 'date';
$rcmail_config['message_sort_order'] = 'DESC';
$rcmail_config['javascript_config'] = array('read_when_deleted', 'flag_for_deletion');
?>
-
Oh!!! sorry I forgot my log file :
[07-Aug-2006 19:44:57 +0200] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection refused
in /homepages/31/d143490843/htdocs/wsb3914640201/courriel/program/steps/mail/sendmail.inc on line 253
[07-Aug-2006 19:52:08 +0200] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection refused
in /homepages/31/d143490843/htdocs/wsb3914640201/courriel/program/steps/mail/sendmail.inc on line 253
[07-Aug-2006 19:57:29 +0200] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection refused
in /homepages/31/d143490843/htdocs/wsb3914640201/courriel/program/steps/mail/sendmail.inc on line 253
[07-Aug-2006 19:58:38 +0200] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection refused
in /homepages/31/d143490843/htdocs/wsb3914640201/courriel/program/steps/mail/sendmail.inc on line 253
-
I got the same probleme but with notting in maillog and errors...
I'm just getting "Sending message..." and notting happen....
I'm using it with cpanel...
-
I have the same issue with 2 different installations. I have tried using mail() and setting up SMTP on both, and have no resolution.
I am using the cPanel patched version.
I've checked logs, and there's nothing there, and I get no error messages. It simply just hangs at "sending message".
-
edit the /usr/local/cpanel/base/roundcube/program/steps/mail/compose.inc
change the form ./ to "index.php"
it's around 745 I think. (or 655)
-
edit the /usr/local/cpanel/base/roundcube/program/steps/mail/compose.inc
change the form ./ to "index.php"
it's around 745 I think. (or 655)
so would that be this:
$form_start = empty($attrib['form']) ? '<form name="form" action="./index.php" method="post">' : '';
to this:
$form_start = empty($attrib['form']) ? '
?
-
I have the same issue with 2 different installations. I have tried using mail() and setting up SMTP on both, and have no resolution.
I am using the cPanel patched version.
I've checked logs, and there's nothing there, and I get no error messages. It simply just hangs at "sending message".
I'm having the same issue, I can't find any kind of error message either, it just says sending message and never sends it. I have this running under cPanel as well.
-
Also having this exact same problem after following the guide for installing with cpanel. The suggested change above to /usr/local/cpanel/base/roundcube/program/steps/mail/compose.inc
made no difference.
-
Exact file to edit is at
/usr/local/cpanel/base/roundcube/skins/default/templates/compose.html at about line 31 (you can also search for post) and change the action to be
index.php
instead of
./
-
Yes, that one fixed it. Thanks! :)
-
Hi
I have the same problem. When i want to send a message, then it says "Nachricht wird gesendet" and nothing happen's.
The funny thing is, that the mail was going out... but the page doesn't change...
I've already tried the solution with ./ -> index.php... Nothing happens...
Greetings rje96
-
have you corrected the right file.
-
I have corrected the compose-File in skins/default/templates...
I'm running RC on a Confixx-Installation in /srv/www/htdocs/confixx/html...
Greetings rje96
-
Oh I am sorry I had not noticed that your installation is standalone.
The correction I was refereing to was related to cPanel install as per http://www.hostgeekz.com/guides/cPanel/64/Install_RoundCube_on_cPanel.htm
-
No prob. Should i install this FIX vor cpanel also when i'm running RC on a Confixx-Server?
Greetings and thanks
-
I dont think so, that fix is for cPanel servers and is for integrating RC into cPanel login etc.
It may break RC on a Confixx-Server.
-
Exact file to edit is at
/usr/local/cpanel/base/roundcube/skins/default/templates/compose.html at about line 31 (you can also search for post) and change the action to be
index.php
instead of
./
This corrected my problem. Thank you so much! ;)
-
In config/main.inc.php there are the following 3 sections.
// 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 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'] = '';
Does your SMTP server require authentication? Is the smtp_server correct?
Gary
-
Hi
The smtp-Config ist not the problem, because it send's the mail, but it doesn't goes back to the main page.
It say's a long time "Nachricht wird gesendet" and stays like that...
Greetings
rje96
-
I seem to be having a similar problem but im wondering if it is because i use multiple domains?
When in main.inc.php it says:
// 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'] = '%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';
and you have multiple domains setup by:
// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['username_domain'] = array('mail.domain1.net' => 'domain1.net','mail.domain2.com' => 'domain2.com');
// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['mail_domain'] = $rcmail_config['username_domain'];
// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '';
// Query to resolve user names and e-mail addresses from the database
// %u will be replaced with the current username for login.
// The query should select the user's e-mail address as first col
$rcmail_config['virtuser_query'] = '';
// 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'] = 'mail.domain1.net';
Does the %u vaule have the domain you logged in with appened to it, i ask cos i think it might be causing my send to fail, reading mail is fine as is logging in.
Any thoughts?
Midnyte
-
if you found a problem like this, maybe you can this..
This behavior is coming from the following iptables which deny outgoing connections to port 25, to keep abused scripts and such from being able to send spam :
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:25
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 OWNER GID match 12
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 OWNER GID match 41
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 OWNER UID match 0
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 reject-with icmp-port-unreachable
and if you using WHM/cPanel You should be able to disable this, if desired, in WHM -> Tweak Security -> SMTP Tweak and disabling it.
Cheers,
Syao