Roundcube Community Forum

 

Unable to send mail

Started by drexcia, August 14, 2006, 09:56:40 PM

Previous topic - Next topic

rje96

No prob. Should i install this FIX vor cpanel also when i'm running RC on a Confixx-Server?

Greetings and thanks

DontAsk

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.

Vinayak Sharma
Vinsar.Net Cyber Udyog
Web Hosting & Web Development with a difference.

fsnhosting

Quote from: DontAsk Exact file to edit is at

Quote/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! ;)

Gary

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

rje96

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

Midnyte

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

syao

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