RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Recycle Bin > Recycle Bin

For more information about the ads and why they're here, please see the FAQ
Closed Thread
  #21  
Old 09-05-2006, 01:43 PM
Registered User
 
Join Date: Aug 2006
Posts: 4
Downloads: 0
Uploads: 0
Default Re: Unable to send mail

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #22  
Old 09-16-2006, 02:41 AM
Registered User
 
Join Date: Aug 2006
Posts: 3
Downloads: 0
Uploads: 0
Default Re: Unable to send mail

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 07:31 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community