Author Topic: Unable to send mail  (Read 13822 times)

Offline rje96

  • Newbie
  • *
  • Posts: 4
Re: Unable to send mail
« Reply #15 on: August 24, 2006, 04:58:28 AM »
No prob. Should i install this FIX vor cpanel also when i'm running RC on a Confixx-Server?

Greetings and thanks

Offline DontAsk

  • Newbie
  • *
  • Posts: 4
Re: Unable to send mail
« Reply #16 on: August 24, 2006, 06:45:44 AM »
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.

Offline fsnhosting

  • Newbie
  • *
  • Posts: 3
Re: Unable to send mail
« Reply #17 on: August 24, 2006, 10:38:35 AM »
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! ;)

Offline Gary

  • Newbie
  • *
  • Posts: 8
Re: Unable to send mail
« Reply #18 on: August 27, 2006, 08:02:19 AM »
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

Offline rje96

  • Newbie
  • *
  • Posts: 4
Re: Unable to send mail
« Reply #19 on: August 29, 2006, 03:11:36 AM »
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

Offline Midnyte

  • Newbie
  • *
  • Posts: 4
Re: Unable to send mail
« Reply #20 on: September 05, 2006, 08:43:21 AM »
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

Offline syao

  • Newbie
  • *
  • Posts: 3
Re: Unable to send mail
« Reply #21 on: September 15, 2006, 09:41:51 PM »
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